pub struct RotateExtrude<O> {
pub object: O,
pub angle_degrees: f64,
pub convexity: f64,
pub fn_: usize,
}Expand description
Revolve a 2D profile about its local Y axis (OpenSCAD rotate_extrude).
The profile is expected to lie in the x ≥ 0 half-plane; profile-x is the radius from the revolution axis, profile-y the height along it. Regions with negative x produce undefined results, matching OpenSCAD.
Fields§
§object: O§angle_degrees: f64Sweep angle in degrees (360 = full revolution).
convexity: f64§fn_: usizeImplementations§
Source§impl<O: Object> RotateExtrude<O>
impl<O: Object> RotateExtrude<O>
Trait Implementations§
Source§impl<O: Clone> Clone for RotateExtrude<O>
impl<O: Clone> Clone for RotateExtrude<O>
Source§fn clone(&self) -> RotateExtrude<O>
fn clone(&self) -> RotateExtrude<O>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<O: Debug> Debug for RotateExtrude<O>
impl<O: Debug> Debug for RotateExtrude<O>
Source§impl<'de, O> Deserialize<'de> for RotateExtrude<O>where
O: Deserialize<'de>,
impl<'de, O> Deserialize<'de> for RotateExtrude<O>where
O: Deserialize<'de>,
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
Source§impl<T: TwoDimensional> Object for RotateExtrude<T>
impl<T: TwoDimensional> Object for RotateExtrude<T>
Source§impl<O> Serialize for RotateExtrude<O>where
O: Serialize,
impl<O> Serialize for RotateExtrude<O>where
O: Serialize,
Source§impl<O: Object + ToDynamic> ToDynamic for RotateExtrude<O>
impl<O: Object + ToDynamic> ToDynamic for RotateExtrude<O>
fn to_dynamic(&self) -> DynamicObject
impl<O: Copy> Copy for RotateExtrude<O>
impl<T: TwoDimensional> ThreeDimensional for RotateExtrude<T>
Auto Trait Implementations§
impl<O> Freeze for RotateExtrude<O>where
O: Freeze,
impl<O> RefUnwindSafe for RotateExtrude<O>where
O: RefUnwindSafe,
impl<O> Send for RotateExtrude<O>where
O: Send,
impl<O> Sync for RotateExtrude<O>where
O: Sync,
impl<O> Unpin for RotateExtrude<O>where
O: Unpin,
impl<O> UnsafeUnpin for RotateExtrude<O>where
O: UnsafeUnpin,
impl<O> UnwindSafe for RotateExtrude<O>where
O: UnwindSafe,
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
Source§impl<T> CenterObject for Twhere
T: Object,
impl<T> CenterObject for Twhere
T: Object,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ColorObject for Twhere
T: Object,
impl<T> ColorObject for Twhere
T: Object,
fn colored(self, color: impl ColorFormat) -> Colored<T>
Source§impl<T> DifferenceObject for Twhere
T: Object,
impl<T> DifferenceObject for Twhere
T: Object,
fn difference<Other: Object>(self, other: Other) -> Difference<Self, Other>
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> IntersectionObject for Twhere
T: Object,
impl<T> IntersectionObject for Twhere
T: Object,
fn intersection<Other: Object>(self, other: Other) -> Intersection<Self, Other>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more