[][src]Trait ncollide3d::transformation::ToTriMesh

pub trait ToTriMesh<N: RealField> {
    type DiscretizationParameter;
    fn to_trimesh(&self, i: Self::DiscretizationParameter) -> TriMesh<N>;
}

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

Associated Types

Loading content...

Required methods

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

Builds a triangle mesh from this shape.

Arguments:

  • i - the discretization parameters.
Loading content...

Implementors

impl<N: RealField> ToTriMesh<N> for Ball<N>[src]

type DiscretizationParameter = (u32, u32)

impl<N: RealField> ToTriMesh<N> for Capsule<N>[src]

type DiscretizationParameter = (u32, u32)

impl<N: RealField> ToTriMesh<N> for Cone<N>[src]

type DiscretizationParameter = u32

impl<N: RealField> ToTriMesh<N> for Cuboid<N>[src]

impl<N: RealField> ToTriMesh<N> for Cylinder<N>[src]

type DiscretizationParameter = u32

impl<N: RealField> ToTriMesh<N> for HeightField<N>[src]

impl<N: RealField> ToTriMesh<N> for Triangle<N>[src]

Loading content...