pub struct Solid<'m> { /* private fields */ }Expand description
A b-rep solid — a MANIFOLD_SOLID_BREP, or a BREP_WITH_VOIDS (a body with
internal cavities). Use voids to reach the cavity shells.
Implementations§
Source§impl<'m> Solid<'m>
impl<'m> Solid<'m>
pub fn name(&self) -> &'m str
Sourcepub fn key(&self) -> EntityKey
pub fn key(&self) -> EntityKey
This solid’s global identity (a Copy key for maps / deduplication; two
handles to the same entity share one key()).
Sourcepub fn transparency(&self) -> Option<f64>
pub fn transparency(&self) -> Option<f64>
The transparency styled onto this solid (0.0 opaque … 1.0 fully
transparent), if any.
Sourcepub fn layer(&self) -> Option<&'m str>
pub fn layer(&self) -> Option<&'m str>
The name of the presentation layer this solid belongs to, if any.
Sourcepub fn is_visible(&self) -> bool
pub fn is_visible(&self) -> bool
Whether this solid is visible — false if an INVISIBILITY hides it (via
its styled item or its layer). Defaults to visible.
Trait Implementations§
Auto Trait Implementations§
impl<'m> Freeze for Solid<'m>
impl<'m> RefUnwindSafe for Solid<'m>
impl<'m> Send for Solid<'m>
impl<'m> Sync for Solid<'m>
impl<'m> Unpin for Solid<'m>
impl<'m> UnsafeUnpin for Solid<'m>
impl<'m> UnwindSafe for Solid<'m>
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