pub struct MedialGraph {
pub vertices: Vec<MedialVertex>,
pub branches: Vec<MedialBranch>,
pub deviation: f64,
/* private fields */
}Expand description
The medial axis of a planar face as a graph of exact branches.
Fields§
§vertices: Vec<MedialVertex>Branch points and boundary ends.
branches: Vec<MedialBranch>The branches between them.
deviation: f64The largest amount, measured along the branches, by which a site other than a branch’s own two comes nearer than they do: zero for a branch that is all medial, and held under the tolerance asked for.
Implementations§
Source§impl MedialGraph
impl MedialGraph
Sourcepub fn clearance_at(
&self,
branch: usize,
t: f64,
tol: Tolerances,
) -> OgeomResult<f64>
pub fn clearance_at( &self, branch: usize, t: f64, tol: Tolerances, ) -> OgeomResult<f64>
The clearance at parameter t of branch branch: its distance from
either of its two sites.
§Errors
OgeomError::Construction if
the branch does not exist or the curve cannot be evaluated there.
Trait Implementations§
Source§impl Clone for MedialGraph
impl Clone for MedialGraph
Source§fn clone(&self) -> MedialGraph
fn clone(&self) -> MedialGraph
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MedialGraph
impl RefUnwindSafe for MedialGraph
impl Send for MedialGraph
impl Sync for MedialGraph
impl Unpin for MedialGraph
impl UnsafeUnpin for MedialGraph
impl UnwindSafe for MedialGraph
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<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.