pub struct SketchGroup {
pub id: Uuid,
pub on: SketchSurface,
pub position: Point3d,
pub rotation: Point4d,
pub axes: Axes,
pub entity_id: Option<Uuid>,
pub path_first: BasePath,
pub path_rest: Vec<PathSegment>,
}Expand description
A sketch group is a collection of paths.
Fields§
§id: UuidThe id of the sketch group.
on: SketchSurfaceWhat the sketch is on (can be a plane or a face).
position: Point3dThe position of the sketch group.
rotation: Point4dThe rotation of the sketch group base plane.
axes: AxesThe X, Y and Z axes of this sketch’s base plane, in 3D space.
entity_id: Option<Uuid>The plane id or face id of the sketch group.
path_first: BasePathThe base path.
path_rest: Vec<PathSegment>Paths after the first path, if any.
Implementations§
Source§impl SketchGroup
impl SketchGroup
Sourcepub fn last_point(&self) -> Point2d<f64>
pub fn last_point(&self) -> Point2d<f64>
The to end of the last path segment.
i.e. the point from which the next segment will start.
Sourcepub fn path_id_offset() -> usize
pub fn path_id_offset() -> usize
Get the offset for the id field.
Sourcepub fn set_base_path(
&self,
sketch_group: Address,
start_point: Address,
tag: Option<Address>,
) -> Vec<Instruction>
pub fn set_base_path( &self, sketch_group: Address, start_point: Address, tag: Option<Address>, ) -> Vec<Instruction>
Set the base path of the sketch group.
sketch_group is the starting address of the sketch group.
start_point is the address of the base path’s start geometric point.
tag is the address of the base path’s tag.
Trait Implementations§
Source§impl Clone for SketchGroup
impl Clone for SketchGroup
Source§fn clone(&self) -> SketchGroup
fn clone(&self) -> SketchGroup
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SketchGroup
impl Debug for SketchGroup
Source§impl<'de> Deserialize<'de> for SketchGroup
impl<'de> Deserialize<'de> for SketchGroup
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 PartialEq for SketchGroup
impl PartialEq for SketchGroup
Source§impl Serialize for SketchGroup
impl Serialize for SketchGroup
Source§impl Value for SketchGroup
impl Value for SketchGroup
Source§fn into_parts(self) -> Vec<Primitive>
fn into_parts(self) -> Vec<Primitive>
Store the value in memory.
Source§fn from_parts<I>(values: &mut I) -> Result<(Self, usize), MemoryError>
fn from_parts<I>(values: &mut I) -> Result<(Self, usize), MemoryError>
Read the value from memory.
impl StructuralPartialEq for SketchGroup
Auto Trait Implementations§
impl Freeze for SketchGroup
impl RefUnwindSafe for SketchGroup
impl Send for SketchGroup
impl Sync for SketchGroup
impl Unpin for SketchGroup
impl UnwindSafe for SketchGroup
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,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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