pub struct Marching {
pub chord: f64,
pub grid: usize,
pub max_points: usize,
}Expand description
How hard to look, and how closely to follow.
Fields§
§chord: f64How far the polyline may sit from the true curve, in space.
grid: usizeHow finely each surface is sampled when looking for branches.
The limitation with a knob on it: a branch narrower than one cell can be stepped over entirely. Raising this costs time quadratically and is the only thing that makes a thin branch findable.
max_points: usizeA ceiling on the points in one branch, so a curve that will not close cannot run forever.
Implementations§
Source§impl Marching
impl Marching
Sourcepub fn validate(&self) -> OgeomResult<()>
pub fn validate(&self) -> OgeomResult<()>
Check the settings are usable.
§Errors
OgeomError::Construction if the chord is
not positive, the grid is too coarse to hold a triangle, or no points are
allowed.
Trait Implementations§
impl Copy for Marching
impl StructuralPartialEq for Marching
Auto Trait Implementations§
impl Freeze for Marching
impl RefUnwindSafe for Marching
impl Send for Marching
impl Sync for Marching
impl Unpin for Marching
impl UnsafeUnpin for Marching
impl UnwindSafe for Marching
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.