Jump to content
Sign in to follow this  
AlexanderT

Automatically fix mesh tunnels/holes

Recommended Posts

Hi,

Sometimes in photogrammetry scanning, holes/tunnels appear on thin surfaces like on ears and cloth (please see image and model attached). Is it possible to detect them in Houdini automatically? Idea is to solve these issues on multiple scans running a few SOP's on a sequence of OBJ's.

Geomagic software can detect them as Small Tunnels and you can delete them there and cap the holes easily, so it is possible to define them mathematically although I can't find any tools in Houdini that can do the same.

Thank you!

mesh_tunnels_example.jpg

mesh_tunnels_example.OBJ

Share this post


Link to post
Share on other sites

There are greater chances of success by going one step back, eg. improving the meshing algorithm based on the underlying point cloud data.

Once you got hold of the point cloud, try (point replicate,) VDB from Particles, VDB reshape, VDB smooth and VDB convert to get a mesh thats closer to the real surface.

Share this post


Link to post
Share on other sites

Scans are processed in Reality Capture. There's no way of reprocessing the data. It will be great to find a way to detect/delete and cap those holes.

Share this post


Link to post
Share on other sites

From my experience for this kind of shape, decrease the quality of one of the differents step, Alignement, meshing, or even reduce the photos size,
can result in better result, less noisy, and sometime less holes.
No warranty, just try. photogrametry is sometimes arbitrary, even esoteric.
The only guarantee of quality is the quality of the shots.
Improving this after, is not easy.

PS : Sorry, I didn't notice you weren't the guy who do the photgrametry process.

You can try meshMixer (free).
He's pretty good at plugging holes.

Edited by flcc

Share this post


Link to post
Share on other sites

Hi Alexander,

image.png.dbb53fca060551a01ed0ea95fc82359d.png -> image.png.e0c1e6e4160ffbe5286b788aefae37a6.png

try this route:

  • convert to VDB with VDB from polygons
  • dilate with VDB reshape SDF
  • close with VDB reshape SDF
  • erode with VDB reshape SDF
  • convert to polygons with convert VDB

Make sure to play around with all parameters and radii to get as close as possible.

fill_scan.hipnc

Share this post


Link to post
Share on other sites

Thank you Konstantin. VDB destroys a lot of detail and I need to preserve all mesh details and UV's. Ideally I just need to detect them, delete and then fill those those holes. Do you know any other way?

Share this post


Link to post
Share on other sites

You could try to fill the missing pieces with inverted space carving (left) or by re-projecting depth maps (bottom) or rather their tracing curves (right).

image.png.a12cedb1f08d30853d39c75bc7c8f8e1.png image.png.28370e7102c3af2e4433602e5de3a47d.png

image.thumb.png.3b4d715f0559f43995890d4996a4fb07.png

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×