pub struct PartDescription {
pub solids: BTreeMap<String, Vec<Vec<String>>>,
pub faces: BTreeMap<String, FaceDescription>,
pub edges: BTreeMap<String, EdgeDescription>,
pub vertices: BTreeMap<String, [f64; 3]>,
pub sketches: Vec<String>,
pub datums: Vec<String>,
}Expand description
Everything about a part’s topology that its names can express, and the positions of its vertices — with no internal id anywhere, so two parts built by the same program describe identically however their ids came out, and a description diffs well as text. Loops start at their smallest entry and holes are sorted, since neither has a first element of its own.
Fields§
§solids: BTreeMap<String, Vec<Vec<String>>>Every solid’s shells, each as its sorted face names.
faces: BTreeMap<String, FaceDescription>§edges: BTreeMap<String, EdgeDescription>§vertices: BTreeMap<String, [f64; 3]>§sketches: Vec<String>§datums: Vec<String>Implementations§
Source§impl PartDescription
impl PartDescription
pub fn of<S: Scalar>(part: &Part<S>) -> GeopResult<Self>
Trait Implementations§
Source§impl Clone for PartDescription
impl Clone for PartDescription
Source§fn clone(&self) -> PartDescription
fn clone(&self) -> PartDescription
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PartDescription
impl Debug for PartDescription
Source§impl<'de> Deserialize<'de> for PartDescription
impl<'de> Deserialize<'de> for PartDescription
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 PartDescription
impl PartialEq for PartDescription
Source§fn eq(&self, other: &PartDescription) -> bool
fn eq(&self, other: &PartDescription) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PartDescription
impl Serialize for PartDescription
impl StructuralPartialEq for PartDescription
Auto Trait Implementations§
impl Freeze for PartDescription
impl RefUnwindSafe for PartDescription
impl Send for PartDescription
impl Sync for PartDescription
impl Unpin for PartDescription
impl UnsafeUnpin for PartDescription
impl UnwindSafe for PartDescription
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