[][src]Trait ncollide2d::transformation::ToPolyline

pub trait ToPolyline<N: RealField> {
    type DiscretizationParameter;
    fn to_polyline(&self, i: Self::DiscretizationParameter) -> Polyline<N>;
}

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

Associated Types

Loading content...

Required methods

fn to_polyline(&self, i: Self::DiscretizationParameter) -> Polyline<N>

Builds a triangle mesh from this shape.

Arguments:

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

Implementors

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

type DiscretizationParameter = u32

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

type DiscretizationParameter = u32

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

impl<N: RealField> ToPolyline<N> for Segment<N>[src]

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

Loading content...