Skip to content

Using OpenVDB to detect gaps/holes/constricted regions in an SDF #1468

Answered by apradhana
NiranAGMT asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,
One way to solve this problem is by combining the trick of (a) doing morphological closing, and (b) computing the difference between your original geometry with the result of doing morphological closing (from (a)). To do part (a): you dilate the level-set, you reinitialize the level-set, then you erode. The result of this will fill the holes in your level-set. By doing a difference with the original level-set, you will detect the holes.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@NiranAGMT
Comment options

Answer selected by NiranAGMT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants