ncollide3d::procedural::path

Trait StrokePattern

Source
pub trait StrokePattern<N: RealField + Copy> {
    // Required method
    fn stroke<C: CurveSampler<N>>(&mut self, sampler: &mut C) -> TriMesh<N>;
}
Expand description

A pattern that is replicated along a path.

It is responsible of the generation of the whole mesh.

Required Methods§

Source

fn stroke<C: CurveSampler<N>>(&mut self, sampler: &mut C) -> TriMesh<N>

Generates the mesh using this pattern and the curve sampled by sampler.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<N, C1, C2> StrokePattern<N> for PolylinePattern<N, C1, C2>