#[non_exhaustive]pub struct StyledSubMeshes { /* private fields */ }Expand description
An element’s sub-meshes, each with the IfcMappedItem occurrences it was
produced under (#10698), from the *_styled_* GeometryRouter entries.
The sub-meshes are exactly those the matching plain entry returns, in the
same order. Self::iter pairs each sub-mesh with its occurrence chain,
the mapped items it was produced under, inner to outer. A style on one of
them styles this occurrence of the shared geometry, so two sub-meshes with
the same geometry_id can be coloured apart. The chain is empty for a
direct item, a material-layer slice (ids_are_materials) and a cut part of
either.
Implementations§
Source§impl StyledSubMeshes
impl StyledSubMeshes
Sourcepub fn ids_are_materials(&self) -> bool
pub fn ids_are_materials(&self) -> bool
Whether SubMesh::geometry_id is an IfcMaterial id rather than an
IfcRepresentationItem id (SubMeshCollection::ids_are_materials).
Sourcepub fn iter(&self) -> impl Iterator<Item = (&SubMesh, &[u32])>
pub fn iter(&self) -> impl Iterator<Item = (&SubMesh, &[u32])>
Each sub-mesh with its occurrence chain, in order.
Sourcepub fn into_iter_with_occurrences(
self,
) -> impl Iterator<Item = (SubMesh, Vec<u32>)>
pub fn into_iter_with_occurrences( self, ) -> impl Iterator<Item = (SubMesh, Vec<u32>)>
Each sub-mesh with its occurrence chain, in order, by value.
Sourcepub fn into_collection(self) -> SubMeshCollection
pub fn into_collection(self) -> SubMeshCollection
The plain collection the matching plain entry returns.
Trait Implementations§
Source§impl Clone for StyledSubMeshes
impl Clone for StyledSubMeshes
Source§fn clone(&self) -> StyledSubMeshes
fn clone(&self) -> StyledSubMeshes
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StyledSubMeshes
impl Debug for StyledSubMeshes
Source§impl Default for StyledSubMeshes
impl Default for StyledSubMeshes
Source§fn default() -> StyledSubMeshes
fn default() -> StyledSubMeshes
Auto Trait Implementations§
impl Freeze for StyledSubMeshes
impl RefUnwindSafe for StyledSubMeshes
impl Send for StyledSubMeshes
impl Sync for StyledSubMeshes
impl Unpin for StyledSubMeshes
impl UnwindSafe for StyledSubMeshes
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for 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.