Intersections

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.

bool ipc::is_edge_intersecting_triangle(const Eigen::Vector3de0,
    
const Eigen::Vector3de1const Eigen::Vector3dt0,
    
const Eigen::Vector3dt1const Eigen::Vector3dt2);