Skip to main content

ExtrudeNames

Struct ExtrudeNames 

Source
pub struct ExtrudeNames<'a> {
    pub namer: &'a Namer,
    pub region: Option<&'a str>,
    pub solid: String,
}
Expand description

The names one extrude gives to what it builds from one region, following geop_core_part’s scheme: N is the operation’s [Namer], X a profile curve’s name and P a joint’s (see Profile).

entityname
side face swept by curve XN(X)
edge along X on the start / end capN(X,start) / N(X,end)
edge swept by joint PN(P)
vertex at P on the start / end capN(P,start) / N(P,end)
start / end capN(start) / N(end), or N(start,R) / N(end,R)

The start cap lies on the profile’s plane, the end cap w away from it. region qualifies the caps (R) when one operation extrudes several regions, each of which has caps of its own.

Fields§

§namer: &'a Namer§region: Option<&'a str>§solid: String

The name of the solid built.

Implementations§

Source§

impl<'a> ExtrudeNames<'a>

Source

pub fn single(namer: &'a Namer) -> Self

The names for an operation that extrudes a single region: its solid is the operation’s own name, its caps are unqualified.

Auto Trait Implementations§

§

impl<'a> Freeze for ExtrudeNames<'a>

§

impl<'a> RefUnwindSafe for ExtrudeNames<'a>

§

impl<'a> Send for ExtrudeNames<'a>

§

impl<'a> Sync for ExtrudeNames<'a>

§

impl<'a> Unpin for ExtrudeNames<'a>

§

impl<'a> UnsafeUnpin for ExtrudeNames<'a>

§

impl<'a> UnwindSafe for ExtrudeNames<'a>

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> 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, 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.