Skip to main content

Revolve

Struct Revolve 

Source
pub struct Revolve;
Expand description

Revolves every region of a sketch a full turn around one of its lines, into one solid named revolve(R) for the operation R — or, with RevolveArgs::combine, combines that with another solid (see Combine), the result named revolve(R) all the same.

Each region must touch the axis along an edge — a line whose endpoints the constraints put on the axis (see Sketch::on_line), typically the axis line itself — and lie entirely on one side of it, the same side for every region. The rest of its boundary is the profile that sweeps out the solid, and names it (see geop_ops_extrude_revolve::revolve::revolve_at_oriented): with X a piece of a sketch curve and P a joint of the sketch K, as for super::Extrude,

  • revolve(R,K,X,q0) .. q3: the face X sweeps through each quarter turn, starting from the sketch plane;
  • revolve(R,K,X,a0) .. a3: X itself at each quarter angle (a0 is the profile where it was drawn);
  • revolve(R,K,P,q0) .. / revolve(R,K,P,a0) ..: the circular edges and vertices P sweeps, and revolve(R,K,P) for a P on the axis.

Trait Implementations§

Source§

impl Clone for Revolve

Source§

fn clone(&self) -> Revolve

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 Copy for Revolve

Source§

impl Debug for Revolve

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for Revolve

Source§

fn default() -> Revolve

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Revolve

Source§

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<S: Scalar> Operation<S> for Revolve

Source§

type Args = RevolveArgs

Everything the operation needs, as plain, serializable design data.
Source§

fn apply( &self, part: Part<S>, operation_id: &str, args: &RevolveArgs, ) -> GeopResult<Part<S>>

Applies the operation as the program step operation_id, consuming part and returning the part it produces. Everything the operation creates is named after operation_id (see geop_core_part), so the id has to be unique within a program. Read more
Source§

fn handles( &self, before: &Part<S>, args: &Self::Args, ) -> GeopResult<Vec<Handle>>

The step’s handles (see Handle), given the part before it — what it is applied to. None, unless the operation offers some.
Source§

impl PartialEq for Revolve

Source§

fn eq(&self, other: &Revolve) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Revolve

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Revolve

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
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.