pub struct TessellationOptions {
pub tolerance: f64,
pub max_depth: u8,
pub max_work: usize,
}Expand description
Explicit geometric and resource budgets. See the module recipe.
Fields§
§tolerance: f64Positive finite error tolerance in world units, including output rounding.
max_depth: u8Number of bisections along any branch, in 0..=MAX_TESSELLATION_DEPTH.
Zero permits only testing the original curve’s chord.
max_work: usizeMaximum nodes examined (one error test and at most one split per node). Zero emits only the start if storage permits. Fixed validation and stack initialization are constant overhead outside this node counter.
Trait Implementations§
Source§impl Clone for TessellationOptions
impl Clone for TessellationOptions
Source§fn clone(&self) -> TessellationOptions
fn clone(&self) -> TessellationOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TessellationOptions
impl Debug for TessellationOptions
Source§impl PartialEq for TessellationOptions
impl PartialEq for TessellationOptions
impl Copy for TessellationOptions
impl StructuralPartialEq for TessellationOptions
Auto Trait Implementations§
impl Freeze for TessellationOptions
impl RefUnwindSafe for TessellationOptions
impl Send for TessellationOptions
impl Sync for TessellationOptions
impl Unpin for TessellationOptions
impl UnwindSafe for TessellationOptions
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