Provides a type describing a triangulated surface.
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. |
Defines the function values that correspond to the x and y data points.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(delaunay_tri_surface), | intent(inout) | :: | this |
The delaunay_tri_surface object. |
||
real(kind=real64), | intent(in), | dimension(:) | :: | z |
An N-element array containing the function values for each x and y coordinate. Notice, the x and y coordinates must already be defined prior to calling this routine. |
|
class(errors), | intent(inout), | optional, | target | :: | err |
An error handling object. |
Evaluates the function at the requested point by means of linear interpolation.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(delaunay_tri_surface), | intent(in) | :: | this |
The delaunay_tri_surface object. |
||
real(kind=real64), | intent(in) | :: | x |
The x-coordinate at which to evaluate the function. |
||
real(kind=real64), | intent(in) | :: | y |
The y-coordinate at which to evaluate the function. |
The function value. If the point (x, y) does not lie within the range of defined values, then a value of NaN is returned.
Evaluates the function at the requested point by means of linear interpolation.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(delaunay_tri_surface), | intent(in) | :: | this |
The delaunay_tri_surface object. |
||
real(kind=real64), | intent(in), | dimension(:) | :: | x |
The x data coordinates. |
|
real(kind=real64), | intent(in), | dimension(:) | :: | y |
The x data coordinates. |
The interpolated z coordinate points. If the point (x, y) does not lie within the range of defined values, then a value of NaN is returned.
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 z-coordinates of each point.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(delaunay_tri_surface), | intent(in) | :: | this |
The delaunay_tri_surface object. |
An array of the z-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.