Only generate voxels on one side of an open mesh #2063
Unanswered
pbarendrecht
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Given an open mesh, i.e. a manifold and orientable mesh with one or more boundaries, is it somehow possible to restrict the generation of voxels to one side? That is, assuming we have consistent face normals (e.g. all CCW triangles), define the exterior as the direction of those face normals, and the interior as the opposite direction.
For signed distance VDBs, I realise this would cause an issue in areas that are essentially co-planar with a boundary layer of the mesh, as the sign wouldn't be defined there. However, for unsigned distance VDBs or boolean VDBs, I don't see any problems.
Looking at the documentation,
MeshToVolumeFlags
— in particular,UNSIGNED_DISTANCE_FIELD
— sounded promising, but does not appear useful here (it seems that both sides of an open mesh are considered exterior). Instead, perhapsevaluateInteriorTest
could be used for the above purpose, possibly combining it withpolygonIndexGrid
?Beta Was this translation helpful? Give feedback.
All reactions