fplot 1.7.1
A Fortran library providing a convenient interface for plotting with Gnuplot.
Loading...
Searching...
No Matches
fplot_core::delaunay_tri_surface Type Reference

Provides a type describing a triangulated surface. More...

Inheritance diagram for fplot_core::delaunay_tri_surface:
fplot_core::delaunay_tri_2d

Public Member Functions

procedure, public define_function_values dts_define_fcn
 Defines the function values that correspond to the x and y data points.
 
procedure, public get_points_z dts_get_z
 Gets the z-coordinates of each point.
 
generic, public evaluate dts_interp_1
 Evaluates the function at the requested point by means of linear interpolation.
 
generic, public evaluate dts_interp_2
 Evaluates the function at the requested point by means of linear interpolation.
 
procedure dts_interp_1 dts_interp_1
 
procedure dts_interp_2 dts_interp_2
 
- Public Member Functions inherited from fplot_core::delaunay_tri_2d
procedure, public create d2d_init
 Creates an unconstrained 2D Delaunay triangulation given a set of x-y points.
 
procedure, public get_point_count d2d_get_pt_count
 Gets the number of points in the triangulation.
 
procedure, public get_triangle_count d2d_get_tri_count
 Gets the number of triangles in the triangulation.
 
procedure, public get_points_x d2d_get_x_pts
 Gets the x-coordinates of each point.
 
procedure, public get_points_y d2d_get_y_pts
 Gets the y-coordinates of each point.
 
procedure, public get_indices d2d_get_tris
 Gets a list of the indices of each triangle vertex.
 
procedure, public find_triangle d2d_get_tri_with_pt
 Finds the triangle that contains the specified point.
 

Private Attributes

real(real64), dimension(:), allocatable m_z
 An array of the z-coordinates of each point.
 

Additional Inherited Members

- Public Attributes inherited from fplot_core::delaunay_tri_2d
real(real64), dimension(:), allocatable m_y
 An array of the y-coordinates of each point.
 
integer(int32), dimension(:,:), allocatable m_indices
 A 3-column matrix containing the indices of each triangle's vertex.
 

Detailed Description

Provides a type describing a triangulated surface.

Definition at line 7032 of file fplot_core.f90.

Member Function/Subroutine Documentation

◆ define_function_values()

procedure, public fplot_core::delaunay_tri_surface::define_function_values

Defines the function values that correspond to the x and y data points.

Syntax
subroutine define_function_values(class(delaunay_tri_surface) this, real(real64) z(:), class(errors) err)
Parameters
[in,out]thisThe delaunay_tri_surface object.
[in]zAn 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.
[in,out]errAn optional errors-based object that if provided can be used to retrieve information relating to any errors encountered during execution. If not provided, a default implementation of the errors class is used internally to provide error handling. Possible errors and warning messages that may be encountered are as follows.
  • PLOT_ARRAY_SIZE_MISMATCH_ERROR: Occurs if z is not the same size as the number of x-y data points.
  • PLOT_OUT_OF_MEMORY_ERROR: Occurs if there is insufficient memory available.
  • PLOT_INVALID_OPERATION_ERROR: Occurs if the x-y point data has not been defined.

Definition at line 7061 of file fplot_core.f90.

◆ dts_interp_1()

procedure fplot_core::delaunay_tri_surface::dts_interp_1

Definition at line 7088 of file fplot_core.f90.

◆ dts_interp_2()

procedure fplot_core::delaunay_tri_surface::dts_interp_2

Definition at line 7089 of file fplot_core.f90.

◆ evaluate() [1/2]

generic, public fplot_core::delaunay_tri_surface::evaluate

Evaluates the function at the requested point by means of linear interpolation.

Syntax
real(real64) function evaluate(class(delaunay_tri_surface) this, real(real64) x, real(real64) y)
Parameters
[in]thisThe delaunay_tri_surface object.
[in]xThe x-coordinate at which to evaluate the function.
[in]yThe y-coordinate at which to evaluate the function.
Returns
The function value. If the point (x, y) does not lie within the range of defined values, then a value of NaN is returned.

Definition at line 7086 of file fplot_core.f90.

◆ evaluate() [2/2]

generic, public fplot_core::delaunay_tri_surface::evaluate

Evaluates the function at the requested point by means of linear interpolation.

Syntax
real(real64) function evaluate(class(delaunay_tri_surface) this, real(real64) x, real(real64) y)
Parameters
[in]thisThe delaunay_tri_surface object.
[in]xThe x-coordinate at which to evaluate the function.
[in]yThe y-coordinate at which to evaluate the function.
Returns
The function value. If the point (x, y) does not lie within the range of defined values, then a value of NaN is returned.

Definition at line 7086 of file fplot_core.f90.

◆ get_points_z()

procedure, public fplot_core::delaunay_tri_surface::get_points_z

Gets the z-coordinates of each point.

Syntax
real(real64)(:) function get_points_x(class(delaunay_tri_surface) this)
Parameters
[in]thisThe delaunay_tri_2d object.
Returns
An array of the z-coordinates of each point.

Definition at line 7071 of file fplot_core.f90.

Member Data Documentation

◆ m_z

real(real64), dimension(:), allocatable fplot_core::delaunay_tri_surface::m_z
private

An array of the z-coordinates of each point.

Definition at line 7035 of file fplot_core.f90.


The documentation for this type was generated from the following file: