pub struct Tessellation {
pub deflection_linear: f64,
pub deflection_angular: f64,
pub relative_linear: bool,
}Expand description
Tessellation parameters for Solid::mesh and Edge::approximation_segments.
Use Tessellation::default() for a scale-independent default that suits
most shapes; override individual fields with struct update syntax, e.g.
Tessellation { deflection_linear: 0.1, relative_linear: false, ..Default::default() }.
Fields§
§deflection_linear: f64Linear (chord) deflection: max distance between the facet/segment and the
true surface/curve. When relative_linear is true this is a fraction of
the edge’s bounding-box size rather than an absolute distance.
deflection_angular: f64Angular deflection in radians: max angle between adjacent facet/segment directions. Controls smoothness of curves independently of scale.
relative_linear: boolInterpret deflection_linear as relative to the local feature size
(each edge’s bounding-box max dimension) instead of an absolute distance.
Trait Implementations§
Source§impl Clone for Tessellation
impl Clone for Tessellation
Source§fn clone(&self) -> Tessellation
fn clone(&self) -> Tessellation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more