Provides a container for a 2D Delaunay triangulation.
Creates an unconstrained 2D Delaunay triangulation given a set of x-y points.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(delaunay_tri_2d), | intent(inout) | :: | this |
The delaunay_tri_2d object. |
||
real(kind=real64), | intent(in), | dimension(:) | :: | x |
An N-element array containing the x-coordinates of each data point. |
|
real(kind=real64), | intent(in), | dimension(:) | :: | y |
An N-element array containing the y-coordinates of each data point. |
|
class(errors), | intent(inout), | optional, | target | :: | err |
An error handling object. |
Finds the triangle that contains the specified point.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(delaunay_tri_2d), | intent(in) | :: | this |
The delaunay_tri_2d object. |
||
real(kind=real64), | intent(in) | :: | x |
The x-coordinate of the point. |
||
real(kind=real64), | intent(in) | :: | y |
The y-coordinate of the point. |
Returns the index of the triangle containing the specified point. If no triangle contains the specified point, a value of -1 is returned.
Gets a list of the indices of each triangle vertex.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(delaunay_tri_2d), | intent(in) | :: | this |
The delaunay_tri_2d object. |
An N-by-3 matrix with each column containing the index of the vertex of each triangle where N is the number of triangles.
Gets the number of points in the triangulation.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(delaunay_tri_2d), | intent(in) | :: | this |
The delaunay_tri_2d object. |
The number of points in the triangulation.
Gets the x-coordinates of each point.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(delaunay_tri_2d), | intent(in) | :: | this |
The delaunay_tri_2d object. |
An array of the x-coordinates of each point.
Gets the y-coordinates of each point.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(delaunay_tri_2d), | intent(in) | :: | this |
The delaunay_tri_2d object. |
An array of the y-coordinates of each point.
Gets the number of triangles in the triangulation.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(delaunay_tri_2d), | intent(in) | :: | this |
The delaunay_tri_2d object. |
The number of triangles in the triangulation.