pub struct ImportedModel {
pub bodies: Vec<ImportedBody>,
pub report: ImportReport,
pub nodes: Vec<ImportedNode>,
pub source_unit: Option<LengthUnit>,
pub annotations: Vec<ImportedAnnotation>,
}Expand description
Result of importing an external CAD file.
Fields§
§bodies: Vec<ImportedBody>One entry per top-level body in the source file.
report: ImportReportEverything the reader had to say about the file, kept whole so it can be handed to whoever maintains the kernel rather than scrolled past in a terminal.
nodes: Vec<ImportedNode>Optional assembly/object tree reconstructed from the file’s product structure.
source_unit: Option<LengthUnit>Length unit declared by the source file, when detectable. Geometry in
bodies is always expressed in millimetres regardless; this field
is purely informational and used by the UI to pick a display unit.
annotations: Vec<ImportedAnnotation>The file’s annotations (dimensions, tolerances, datums and notes) in file order, the drawn ones first.
Trait Implementations§
Source§impl Clone for ImportedModel
impl Clone for ImportedModel
Source§impl Debug for ImportedModel
impl Debug for ImportedModel
Source§impl Default for ImportedModel
impl Default for ImportedModel
Source§impl<'de> Deserialize<'de> for ImportedModel
impl<'de> Deserialize<'de> for ImportedModel
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
Auto Trait Implementations§
impl Forget for ImportedModel
impl Freeze for ImportedModel
impl RefUnwindSafe for ImportedModel
impl Send for ImportedModel
impl Sync for ImportedModel
impl Unpin for ImportedModel
impl UnsafeUnpin for ImportedModel
impl UnwindSafe for ImportedModel
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