pub struct Mesh3dInstance { /* private fields */ }Expand description
One retained mesh reference plus its independent model transform and style.
Implementations§
Source§impl Mesh3dInstance
impl Mesh3dInstance
Sourcepub const fn id(&self) -> Object3dId
pub const fn id(&self) -> Object3dId
Returns the stable scene object identifier.
Sourcepub const fn mesh(&self) -> &RetainedMesh3d
pub const fn mesh(&self) -> &RetainedMesh3d
Returns the retained GPU mesh reference.
Sourcepub const fn transform(&self) -> Transform3d
pub const fn transform(&self) -> Transform3d
Returns this object’s model-to-world transform.
Sourcepub const fn style(&self) -> MeshStyle3d
pub const fn style(&self) -> MeshStyle3d
Returns its extensible surface/edge material bundle.
Sourcepub const fn is_visible(&self) -> bool
pub const fn is_visible(&self) -> bool
Returns whether this object participates in drawing and render counts.
Sourcepub const fn wireframe(&self) -> Option<WireframeStyle3d>
pub const fn wireframe(&self) -> Option<WireframeStyle3d>
Returns explicit edge presentation when enabled for this object.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Mesh3dInstance
impl !UnwindSafe for Mesh3dInstance
impl Freeze for Mesh3dInstance
impl Send for Mesh3dInstance
impl Sync for Mesh3dInstance
impl Unpin for Mesh3dInstance
impl UnsafeUnpin for Mesh3dInstance
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