๋ฒ๊ทธ ์ค๋ช
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'
์ฌํํ๊ธฐ ์ํด
๋์์ ์ฌํํ๋ ๋จ๊ณ:
์์๋๋ ํ๋
์์ ๊ฐ ์๋ํด์ผ ํฉ๋๋ค.
ํ๊ฒฝ(๋ค์ ์ ๋ณด๋ฅผ ์์ฑํ์ญ์์ค):
์ถ๊ฐ ์ปจํ
์คํธ
์์ ํ์ผ half_edge_mesh.py
์ TestData/sphere.ply
๊ฐ ์๋ ๊ฐ์ ํด๋๋ก ์ฎ๊ธฐ๊ณ ๊ฒฝ๋ก๋ฅผ ์์ ํด ๋ณด์์ต๋๋ค. [Open3D WARNING] Read PLY failed: unable to open file: ../../TestData/sphere.ply
๊ฒฝ๊ณ ๋ ์ฌ๋ผ์ก์ง๋ง TypeError ๋๋ AttributeError๋ ์ฌ์ ํ ์กด์ฌํฉ๋๋ค.
๋ง์คํฐ์ ์ฝ๋๋ก ์ฌํํ ์ ์์ต๋๋ค. Open3D/examples/Python/Basic
๋ด์์ ์คํฌ๋ฆฝํธ๋ฅผ ์คํํ๊ณ ์์ต๋๊น?
@griegler ์,
์๊ฒ ์ต๋๋ค. AxisAlignedBoundingBox
๋ฅผ ์ฌ์ฉํ๋ ๋ง์คํฐ ๋ถ๊ธฐ์ ์์ ์ฝ๋๋ฅผ ์ฌ์ฉํ๊ณ ์์ง๋ง ์ฌ์ฉ ์ค์ธ open3d ์์ค๊ฐ ๋ง์คํฐ ๋ถ๊ธฐ๋ณด๋ค ์ค๋๋ ๊ฒ ๊ฐ์ต๋๋ค(์ฒซ ๋ฒ์งธ ์ถ๋ ฅ ์ค๋ํซ์ ๋ฉ์๋ ์๋ช
์ฐธ์กฐ).
open3d๋ฅผ ํ์ฌ ๋ง์คํฐ๋ก ์
๋ฐ์ดํธํ๊ณ ์ง์ ์ปดํ์ผํ๊ฑฐ๋ v0.8.0
๋ถ๊ธฐ(https://github.com/intel-isl/Open3D/tree/v0.8.0)์ ์์ ๋ฅผ ์ฌ์ฉํฉ๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
์๊ฒ ์ต๋๋ค.
AxisAlignedBoundingBox
๋ฅผ ์ฌ์ฉํ๋ ๋ง์คํฐ ๋ถ๊ธฐ์ ์์ ์ฝ๋๋ฅผ ์ฌ์ฉํ๊ณ ์์ง๋ง ์ฌ์ฉ ์ค์ธ open3d ์์ค๊ฐ ๋ง์คํฐ ๋ถ๊ธฐ๋ณด๋ค ์ค๋๋ ๊ฒ ๊ฐ์ต๋๋ค(์ฒซ ๋ฒ์งธ ์ถ๋ ฅ ์ค๋ํซ์ ๋ฉ์๋ ์๋ช ์ฐธ์กฐ).open3d๋ฅผ ํ์ฌ ๋ง์คํฐ๋ก ์ ๋ฐ์ดํธํ๊ณ ์ง์ ์ปดํ์ผํ๊ฑฐ๋
v0.8.0
๋ถ๊ธฐ(https://github.com/intel-isl/Open3D/tree/v0.8.0)์ ์์ ๋ฅผ ์ฌ์ฉํฉ๋๋ค.