This module contains the definition of a polygon list and some related subroutines
More...
- 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.
◆ 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] | list | List of polygons |
◆ cg2_polygon_list_add_item()
- Parameters
-
[in,out] | list | List of polygons |
[in,out] | item | New 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] | list | List of polygons |
[out] | array | Array of polygons |