meshToSignedDistanceField values outside those occupied by the mesh? #1549
-
I'm trying to make something experimental but the value retrieved is always the background value instead of the distance to the mesh when I'm not on a voxel that intersects with the geometry. Actually I'm not interested on the value itself but on the sign (is the voxel inside or outside the geometry?) Is there any chance to force that? Regards. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is the premise and design of narrow band SDFs in OpenVDB. When a SDF is constructed you choose the size of the external/internal bands which control how far away from the surface you want to store valid distance values. Voxels further away (in index space) than this band size will receive constant background values. You can increase the band sizes as desired.
SDFs created through OpenVDB methods will flood fill the outside of the level set with inactive positive background values. The inside of the level set will be filled with inactive negative background sizes. You are able to check the sign of any value in a valid SDF and know immediately from the sign whether you are outside (+) or inside (-) |
Beta Was this translation helpful? Give feedback.
This is the premise and design of narrow band SDFs in OpenVDB. When a SDF is constructed you choose the size of the external/internal bands which control how far away from the surface you want to store valid distance values. Voxels further away (in index space) than this band size will receive constant background values. You can increase the band sizes as desired.
SDFs created through Op…