Utils

double ipc::CollisionConstraints::compute_minimum_distance(
    
const CollisionMeshmesh,
    
const Eigen::MatrixXdvertices) const;

Computes the minimum distance between any non-adjacent elements.

Parameters:
const CollisionMesh &mesh

The collision mesh.

const Eigen::MatrixXd &vertices

Vertices of the collision mesh.

Returns:

The minimum distance between any non-adjacent elements.

bool ipc::has_intersections(const CollisionMeshmesh,
    
const Eigen::MatrixXdvertices,
    
const BroadPhaseMethod broad_phase_method
    
= DEFAULT_BROAD_PHASE_METHOD
);

Determine if the mesh has self intersections.

Parameters:
const CollisionMesh &mesh

The collision mesh.

const Eigen::MatrixXd &vertices

Vertices of the collision mesh.

const BroadPhaseMethod broad_phase_method = DEFAULT_BROAD_PHASE_METHOD

The broad phase method to use.

Returns:

A boolean for if the mesh has intersections.