ncollide3d::transformation

Trait ToTriMesh

Source
pub trait ToTriMesh<N: RealField + Copy> {
    type DiscretizationParameter;

    // Required method
    fn to_trimesh(&self, i: Self::DiscretizationParameter) -> TriMesh<N>;
}
Expand description

Trait implemented by shapes that can be approximated by a triangle mesh.

Required Associated Types§

Required Methods§

Source

fn to_trimesh(&self, i: Self::DiscretizationParameter) -> TriMesh<N>

Builds a triangle mesh from this shape.

§Arguments:
  • i - the discretization parameters.

Implementors§