pub struct StepImport {
pub document: Document,
pub solids: Vec<Shape>,
pub shells: Vec<Shape>,
pub report: StepReport,
}Expand description
A read exchange file: the model, the bodies found, and the report.
Fields§
§document: DocumentThe document everything was built into: the model, plus the file’s product structure, names and colours.
solids: Vec<Shape>One shape per MANIFOLD_SOLID_BREP (BREP_WITH_VOIDS included,
its cavities among its shells), in file order.
shells: Vec<Shape>One shape per SHELL_BASED_SURFACE_MODEL, in file order: its shell,
or a compound of its shells when it names several.
A surface body is what a modeller exports for a part built from faces rather than from a solid. It stays a shell here even when it happens to close: the file did not call it a solid, and the document carries it under its product exactly as the file placed it.
report: StepReportWhat happened along the way.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StepImport
impl RefUnwindSafe for StepImport
impl Send for StepImport
impl Sync for StepImport
impl Unpin for StepImport
impl UnsafeUnpin for StepImport
impl UnwindSafe for StepImport
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.