pub trait Sweep: Sized {
    type Swept;

    // Required method
    fn sweep_with_cache(
self,
path: impl Into<Vector<3>>,
cache: &mut SweepCache,
objects: &mut Service<Objects>
) -> Self::Swept; // Provided method fn sweep(
self,
path: impl Into<Vector<3>>,
objects: &mut Service<Objects>
) -> Self::Swept { ... } }
Expand description

Sweep an object along a path to create another object

Required Associated Types§

source

type Swept

The object that is created by sweeping the implementing object

Required Methods§

source

fn sweep_with_cache(
self,
path: impl Into<Vector<3>>,
cache: &mut SweepCache,
objects: &mut Service<Objects>
) -> Self::Swept

Sweep the object along the given path, using the provided cache

Provided Methods§

source

fn sweep(
self,
path: impl Into<Vector<3>>,
objects: &mut Service<Objects>
) -> Self::Swept

Sweep the object along the given path

Implementations on Foreign Types§

source§

impl Sweep for (Handle<HalfEdge>, Color)

§

type Swept = Handle<Face>

source§

fn sweep_with_cache(
self,
path: impl Into<Vector<3>>,
cache: &mut SweepCache,
objects: &mut Service<Objects>
) -> Self::Swept

source§

impl Sweep for (Point<1>, Handle<SurfaceVertex>, Handle<Surface>)

§

type Swept = Handle<HalfEdge>

source§

fn sweep_with_cache(
self,
path: impl Into<Vector<3>>,
cache: &mut SweepCache,
objects: &mut Service<Objects>
) -> Self::Swept

Implementors§