pub struct ScatteredOptions {
pub degree: usize,
pub spans: (usize, usize),
pub most: (usize, usize),
pub fairing: f64,
pub target: Target,
}Expand description
What fit_surface_scattered_over fits with.
Fields§
§degree: usizeThe degree in both directions.
spans: (usize, usize)The knot spans to start from, u then v, evenly spaced.
most: (usize, usize)The most knot spans refinement may reach, u then v.
fairing: f64The thin-plate fairing weight, as in
fit_surface_scattered_at, over
the unit square the fit’s parameters run over.
The energy pulls the fit towards a plane in those parameters, so it
bends a curved shape as well as settling the controls no point
reaches. A shape of extent L turning through θ radians has
second derivatives of order L θ over the square; a weight well
under (tolerance / (L θ))² leaves it alone.
target: TargetWhether, and to what, the net is refined.
Trait Implementations§
Source§impl Clone for ScatteredOptions
impl Clone for ScatteredOptions
impl Copy for ScatteredOptions
Source§impl Debug for ScatteredOptions
impl Debug for ScatteredOptions
Source§impl PartialEq for ScatteredOptions
impl PartialEq for ScatteredOptions
impl StructuralPartialEq for ScatteredOptions
Auto Trait Implementations§
impl Freeze for ScatteredOptions
impl RefUnwindSafe for ScatteredOptions
impl Send for ScatteredOptions
impl Sync for ScatteredOptions
impl Unpin for ScatteredOptions
impl UnsafeUnpin for ScatteredOptions
impl UnwindSafe for ScatteredOptions
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,
impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.