pub struct Extents {
pub side1: Extent,
pub symmetric: bool,
pub side2: Option<Extent>,
pub reversed: bool,
}Expand description
How far an extrude or revolve goes, from its sketch’s plane: side1
along its direction — the plane’s normal, the turn’s, or against it if
reversed — and, if symmetric, as far again the other way, half of a
length each way; or else side2, if any, the other way on its own
terms.
Fields§
§side1: Extent§symmetric: bool§side2: Option<Extent>§reversed: boolImplementations§
Source§impl Extents
impl Extents
Sourcepub fn blind(amount: impl Into<NumericInput>) -> Self
pub fn blind(amount: impl Into<NumericInput>) -> Self
One side, amount far: a number, or a formula’s text.
Sourcepub fn reaches_target(&self) -> bool
pub fn reaches_target(&self) -> bool
Whether a side goes as far as the solid it is combined with, which it then needs.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Extents
impl<'de> Deserialize<'de> for Extents
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Extents
Auto Trait Implementations§
impl Freeze for Extents
impl RefUnwindSafe for Extents
impl Send for Extents
impl Sync for Extents
impl Unpin for Extents
impl UnsafeUnpin for Extents
impl UnwindSafe for Extents
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more