pub struct AddSketch;Expand description
Adds a sketch on a plane to the part, named by the operation’s id: a base
plane, a planar face or a datum plane (see EntityRef). The plane is
resolved when the sketch is added: a sketch on a face stays where the
face was, whatever later operations do to the face.
Trait Implementations§
impl Copy for AddSketch
Source§impl<'de> Deserialize<'de> for AddSketch
impl<'de> Deserialize<'de> for AddSketch
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<S: Scalar> Operation<S> for AddSketch
impl<S: Scalar> Operation<S> for AddSketch
Source§fn handles(
&self,
before: &Part<S>,
args: &AddSketchArgs,
) -> GeopResult<Vec<Handle>>
fn handles( &self, before: &Part<S>, args: &AddSketchArgs, ) -> GeopResult<Vec<Handle>>
Every point, as a handle that slides in the sketch plane.
Source§type Args = AddSketchArgs
type Args = AddSketchArgs
Everything the operation needs, as plain, serializable design data.
Source§fn apply(
&self,
part: Part<S>,
operation_id: &str,
args: &AddSketchArgs,
) -> GeopResult<Part<S>>
fn apply( &self, part: Part<S>, operation_id: &str, args: &AddSketchArgs, ) -> 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 moreimpl StructuralPartialEq for AddSketch
Auto Trait Implementations§
impl Freeze for AddSketch
impl RefUnwindSafe for AddSketch
impl Send for AddSketch
impl Sync for AddSketch
impl Unpin for AddSketch
impl UnsafeUnpin for AddSketch
impl UnwindSafe for AddSketch
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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