Struct ProjectionOptions
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§
§impl ProjectionOptions
impl ProjectionOptions
pub fn new(
tolerance: Tolerance,
samples_per_span: u16,
max_iterations: u16,
max_starts: u32,
) -> Result<ProjectionOptions, GeomError>
pub fn new( tolerance: Tolerance, samples_per_span: u16, max_iterations: u16, max_starts: u32, ) -> Result<ProjectionOptions, GeomError>
Construct a non-vacuous projection policy.
Returns an error when any budget is zero.
pub const fn samples_per_span(self) -> u16
pub const fn samples_per_span(self) -> u16
Uniform subdivisions used to seed each active knot span.
pub const fn max_iterations(self) -> u16
pub const fn max_iterations(self) -> u16
Maximum Newton updates for one start.
pub const fn max_starts(self) -> u32
pub const fn max_starts(self) -> u32
Aggregate start limit across all spans (or span pairs).
Trait Implementations§
§impl Clone for ProjectionOptions
impl Clone for ProjectionOptions
§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 more§impl Debug for ProjectionOptions
impl Debug for ProjectionOptions
§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
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