0.6.0
Loading...
Searching...
No Matches
polygon.f90 File Reference

Data Types

type  mod_cg2_polygon::t_polygon
 Definition of a bi-dimensional polygon. More...
 
interface  mod_cg2_polygon::initialize
 
interface  mod_cg2_polygon::unalloc
 

Modules

module  mod_cg2_polygon
 

Functions/Subroutines

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