Geometric tools relative to polyhedron
More...
Geometric tools relative to polyhedron
◆ cg3_finalize_polyhedron()
subroutine mod_cg3_polyhedron::cg3_finalize_polyhedron |
( |
type(t_polyhedron), intent(inout) | polyhedron | ) |
|
Finalize a polyhedron.
- Parameters
-
[in,out] | polyhedron | any polyhedron |
◆ cg3_polyhedron_compute_centroid()
pure subroutine mod_cg3_polyhedron::cg3_polyhedron_compute_centroid |
( |
type(t_polyhedron), intent(in) | polyhedron, |
|
|
double precision, intent(out) | volume, |
|
|
double precision, dimension(3), intent(out) | centroid ) |
Compute the volume and the centroid of a polyhedron.
- Parameters
-
[in] | polyhedron | any initialized polyhedron |
[out] | volume | volume of the polyhedron |
[out] | centroid | centroid of the polyhedron |
◆ cg3_polyhedron_compute_normals()
pure subroutine mod_cg3_polyhedron::cg3_polyhedron_compute_normals |
( |
type(t_polyhedron), intent(inout) | polyhedron, |
|
|
integer, intent(out) | zero_area_face ) |
Compute the faces normals of the polyhedron.
- Parameters
-
[in,out] | polyhedron | any polyhedron |
[out] | zero_area_face | contains the face id with zero area. 0 otherwise. |
◆ cg3_polyhedron_compute_tangents()
pure subroutine mod_cg3_polyhedron::cg3_polyhedron_compute_tangents |
( |
type(t_polyhedron), intent(inout) | polyhedron, |
|
|
integer, intent(out) | zero_length_edge ) |
Compute the edges tangents of the polyhedron.
- Parameters
-
[in,out] | polyhedron | any polyhedron |
[out] | zero_length_edge | contains the edge id with zero length. 0 otherwise. |
◆ cg3_polyhedron_compute_volume()
pure subroutine mod_cg3_polyhedron::cg3_polyhedron_compute_volume |
( |
type(t_polyhedron), intent(in) | polyhedron, |
|
|
double precision, intent(out) | volume ) |
Compute the volume of a polyhedron.
- Parameters
-
[in] | polyhedron | any initialized polyhedron |
[out] | volume | volume of the polyhedron |
◆ cg3_polyhedron_move_alloc()
pure subroutine mod_cg3_polyhedron::cg3_polyhedron_move_alloc |
( |
type(t_polyhedron), intent(inout) | polyhedron_source, |
|
|
type(t_polyhedron), intent(inout) | polyhedron_target ) |
Move allocation from source to target.
- Parameters
-
[in,out] | polyhedron_source | source polyhedron |
[in,out] | polyhedron_target | target polyhedron |
◆ cg3_polyhedron_write_obj_file()
subroutine mod_cg3_polyhedron::cg3_polyhedron_write_obj_file |
( |
type(t_polyhedron), intent(in) | polyhedron, |
|
|
character(len=*), intent(in) | filename ) |
Write a polyhedron to a OBJ Wavefront file.
- Parameters
-
[in] | polyhedron | any initialized polyhedron |
[in] | filename | OBJ file name (with extension) |
◆ cg3_polyhedron_write_vtk_file()
subroutine mod_cg3_polyhedron::cg3_polyhedron_write_vtk_file |
( |
type(t_polyhedron), intent(in) | polyhedron, |
|
|
character(len=*), intent(in) | filename ) |
Write a polyhedron to a VTK file.
- Parameters
-
[in] | polyhedron | any initialized polyhedron |
[in] | filename | VTK file name (with extension) |