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> of all the vertices (including the infinite one)

Returns a <Vec of all the finite edges (implicitly grouped by 2)

Returns a <Vec of all the finite triangles

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 an OBJ file to disk

write a GeoJSON file of the triangles/vertices to disk

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)

Interpolation with Laplace (http://dilbert.engr.ucdavis.edu/~suku/nem/index.html) (variation of nni with distances instead of stolen areas; faster in practice) None if outside the convex hull, other the value

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.