Utils

double ipc::compute_minimum_distance(const CollisionMesh &mesh, const Eigen::MatrixXd &V, const Constraints &constraint_set)

Computes the minimum distance between any non-adjacent elements.

Parameters:
const CollisionMesh &mesh

[in] The collision mesh.

const Eigen::MatrixXd &V

[in] Vertices of the collision mesh.

Returns:

The minimum distance between any non-adjacent elements.

bool ipc::has_intersections(const CollisionMesh &mesh, const Eigen::MatrixXd &V, const BroadPhaseMethod method = BroadPhaseMethod::HASH_GRID)

Determine if the mesh has self intersections.

Parameters:
const CollisionMesh &mesh

[in] The collision mesh.

const Eigen::MatrixXd &V

[in] Vertices of the collision mesh.

Returns:

A boolean for if the mesh has intersections.