pub struct StepImport {
pub document: Document,
pub solids: Vec<Shape>,
pub shells: Vec<Shape>,
pub faces: Vec<(u64, 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, colours and construction geometry.
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.
faces: Vec<(u64, Shape)>Every face read, with its ADVANCED_FACE or FACE_SURFACE id, in id
order: the face as the solids and shells above hold it, so that
Shape::is_partner finds it in them. The id names the face across
reads of the same file, as no handle does.
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
§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>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.