christopherbatty / SDFGen

A simple commandline utility to generate grid-based signed distance field (level set) generator from triangle meshes, using code from Robert Bridson's website.
www.cs.columbia.edu/~batty
758 stars 127 forks source link

Sign only reliable for watertight meshes? #4

Closed davidstutz closed 6 years ago

davidstutz commented 6 years ago

Hi,

as in Robert Bradson's code, I assume that the inside/outside test only works for (more or less) watertight meshes, right? I am specifically referring to line 173 in the code.

Thanks!

christopherbatty commented 6 years ago

That's right. If the mesh is not watertight, then inside/outside is ill-defined, so you won't likely get a consistent/meaningful result.

davidstutz commented 6 years ago

Thanks for the clarification!