pub struct TessellationBudget {
pub chord_tolerance: Scalar,
pub max_samples_per_direction: usize,
}Expand description
Sampling budget for one surface.
Explicit rather than defaulted: the acceptable triangle count depends on what the mesh is for. A clash test wants a coarse conservative hull; a quantity takeoff wants convergence. The kernel does not know which.
Fields§
§chord_tolerance: ScalarMaximum chord deviation from the true surface.
max_samples_per_direction: usizeHard cap on samples per parameter direction.
Implementations§
Source§impl TessellationBudget
impl TessellationBudget
Sourcepub fn new(
chord_tolerance: Scalar,
max_samples_per_direction: usize,
) -> GeomResult<Self>
pub fn new( chord_tolerance: Scalar, max_samples_per_direction: usize, ) -> GeomResult<Self>
Construct a validated budget.
Trait Implementations§
Source§impl Clone for TessellationBudget
impl Clone for TessellationBudget
Source§fn clone(&self) -> TessellationBudget
fn clone(&self) -> TessellationBudget
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 TessellationBudget
impl Debug for TessellationBudget
Source§impl PartialEq for TessellationBudget
impl PartialEq for TessellationBudget
impl Copy for TessellationBudget
impl StructuralPartialEq for TessellationBudget
Auto Trait Implementations§
impl Freeze for TessellationBudget
impl RefUnwindSafe for TessellationBudget
impl Send for TessellationBudget
impl Sync for TessellationBudget
impl Unpin for TessellationBudget
impl UnwindSafe for TessellationBudget
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