pub struct NetworkOptions {
pub tolerance: f64,
pub smoothing: f64,
pub creases: Vec<usize>,
pub spans: usize,
pub most: usize,
pub held: Vec<usize>,
pub across: Vec<(usize, Across)>,
}Expand description
How fit_network fits.
Fields§
§tolerance: f64The distance every point is to come within; also how far the
curves meeting at a corner may stand apart there, and the chord a
CurveDef::Curve is read to.
smoothing: f64The thin-plate fairing weight of each patch, over the unit square
its parameters run over, against the mean squared distance of its
points, as
ScatteredOptions::fairing
weighs a single patch. It settles the poles no point reaches: a
patch with no points needs it above nought.
creases: Vec<usize>The curves left creased: their patches share the curve but not a tangent plane across it.
spans: usizeThe knot spans every strip starts with.
most: usizeThe most knot spans a strip may reach.
held: Vec<usize>The curves held to the caller’s own: each one’s poles are the
least-squares projection of the caller’s curve on the curve’s knots
at that round, its ends at the corners, and the fit moves them no
further. A CurveDef::Curve is read at its own parameter scaled
over the unit interval, so a curve the knots can carry (a cubic, a
spline on fewer knots) is the held curve exactly; a polyline is read
at its chord parameters.
across: Vec<(usize, Across)>Held curves on the network’s border whose patch leaves them as a
support asks: the poles one row in from each such curve are moved,
at every round, to the nearest point that steps off each pole of the
curve as Across says, and held there. The patch then meets the
support tangent along the curve exactly, up to the held curve’s own
projection.
Trait Implementations§
Source§impl Clone for NetworkOptions
impl Clone for NetworkOptions
Source§impl Debug for NetworkOptions
impl Debug for NetworkOptions
Source§impl PartialEq for NetworkOptions
impl PartialEq for NetworkOptions
impl StructuralPartialEq for NetworkOptions
Auto Trait Implementations§
impl Freeze for NetworkOptions
impl RefUnwindSafe for NetworkOptions
impl Send for NetworkOptions
impl Sync for NetworkOptions
impl Unpin for NetworkOptions
impl UnsafeUnpin for NetworkOptions
impl UnwindSafe for NetworkOptions
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
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>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.