Struct startin::Triangulation [−][src]
#[repr(C)]pub struct Triangulation { /* fields omitted */ }
Implementations
Set a snap tolerance when inserting new points: if the newly inserted one is closer than snap_tolerance to another one, then it is not inserted. Avoids having very close vertices (like at 0.00007mm) Default is 0.001unit (thus 1mm for most datasets).
Activate/deactive the jump-and-walk strategy for locate(). If deactivated, then the walk starts from the last inserted triangle.
Returns the coordinates of the vertex v in a Vec [x,y,z]
Returns a Vec of Triangles (finite + infinite) to the vertex v.
If v doesn’t exist, then None
is returned.
Returns the degree of a vertex, None
is it doesn’t exist.
Returns a list (Vec<usize>
) (ordered CCW) of the adjacent vertices.
None
if the vertex is not part of the triangulation.
Returns whether a triplet of indices is a Triangle in the triangulation.
Returns number of finite vertices in the triangulation.
Returns number of finite triangles in the triangulation.
Returns the number of vertices which are marked as “removed”
Returns the convex hull of the dataset, oriented CCW. It is a list of vertex indices (first != last)
Returns the size (ie the number of vertices) of the convex hull of the dataset
Returns true if the vertex v is part of the boundary of the convex hull of the dataset. False otherwise.
Returns, if it exists, the Triangle containing (px,py). If it is direction on a vertex/edge, then one is randomly chosen.
Returns a Vec<Vec
Returns a <Vec
Returns a <Vec
Validates the Delaunay triangulation: (1) checks each triangle against each vertex (circumcircle tests); very slow (2) checks whether the convex hull is really convex
write a GeoJSON file of the triangles/vertices to disk
pub fn voronoi_cell_area_ch_add_bound(
&self,
v: usize,
newc1: &mut [f64],
newc2: &mut [f64]
) -> Option<f64>
pub fn voronoi_cell_area_ch_use_bound(
&self,
v: usize,
newc1: &[f64],
newc2: &[f64]
) -> Option<f64>
Interpolation: nearest/closest neighbour None if outside the convex hull, other the value
Interpolation: linear in TIN None if outside the convex hull, other the value
Interpolation with natural neighbour interpolation (nni)