Skip to content

meshToSignedDistanceField values outside those occupied by the mesh? #1549

Answered by Idclip
FrankEscobar asked this question in Q&A
Discussion options

You must be logged in to vote

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.

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.

Actually I'm not interested on the value itself but on the sign (is the voxel inside or outside the geometry?)

SDFs created through Op…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by FrankEscobar
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