MeshFieldEvaluator

The signed distance field of a triangle mesh, for the tet bake of a mesh item.

Inherits construct::eval::IFieldEvaluator
Group construct

In the namespace construct::eval. Declared in src/libs/libconstruct/construct/eval/MeshFieldEvaluator.hpp.

Detailed description

construct-mesh-to-tet §TSD-5, §TSI-2 matrix TSW-4. The value is the distance to the nearest triangle, negative where the generalized winding number w' is at least 0.5 and positive elsewhere. So it has the sign convention of every other IFieldEvaluator, and a mesh with holes, overlapping shells or an inward winding still has an inside (§TSD-8).

Thread safety: evaluate() and evaluateWithGradient() are safe to call from many threads on one instance. They only read the distance object, which is read-only after its build.

In this section