pub struct ImportedBody {
pub name: Option<String>,
pub mesh: TriMesh,
pub brep_blob: Vec<u8>,
pub face_colors: Vec<[f32; 3]>,
pub bounds_mm: Option<([f32; 3], [f32; 3])>,
pub health: Option<ShapeHealth>,
pub layers: Vec<String>,
}Expand description
A single body produced by an external import (e.g. STEP).
The kernel returns one entry per placed body in the source file, meshed.
Self::brep_blob is empty when no snapshot was kept:
TessellationSettings::persist_brep_snapshot off, a full-mesh import,
or a mesh file, which has no shape.
Fields§
§name: Option<String>Optional name extracted from the source file (e.g. STEP product label).
mesh: TriMeshTessellated mesh ready for the viewport.
brep_blob: Vec<u8>Serialized shape snapshot for this body, when one was kept: ogeom
native-format text bytes (ogeom::io::native, one root shape per
blob).
face_colors: Vec<[f32; 3]>Per-face linear RGB albedo in face-exploration order
(ogeom::topo::explore with a Face filter) over the matching shape
snapshot.
bounds_mm: Option<([f32; 3], [f32; 3])>Axis-aligned bounds in millimetres from the raw BRep (before tessellation).
health: Option<ShapeHealth>What the kernel’s checker found in the body’s shape as read.
layers: Vec<String>The names of the layers the file puts the body on.