Struct ncollide_procedural::path::PolylinePattern
[−]
[src]
pub struct PolylinePattern<N: Scalar, C1, C2> { // some fields omitted }
A pattern composed of polyline and two caps.
Methods
impl<N, C1, C2> PolylinePattern<N, C1, C2> where N: Scalar, C1: PolylineCompatibleCap<N>, C2: PolylineCompatibleCap<N>
[src]
fn new(pattern: &Polyline<Pnt2<N>>, closed: bool, start_cap: C1, end_cap: C2) -> PolylinePattern<N, C1, C2>
Creates a new polyline pattern.
Trait Implementations
impl<N, C1, C2> StrokePattern<Pnt3<N>> for PolylinePattern<N, C1, C2> where N: Scalar, C1: PolylineCompatibleCap<N>, C2: PolylineCompatibleCap<N>
[src]
fn stroke<C>(&mut self, sampler: &mut C) -> TriMesh<Pnt3<N>> where C: CurveSampler<Pnt3<N>>
Generates the mesh using this pattern and the curve sampled by sampler
.