pub struct MappedInstance<'m> { /* private fields */ }Expand description
One MAPPED_ITEM: an instance of a source representation’s geometry,
placed by a pair of frames (the map’s origin and this item’s target).
Implementations§
Source§impl<'m> MappedInstance<'m>
impl<'m> MappedInstance<'m>
pub fn name(&self) -> &'m str
Sourcepub fn key(&self) -> EntityKey
pub fn key(&self) -> EntityKey
This instance’s global identity (a Copy key for maps / deduplication).
Sourcepub fn transform(&self) -> Option<Transform>
pub fn transform(&self) -> Option<Transform>
The placement as two frames, like Occurrence::transform: the source
geometry is defined relative to from (the map’s origin) and placed at
to (this item’s target). A frame that is not an AXIS2_PLACEMENT_3D
(a camera origin, a 2D drawing target) is reported via
Scene::warnings and yields None.
Sourcepub fn solids(&self) -> Vec<Solid<'m>>
pub fn solids(&self) -> Vec<Solid<'m>>
The b-rep solids of the source representation — the geometry this instance stamps. A non-shape source (a presentation view) has none.
Sourcepub fn mapped_children(&self) -> Vec<MappedInstance<'m>>
pub fn mapped_children(&self) -> Vec<MappedInstance<'m>>
Nested mapped items inside the source representation — one level of an assembly chain; walk them to traverse the instance tree.
Trait Implementations§
Source§impl<'m> Clone for MappedInstance<'m>
impl<'m> Clone for MappedInstance<'m>
Source§fn clone(&self) -> MappedInstance<'m>
fn clone(&self) -> MappedInstance<'m>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more