|
Wildmeshing Toolkit
|
#include <volume_geometry.hpp>
Public Attributes | |
| size_t | tet |
| Eigen::Vector4d | b |
| double | min_coordinate |
The tet of T (positions X) holding p, among those accept takes: one that holds it exactly; else, of those p is outside of by a rounding (its distance to each face plane it is outside of below 1e-9 of the tet's size), the one whose smallest exact barycentric coordinate is largest; nothing if p is farther out of them all. With p's coordinates in it, clamped to it, and that smallest coordinate before clamping (0 if held exactly); nothing for a point that is not a number. Coordinates that doubles get wrong – outside the tet for a point in it, as in a nearly flat tet – are computed exactly.