Function pfield::computeUnsignedDistanceToMesh
Defined in File mesh_collision.hpp
Function Documentation
-
double pfield::computeUnsignedDistanceToMesh(const MeshCollisionData &meshData, const Eigen::Vector3d &pointInMeshFrame)
Computes the distance from a point to the mesh defined by the given MeshCollisionData including the sign (negative if inside, positive if outside)
- Parameters:
meshData – The mesh collision data
pointInMeshFrame – The point to compute the distance to, expressed in the mesh’s local frame
- Returns:
double The unsigned distance from the point to the mesh