pub struct TessellationOptions { /* private fields */ }Expand description
Approximation controls. No global/default chord error exists because source units and downstream use determine acceptable error.
Implementations§
Source§impl TessellationOptions
impl TessellationOptions
Sourcepub fn new(
chord_error: f64,
maximum_angle: f64,
tolerance: Tolerance,
) -> Result<TessellationOptions, InvalidTessellationOptions>
pub fn new( chord_error: f64, maximum_angle: f64, tolerance: Tolerance, ) -> Result<TessellationOptions, InvalidTessellationOptions>
Construct validated approximation controls.
Sourcepub fn with_maximum_edge_length(
self,
value: f64,
) -> Result<TessellationOptions, InvalidTessellationOptions>
pub fn with_maximum_edge_length( self, value: f64, ) -> Result<TessellationOptions, InvalidTessellationOptions>
Add a maximum edge length.
Sourcepub const fn chord_error(self) -> f64
pub const fn chord_error(self) -> f64
Maximum chord deviation.
Sourcepub const fn maximum_angle(self) -> f64
pub const fn maximum_angle(self) -> f64
Maximum change in tangent/normal in radians.
Sourcepub const fn maximum_edge_length(self) -> Option<f64>
pub const fn maximum_edge_length(self) -> Option<f64>
Optional maximum generated edge length.
Trait Implementations§
Source§impl Clone for TessellationOptions
impl Clone for TessellationOptions
Source§fn clone(&self) -> TessellationOptions
fn clone(&self) -> TessellationOptions
Returns a copy 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more