pub struct ModelParts {
pub nodes: Vec<TShape>,
pub datums: Vec<Datum>,
pub geometry: GeometryStore,
pub provenance: Vec<Provenance>,
pub identity: Vec<(TShapeId, EntityId)>,
pub current_op: OpId,
pub tolerances: Tolerances,
}Expand description
A model’s contents, laid out the way a file holds them.
Handed to Model::from_parts. Every list is in arena order, and a node’s
children name other nodes by their position in nodes, so the order is
load-bearing rather than incidental, and a reader has to preserve it.
Fields§
§nodes: Vec<TShape>The topology nodes.
datums: Vec<Datum>The placement datums.
geometry: GeometryStoreThe geometry, already assembled.
provenance: Vec<Provenance>Every entity’s provenance, in the order identities were issued: the
first entry is EntityId(1).
identity: Vec<(TShapeId, EntityId)>Which identity each node carries.
current_op: OpIdThe operation the document was left in.
tolerances: TolerancesThe unit scale the document was authored at.
Trait Implementations§
Source§impl Debug for ModelParts
impl Debug for ModelParts
Source§impl Default for ModelParts
impl Default for ModelParts
Source§fn default() -> ModelParts
fn default() -> ModelParts
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ModelParts
impl RefUnwindSafe for ModelParts
impl Send for ModelParts
impl Sync for ModelParts
impl Unpin for ModelParts
impl UnsafeUnpin for ModelParts
impl UnwindSafe for ModelParts
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
§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.