Skip to main content

SweepLoop

Struct SweepLoop 

Source
pub struct SweepLoop {
    pub profile: Profile,
    pub poles: Vec<bool>,
    pub on_axis: Vec<bool>,
    pub apex: bool,
}
Expand description

One profile loop or chain to sweep, and which of its joints are poles and which of its curves lie on the axis (see the module docs). A curve on the axis runs between two poles.

Fields§

§profile: Profile§poles: Vec<bool>

Per joint: whether it lies on the axis.

§on_axis: Vec<bool>

Per curve: whether it lies along the axis.

§apex: bool

Whether the loop is collapsed to one point, every curve degenerate there: the apex a loft to a point comes to (see [skin]).

Implementations§

Source§

impl SweepLoop

Source

pub fn plain(profile: Profile) -> Self

profile, clear of any axis.

Source

pub fn reversed(&self) -> Self

The same loop traversed the other way; every flag stays with its curve or joint (see Profile::reversed).

Source

pub fn at_corners(&self) -> GeopResult<Self>

The same loop with every curve cut at its corners: the knots inside it where the curve is only C0 and turns, its tangent coming in definitely not along the one going out — a polyline given as one curve, a curve a STEP file gives with a kink. Swept whole, such a curve makes a wall creased inside one face, which every question about a face’s normal — an offset, a blend, a silhouette — takes for one smooth surface. Cut, the crease is an edge. The pieces of a curve X are X, X#k1, X#k2, …, the joints between them X@k1, X@k2, …; each piece is an exact piece of the curve, on [0, 1]. A joint inside a curve on the axis is a pole.

Trait Implementations§

Source§

impl Clone for SweepLoop

Source§

fn clone(&self) -> SweepLoop

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SweepLoop

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.