version 0.6.0

Data Types

type  mod_cg2_polygon_list::t_polygon_list_item
 Item of a polygon list. More...
 
type  mod_cg2_polygon_list::t_polygon_list
 List of polygon. More...
 

Functions/Subroutines

elemental subroutine mod_cg2_polygon_list::cg2_finalize_polygon_list (list)
 Finalize a polygon list. More...
 
subroutine mod_cg2_polygon_list::cg2_polygon_list_add_item (list, item)
 Add an item to the polygon list. More...
 
subroutine mod_cg2_polygon_list::cg2_polygon_list_to_array (list, array)
 Convert a list of polygon into an array of polygon. More...
 

Detailed Description

Attention
Modify these functions at your own risk. Many algorithms depend on the specific behaviour of these functions. They are designed to not generate false negative results. Note that false positive results may occur due to the finite representation of real numbers. Take that into consideration when writing new algorithms.

Function/Subroutine Documentation

◆ cg2_finalize_polygon_list()

elemental subroutine mod_cg2_polygon_list::cg2_finalize_polygon_list ( type(t_polygon_list), intent(inout)  list)

Reset the structure

Parameters
[in,out]listList of polygons

◆ cg2_polygon_list_add_item()

subroutine mod_cg2_polygon_list::cg2_polygon_list_add_item ( type(t_polygon_list), intent(inout)  list,
type(t_polygon_list_item), pointer  item 
)
Parameters
[in,out]listList of polygons
[in,out]itemNew item of the list of polygons

◆ cg2_polygon_list_to_array()

subroutine mod_cg2_polygon_list::cg2_polygon_list_to_array ( type(t_polygon_list), intent(inout)  list,
type(t_polygon), dimension(:), intent(out), allocatable  array 
)

The list is deallocated while it is converted into an array.

Parameters
[in,out]listList of polygons
[out]arrayArray of polygons