pub struct GrowOptions {
pub cutoff: Cutoff,
pub normal_limit: f64,
pub peel: bool,
pub max_triangles: Option<usize>,
pub fixed: FitFixed,
pub side: Option<Side>,
pub crease_limit: f64,
}Expand description
How to grow a region.
Fields§
§cutoff: CutoffWhich points each fit keeps, and how far from the model a vertex may
lie and its triangle still join: for Cutoff::Sigma and
Cutoff::Median the gate grow describes, k σ over
many points; for Cutoff::Distance the distance, widened only by
the fit’s own uncertainty. Cutoff::All puts no limit on the
distance, and growth is held by the normals alone.
normal_limit: f64The largest angle, in radians, between a triangle’s normal and the model’s for it to join; above zero and at most π/2. A scan’s noise turns a triangle’s normal by about the noise over the triangle’s size, which the limit must clear.
peel: boolTake the region’s rim off, ring by ring, while it turns away from the model by clearly more than the noise; needs a cutoff with a threshold.
max_triangles: Option<usize>The most triangles growth reaches; a seed’s first rings are kept whole even past it.
fixed: FitFixedWhat every fit holds fixed.
side: Option<Side>Which side the material is on; where not given, the mesh’s normals decide.
crease_limit: f64The angle, in radians, the surface must turn through across an edge, between its two triangles’ normals, for a curve to be traced along it; above zero and below π. As with the normal limit, the noise turns an edge by about the noise over the triangles’ size, which the limit must clear.
Trait Implementations§
Source§impl Clone for GrowOptions
impl Clone for GrowOptions
impl Copy for GrowOptions
Source§impl Debug for GrowOptions
impl Debug for GrowOptions
Source§impl Default for GrowOptions
impl Default for GrowOptions
Source§impl PartialEq for GrowOptions
impl PartialEq for GrowOptions
impl StructuralPartialEq for GrowOptions
Auto Trait Implementations§
impl Freeze for GrowOptions
impl RefUnwindSafe for GrowOptions
impl Send for GrowOptions
impl Sync for GrowOptions
impl Unpin for GrowOptions
impl UnsafeUnpin for GrowOptions
impl UnwindSafe for GrowOptions
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.