Repository navigation
Replies: 1 comment
|
Hi @olkham and welcome Most of the leftover holes come from the shape of the ball pivoting output, not from the hole size. fill_holes is a thin wrapper around VTK's vtkFillHolesFilter. It works well on clean, manifold holes. BPA output usually has hundreds of tiny loose pieces and many non-manifold vertices (two holes touching at one vertex). The filter treats the border of every loose piece as a hole, and it often gives up on loops that pass through a non-manifold vertex. I reproduced your pipeline on the Stanford bunny with Open3D 0.20. The BPA mesh had about 220 separate pieces and about 320 non-manifold vertices. fill_holes(1e6) on it left 74 of 208 boundary loops open. Keeping only the main piece first made a clear difference: 11 loops went down to 4, and most of the small holes closed. import numpy as np def keep_largest_component(mesh): mesh = your cleaned BPA meshmesh = keep_largest_component(mesh) To be honest about the limit: holes whose border runs through a non-manifold vertex can still stay open, and Open3D has no built-in step to split those vertices. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm having trouble filling small holes in a mesh created from a point cloud. I'm using the following function...
You can see that some have been filled by the stretched out triangle marked as 'filled' but there are lots of small ones that should be easily filled but are not... what am I missing?
I tried create_from_point_cloud_poisson() from #3913 but the results were destroyed all details.
I'm using open3d 0.18.0 installed from pypi
All reactions