pub struct TShape { /* private fields */ }Expand description
A topology node: the shared, placeless, orientationless part of a shape.
Held in an arena; a Shape refers to one by handle. The geometry,
tolerances and edge representations that hang off a node live alongside it,
keyed by the same handle.
Implementations§
Source§impl TShape
impl TShape
Sourcepub const fn new(kind: ShapeType, data: NodeData, children: Vec<Shape>) -> Self
pub const fn new(kind: ShapeType, data: NodeData, children: Vec<Shape>) -> Self
A node of the given type, with its data and children.
Sourcepub const fn container(kind: ShapeType, children: Vec<Shape>) -> Self
pub const fn container(kind: ShapeType, children: Vec<Shape>) -> Self
A container node: wire, shell, solid, compsolid or compound.
Sourcepub fn child_count(&self) -> usize
pub fn child_count(&self) -> usize
Number of direct children.
Trait Implementations§
impl StructuralPartialEq for TShape
Auto Trait Implementations§
impl Freeze for TShape
impl RefUnwindSafe for TShape
impl Send for TShape
impl Sync for TShape
impl Unpin for TShape
impl UnsafeUnpin for TShape
impl UnwindSafe for TShape
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> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.