pub struct WireframeStyle3d { /* private fields */ }Expand description
Logical-screen presentation for explicit mathematical mesh edges.
Visible fragments are solid. Fragments occluded beyond the depth buffer’s conservative coplanar tolerance may be drawn with a logical-pixel dash/gap pattern. Classification uses one implementation depth unit away from the camera for hidden fragments and one unit toward it for visible fragments, with visible fragments rendered last. Therefore coplanar and sub-depth-resolution separations intentionally resolve as visible; this is raster visibility, not exact analytic solid geometry.
Implementations§
Source§impl WireframeStyle3d
impl WireframeStyle3d
Sourcepub const MAX_LOGICAL_PIXELS: f32 = MAX_LOGICAL_EDGE_METRIC
pub const MAX_LOGICAL_PIXELS: f32 = MAX_LOGICAL_EDGE_METRIC
Largest accepted width, dash, or gap in logical pixels.
The bound keeps every style-derived shader operation inside the cross-backend arithmetic envelope.
Sourcepub fn visible(
color: Color,
width: LogicalPixels,
) -> Result<Self, Mesh3dStyleError>
pub fn visible( color: Color, width: LogicalPixels, ) -> Result<Self, Mesh3dStyleError>
Creates solid visible edges with hidden fragments disabled.
Enables dashed depth-occluded fragments in logical screen pixels.
Occlusion must exceed the conservative two-unit coplanar tolerance
documented on WireframeStyle3d before a fragment resolves hidden.
Sourcepub const fn visible_color(self) -> Color
pub const fn visible_color(self) -> Color
Returns the solid visible-edge color in linear RGBA.
Sourcepub const fn visible_width(self) -> LogicalPixels
pub const fn visible_width(self) -> LogicalPixels
Returns visible-edge width in logical screen pixels.
Returns whether depth-occluded edge fragments should be drawn.
Returns hidden-edge color when enabled.
Returns hidden-edge width in logical screen pixels when enabled.
Returns hidden dash and gap lengths in logical screen pixels.
Trait Implementations§
Source§impl Clone for WireframeStyle3d
impl Clone for WireframeStyle3d
Source§fn clone(&self) -> WireframeStyle3d
fn clone(&self) -> WireframeStyle3d
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more