Open3d: "examples/Python/Basic/half_edge_mesh.py"์˜ "TypeError: crop(): ํ˜ธํ™˜๋˜์ง€ ์•Š๋Š” ํ•จ์ˆ˜ ์ธ์ˆ˜"

์— ๋งŒ๋“  2019๋…„ 10์›” 14์ผ  ยท  3์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: intel-isl/Open3D

๋ฒ„๊ทธ ์„ค๋ช…
half_edge_mesh.py ์˜ˆ์ œ๋ฅผ ์‹คํ–‰ํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. #1218 ์ดํ›„์—๋Š” ํ•ญ์ƒ ๋˜์ง‘๋‹ˆ๋‹ค.

RPly: Unable to open file
[Open3D WARNING] Read PLY failed: unable to open file: ../../TestData/sphere.ply
Traceback (most recent call last):
  File "examples/Python/Basic/half_edge_mesh.py", line 28, in <module>
    mesh = mesh.crop(bbox)
TypeError: crop(): incompatible function arguments. The following argument types are supported:
    1. (self: open3d.open3d.geometry.TriangleMesh, min_bound: numpy.ndarray[float64[3, 1]], max_bound: numpy.ndarray[float64[3, 1]]) -> open3d.open3d.geometry.TriangleMesh

Invoked with: geometry::TriangleMesh with 0 points and 0 triangles., geometry::AxisAlignedBoundingBox

๊ทธ๋ฆฌ๊ณ  #1218(์—ฌ์ „ํžˆ ๋ฒ„์ „ 0.8.0) ์ด์ „์—๋Š”

RPly: Unable to open file
[Open3D WARNING] Read PLY failed: unable to open file: ../../TestData/sphere.ply
Traceback (most recent call last):
  File "examples/Python/Basic/half_edge_mesh.py", line 26, in <module>
    het_mesh = o3d.geometry.HalfEdgeTriangleMesh.create_from_triangle_mesh(mesh)
AttributeError: type object 'open3d.open3d.geometry.HalfEdgeTriangleMesh' has no attribute 'create_from_triangle_mesh'

์žฌํ˜„ํ•˜๊ธฐ ์œ„ํ•ด
๋™์ž‘์„ ์žฌํ˜„ํ•˜๋Š” ๋‹จ๊ณ„:

  1. CD ์˜คํ”ˆ3D
  2. python3 ์˜ˆ์ œ/Python/Basic/half_edge_mesh.py
  3. ์˜ค๋ฅ˜ ๋ณด๊ธฐ

์˜ˆ์ƒ๋˜๋Š” ํ–‰๋™
์˜ˆ์ œ๊ฐ€ ์ž‘๋™ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

ํ™˜๊ฒฝ(๋‹ค์Œ ์ •๋ณด๋ฅผ ์ž‘์„ฑํ•˜์‹ญ์‹œ์˜ค):

  • OS: OSX ๋ชจํ•˜๋น„
  • ํŒŒ์ด์ฌ ๋ฒ„์ „: 3.7
  • Open3D ๋ฒ„์ „: 0.8.0
  • ์›๊ฒฉ ์›Œํฌ์Šคํ…Œ์ด์…˜์ž…๋‹ˆ๊นŒ?: ์•„๋‹ˆ์š”
  • Open3D๋ฅผ ์–ด๋–ป๊ฒŒ ์„ค์น˜ํ–ˆ์Šต๋‹ˆ๊นŒ?: conda

์ถ”๊ฐ€ ์ปจํ…์ŠคํŠธ
์˜ˆ์ œ ํŒŒ์ผ half_edge_mesh.py ์„ TestData/sphere.ply ๊ฐ€ ์žˆ๋Š” ๊ฐ™์€ ํด๋”๋กœ ์˜ฎ๊ธฐ๊ณ  ๊ฒฝ๋กœ๋ฅผ ์ˆ˜์ •ํ•ด ๋ณด์•˜์Šต๋‹ˆ๋‹ค. [Open3D WARNING] Read PLY failed: unable to open file: ../../TestData/sphere.ply ๊ฒฝ๊ณ ๋Š” ์‚ฌ๋ผ์กŒ์ง€๋งŒ TypeError ๋˜๋Š” AttributeError๋Š” ์—ฌ์ „ํžˆ ์กด์žฌํ•ฉ๋‹ˆ๋‹ค.

possible bug

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

์•Œ๊ฒ ์Šต๋‹ˆ๋‹ค. AxisAlignedBoundingBox ๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๋งˆ์Šคํ„ฐ ๋ถ„๊ธฐ์˜ ์˜ˆ์ œ ์ฝ”๋“œ๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์ง€๋งŒ ์‚ฌ์šฉ ์ค‘์ธ open3d ์†Œ์Šค๊ฐ€ ๋งˆ์Šคํ„ฐ ๋ถ„๊ธฐ๋ณด๋‹ค ์˜ค๋ž˜๋œ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค(์ฒซ ๋ฒˆ์งธ ์ถœ๋ ฅ ์Šค๋‹ˆํŽซ์˜ ๋ฉ”์„œ๋“œ ์„œ๋ช… ์ฐธ์กฐ).
open3d๋ฅผ ํ˜„์žฌ ๋งˆ์Šคํ„ฐ๋กœ ์—…๋ฐ์ดํŠธํ•˜๊ณ  ์ง์ ‘ ์ปดํŒŒ์ผํ•˜๊ฑฐ๋‚˜ v0.8.0 ๋ถ„๊ธฐ(https://github.com/intel-isl/Open3D/tree/v0.8.0)์˜ ์˜ˆ์ œ๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.

๋ชจ๋“  3 ๋Œ“๊ธ€

๋งˆ์Šคํ„ฐ์˜ ์ฝ”๋“œ๋กœ ์žฌํ˜„ํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. Open3D/examples/Python/Basic ๋‚ด์—์„œ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์‹คํ–‰ํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๊นŒ?

@griegler ์˜ˆ,

์•Œ๊ฒ ์Šต๋‹ˆ๋‹ค. AxisAlignedBoundingBox ๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๋งˆ์Šคํ„ฐ ๋ถ„๊ธฐ์˜ ์˜ˆ์ œ ์ฝ”๋“œ๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์ง€๋งŒ ์‚ฌ์šฉ ์ค‘์ธ open3d ์†Œ์Šค๊ฐ€ ๋งˆ์Šคํ„ฐ ๋ถ„๊ธฐ๋ณด๋‹ค ์˜ค๋ž˜๋œ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค(์ฒซ ๋ฒˆ์งธ ์ถœ๋ ฅ ์Šค๋‹ˆํŽซ์˜ ๋ฉ”์„œ๋“œ ์„œ๋ช… ์ฐธ์กฐ).
open3d๋ฅผ ํ˜„์žฌ ๋งˆ์Šคํ„ฐ๋กœ ์—…๋ฐ์ดํŠธํ•˜๊ณ  ์ง์ ‘ ์ปดํŒŒ์ผํ•˜๊ฑฐ๋‚˜ v0.8.0 ๋ถ„๊ธฐ(https://github.com/intel-isl/Open3D/tree/v0.8.0)์˜ ์˜ˆ์ œ๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰