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

pub trait ToPolyline<N> where
    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> ToPolyline<N> for Ball<N> where
    N: RealField
[src]

type DiscretizationParameter = u32

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

type DiscretizationParameter = u32

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

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

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

Loading content...