pub struct ReebGraph {
pub nodes: Vec<ReebNode>,
pub arcs: Vec<ReebArc>,
}Expand description
Reeb graph of a scalar function on a mesh.
The Reeb graph tracks the evolution of connected components of level sets f^{-1}(c) as c varies.
Fields§
§nodes: Vec<ReebNode>Nodes of the Reeb graph (critical points)
arcs: Vec<ReebArc>Arcs connecting nodes
Implementations§
Source§impl ReebGraph
impl ReebGraph
Sourcepub fn compute(values: &[f64], edges: &[[usize; 2]]) -> Self
pub fn compute(values: &[f64], edges: &[[usize; 2]]) -> Self
Computes the Reeb graph of a scalar function on a set of vertices.
§Arguments
values- Scalar function values at each vertexedges- Edge connectivity of the mesh
Sourcepub fn n_critical_points(&self) -> usize
pub fn n_critical_points(&self) -> usize
Returns the number of critical points.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReebGraph
impl RefUnwindSafe for ReebGraph
impl Send for ReebGraph
impl Sync for ReebGraph
impl Unpin for ReebGraph
impl UnsafeUnpin for ReebGraph
impl UnwindSafe for ReebGraph
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,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§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 moreSource§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).Source§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.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.