yuehaowang / convex_hull_3d

Incremental Convex Hull Algorithm and SAT Collision Detection for 3D Objects.
17 stars 2 forks source link

Which version of open3d do you support? #1

Open jiapei-nexera opened 2 years ago

jiapei-nexera commented 2 years ago

Which version of open3d do you support? 0.14.1 ? or 0.15.1?

yuehaowang commented 2 years ago

Hi, I didn't test the two versions. The version I used before is 0.12. I wonder if there is any problem with the two versions?

jiapei-nexera commented 2 years ago

My 0.14.1 is not able to load the material self.standard_mat = o3d.visualization.rendering.Material()

➜  convex_hull_3d git:(master) python vis_collision.py -m1 data/stanford_dragon_sim32_n.obj -ch1 out/stanford_dragon_convhull_n.obj -m2 data/bunny_sim32_n.ply -ch2 out/bunny_convhull_n.obj 
FEngine (64 bits) created at 0x56480187b2c0 (threading is enabled)
FEngine resolved backend: OpenGL
Intel, Mesa Intel(R) Graphics (ADL GT2), 4.6 (Core Profile) Mesa 22.0.1, 4.60
OS version: 0
Traceback (most recent call last):
  File ....../convex_hull_3d/vis_collision.py", line 224, in <module>
    w = MyAppWindow(1024, 768, (mesh1, convhull1), (mesh2, convhull2))
  File ....../convex_hull_3d/vis_collision.py", line 43, in __init__
    self._initialize_mat()
  File ....../convex_hull_3d/vis_collision.py", line 71, in _initialize_mat
    self.standard_mat = o3d.visualization.rendering.Material()
AttributeError: module 'open3d.visualization.rendering' has no attribute 'Material'
yuehaowang commented 2 years ago

I roughly go through the latest docs of Open3D. Looks like open3d.visualization.rendering.Material is renamed to open3d.visualization.rendering.MaterialRecord... So I sincerely recommend to use 0.12 to avoid API changes among versions.