Skip to content
Discussion options

You must be logged in to vote

I ended up using the approach outlined in my last paragraph above, i.e. using an openvdb::Int32Grid::Ptr polygonIndexGrid that's populated by meshToVolume(). Subsequently, running evaluateInteriorTest() using a custom class w/ overloaded bool operator() — i.e. a functor, though a lambda would work as well — I indicate whether a voxel lies in the interior or exterior. Finally, iterating over all voxels, I use setValueOff() to effectively remove voxels in the interior.

Although it's reasonably fast, I'd still be interested to hear whether there's a more efficient way to accomplish this.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pbarendrecht
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant