pub struct ProjectionOptions { /* private fields */ }Expand description
Explicit work and convergence policy for bounded projection.
The search samples every active knot span, then runs Newton refinement from
each start until one of these budgets is reached. There is deliberately no
context-free Default.
Implementations§
Source§impl ProjectionOptions
impl ProjectionOptions
Sourcepub fn new(
tolerance: Tolerance,
samples_per_span: u16,
max_iterations: u16,
max_starts: u32,
) -> GeomResult<Self>
pub fn new( tolerance: Tolerance, samples_per_span: u16, max_iterations: u16, max_starts: u32, ) -> GeomResult<Self>
Construct a non-vacuous projection policy.
Returns an error when any budget is zero.
Sourcepub const fn samples_per_span(self) -> u16
pub const fn samples_per_span(self) -> u16
Uniform subdivisions used to seed each active knot span.
Sourcepub const fn max_iterations(self) -> u16
pub const fn max_iterations(self) -> u16
Maximum Newton updates for one start.
Sourcepub const fn max_starts(self) -> u32
pub const fn max_starts(self) -> u32
Aggregate start limit across all spans (or span pairs).
Trait Implementations§
Source§impl Clone for ProjectionOptions
impl Clone for ProjectionOptions
Source§fn clone(&self) -> ProjectionOptions
fn clone(&self) -> ProjectionOptions
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 ProjectionOptions
impl Debug for ProjectionOptions
Source§impl PartialEq for ProjectionOptions
impl PartialEq for ProjectionOptions
impl Copy for ProjectionOptions
impl StructuralPartialEq for ProjectionOptions
Auto Trait Implementations§
impl Freeze for ProjectionOptions
impl RefUnwindSafe for ProjectionOptions
impl Send for ProjectionOptions
impl Sync for ProjectionOptions
impl Unpin for ProjectionOptions
impl UnwindSafe for ProjectionOptions
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