pub trait Sweep: Sized {
    type Swept;

    // Required method
    fn sweep_with_cache(
        self,
        path: impl Into<Vector<3>>,
        cache: &mut SweepCache,
        services: &mut Services
    ) -> Self::Swept;

    // Provided method
    fn sweep(
        self,
        path: impl Into<Vector<3>>,
        services: &mut Services
    ) -> 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, services: &mut Services ) -> Self::Swept

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

Provided Methods§

source

fn sweep( self, path: impl Into<Vector<3>>, services: &mut Services ) -> Self::Swept

Sweep the object along the given path

Implementations on Foreign Types§

source§

impl Sweep for (Curve, &Surface)

§

type Swept = Handle<Surface>

source§

fn sweep_with_cache( self, path: impl Into<Vector<3>>, _: &mut SweepCache, services: &mut Services ) -> Self::Swept

source§

impl Sweep for (&HalfEdge, &Handle<Vertex>, &Surface, Option<Color>)

§

type Swept = (Handle<Face>, Handle<HalfEdge>)

source§

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

Implementors§