Assertion failed in Macos
Describe the bug
I build this repo in mac and run ./bin/TextureMesh -i ~/git/openMVS_sample/scene_dense_mesh_refine.mvs -m ~/git/openMVS_sample/scene_dense_mesh_refine.ply -o scene_dense_mesh_refine_texture.mvs to extract texture, but I got an Assertion failed. What is the reason?
Similar problem here…
00:09:07 [App ] Delaunay tetrahedralization completed: 75096 points -> 73232 vertices, 449591 (+26) cells, 899195 (+39) faces (6s554ms) Points weighted 39274 (53.63%, 41s, ETA 36s)...Assertion failed: (facets.empty() && inter.type == intersection_t::VERTEX && inter.v1 == vi), function ReconstructMesh, file SceneReconstruct.cpp, line 1008.
in this case when running ReconstructMesh.
Machine: Apple M2 Pro MacOS 13.6.7 (22G720)
Similar problem on Ubuntu 24.04:
15:11:37 [App ] Point-cloud 'scene_dense.ply' loaded: 1134729 points (639ms) Points inserted 1134729 (100%, 57s638ms)
15:12:39 [App ] Delaunay tetrahedralization completed: 1134729 points -> 238546 vertices, 1534555 (+156) cells, 3069188 (+234) faces (1m1s143ms) Points weighted 2568 (1.08%, 1s, ETA 1m)... ReconstructMesh: /home/cogitas3d/Programs/Fotogrametria/openMVS/libs/MVS/SceneReconstruct.cpp:1008: bool MVS::Scene::ReconstructMesh(float, bool, bool, unsigned int, float, float, float, float, float, float, float, float): Assertion `facets.empty() && inter.type == intersection_t::VERTEX && inter.v1 == vi' failed.
can you try using Release build?
@cdcseacave I did it, but... I discovered an interesting thing, if I increase the value of -d, the process continues and manages to rebuild the model. Apparently the dense cloud of points is much denser than before and this somehow seems to make the program collapse. So the tip is to increase the value of -d until it runs correctly.
where did you increase the value of -d? I just commented the Assertion code.
@ansj11
~/Programs/Fotogrametria/openMVS/make/bin/ReconstructMesh -d 10 --smooth 8 /tmp/testepqp/MVS/scene_dense.mvs
@ansj11
~/Programs/Fotogrametria/openMVS/make/bin/ReconstructMesh -d 10 --smooth 8 /tmp/testepqp/MVS/scene_dense.mvs
thank you for your quick reply, I will have a try!