pub struct MeshStyle3d { /* private fields */ }Expand description
Extensible visual material bundle for a retained 3D object.
Surface and wireframe presentation are independent. Edge-only construction
geometry uses surface = None; future section materials can extend
SurfaceStyle3d without changing scene insertion or object addressing.
Implementations§
Source§impl MeshStyle3d
impl MeshStyle3d
Sourcepub const fn surface(surface: SurfaceStyle3d) -> Self
pub const fn surface(surface: SurfaceStyle3d) -> Self
Creates an object with the selected surface material and no display edges.
Sourcepub const fn wireframe(wireframe: WireframeStyle3d) -> Self
pub const fn wireframe(wireframe: WireframeStyle3d) -> Self
Creates display edges without a surface/depth-writing face pass.
Sourcepub const fn with_wireframe(self, wireframe: WireframeStyle3d) -> Self
pub const fn with_wireframe(self, wireframe: WireframeStyle3d) -> Self
Adds or replaces display-edge presentation.
Sourcepub const fn surface_style(self) -> Option<SurfaceStyle3d>
pub const fn surface_style(self) -> Option<SurfaceStyle3d>
Returns the optional surface material.
Sourcepub const fn wireframe_style(self) -> Option<WireframeStyle3d>
pub const fn wireframe_style(self) -> Option<WireframeStyle3d>
Returns the optional edge presentation.
Trait Implementations§
Source§impl Clone for MeshStyle3d
impl Clone for MeshStyle3d
impl Copy for MeshStyle3d
Source§impl Debug for MeshStyle3d
impl Debug for MeshStyle3d
Source§impl PartialEq for MeshStyle3d
impl PartialEq for MeshStyle3d
impl StructuralPartialEq for MeshStyle3d
Auto Trait Implementations§
impl Freeze for MeshStyle3d
impl RefUnwindSafe for MeshStyle3d
impl Send for MeshStyle3d
impl Sync for MeshStyle3d
impl Unpin for MeshStyle3d
impl UnsafeUnpin for MeshStyle3d
impl UnwindSafe for MeshStyle3d
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