|
| pure subroutine | cg2_initialize_polygon (polygon, n) |
| | Initialize the polygon structure.
|
| |
| elemental subroutine | cg2_finalize_polygon (polygon) |
| | Finalize the polygon structure.
|
| |
| double precision elemental function | cg2_polygon_volume (polygon) |
| | Compute the area of a polygon.
|
| |
| pure subroutine | cg2_polygon_centroid (polygon, centroid, volume) |
| | Compute the centroid of a polygon.
|
| |
| integer pure function | cg2_polygon_winding_number (polygon, point) |
| | Compute the winding number of a point in a polygon.
|
| |
| integer pure function | cg2_polygon_winding_number_with_boundary (polygon, point) |
| | Compute the winding number of a point in a polygon including its boundary.
|
| |
| pure subroutine | cg2_split_quad_in_triangles (quad, triangle1, triangle2) |
| | Split a quadrilateral in two triangles.
|
| |
| pure subroutine | cg2_copy_polygon (original, copy) |
| | Make a copy of a polygon.
|
| |
| elemental subroutine | cg2_move_alloc_polygon (polygon1, polygon2) |
| | Move the allocation of a given polygon to another polygon.
|
| |
| subroutine | cg2_polygon_write_vtk_file (polygon, filename) |
| | Print a polygon into a VTK file for debug purpose.
|
| |