Sweep

Trait Sweep 

Source
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

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.

Implementations on Foreign Types§

Source§

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

Source§

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

Source§

impl Sweep for (Curve, &Surface)

Source§

type Swept = Handle<Surface>

Source§

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

Implementors§