Computational geometry tool to fill a convex polyhedron with a given volume fraction in a given direction More...
Data Types | |
type | mod_cg3_flood_polyhedron::t_chained_polygon_item |
Single item of the structure that track the state of the current algorithm. This structure contains a polygon stored as a list of point and edges. It also embbed information about neighbor edge, neighbor face, and if the current point is a point of the polyhedron. More... | |
type | mod_cg3_flood_polyhedron::t_chained_polygon |
Structure to track the state of the current algorithm. It stores the status of the cap polygon. More... | |
Functions/Subroutines | |
pure subroutine, public | mod_cg3_flood_polyhedron::cg3_flood_polyhedron (polyhedron, normal, volume, polyhedron_full, polyhedron_empty, polygon) |
Flood algorithm based on Diot & Francois 2016 publication. | |
Computational geometry tool to fill a convex polyhedron with a given volume fraction in a given direction
pure subroutine, public mod_cg3_flood_polyhedron::cg3_flood_polyhedron | ( | type(t_polyhedron), intent(in) | polyhedron, |
double precision, dimension(3), intent(in) | normal, | ||
double precision, intent(in) | volume, | ||
type(t_polyhedron), intent(out) | polyhedron_full, | ||
type(t_polyhedron), intent(out), optional | polyhedron_empty, | ||
type(t_chained_polygon), intent(out), optional | polygon ) |
Flood algorithm based on Diot & Francois 2016 publication.
Reference:
[in] | polyhedron | any convex polyhedron. Must be fully initialized. |
[in] | normal | flood direction |
[in] | volume | prescribed volume to flood |
[out] | polyhedron_full | part of polyhedron flooded with prescribed volume |
[out] | polyhedron_empty | empty part of polyhedron |
[out] | polygon | cap polygon |