version 0.6.0

Data Types

type  mod_cg3_polyhedron::t_incidence_matrix
 Definition of an incidence matrix. More...
 
type  mod_cg3_polyhedron::t_polyhedron
 Definition of a 3-dimensional polyhedron. More...
 

Functions/Subroutines

subroutine mod_cg3_polyhedron::cg3_finalize_polyhedron (polyhedron)
 Finalize a polyhedron. More...
 
pure subroutine mod_cg3_polyhedron::cg3_polyhedron_move_alloc (polyhedron_source, polyhedron_target)
 Move allocation from source to target. More...
 
subroutine mod_cg3_polyhedron::cg3_polyhedron_write_vtk_file (polyhedron, filename)
 Write a polyhedron to a VTK file. More...
 
subroutine mod_cg3_polyhedron::cg3_polyhedron_write_obj_file (polyhedron, filename)
 Write a polyhedron to a OBJ Wavefront file. More...
 
pure subroutine mod_cg3_polyhedron::cg3_polyhedron_compute_volume (polyhedron, volume)
 Compute the volume of a polyhedron. More...
 
pure subroutine mod_cg3_polyhedron::cg3_polyhedron_compute_centroid (polyhedron, volume, centroid)
 Compute the volume and the centroid of a polyhedron. More...
 
pure subroutine mod_cg3_polyhedron::cg3_polyhedron_compute_normals (polyhedron, zero_area_face)
 Compute the faces normals of the polyhedron. More...
 
pure subroutine mod_cg3_polyhedron::cg3_polyhedron_compute_tangents (polyhedron, zero_length_edge)
 Compute the edges tangents of the polyhedron. More...
 

Detailed Description

Function/Subroutine Documentation

◆ cg3_finalize_polyhedron()

subroutine mod_cg3_polyhedron::cg3_finalize_polyhedron ( type(t_polyhedron), intent(inout)  polyhedron)
Parameters
[in,out]polyhedronany 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 
)
Parameters
[in]polyhedronany initialized polyhedron
[out]volumevolume of the polyhedron
[out]centroidcentroid 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 
)
Parameters
[in,out]polyhedronany polyhedron
[out]zero_area_facecontains 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 
)
Parameters
[in,out]polyhedronany polyhedron
[out]zero_length_edgecontains 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 
)
Parameters
[in]polyhedronany initialized polyhedron
[out]volumevolume 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 
)
Parameters
[in,out]polyhedron_sourcesource polyhedron
[in,out]polyhedron_targettarget 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 
)
Parameters
[in]polyhedronany initialized polyhedron
[in]filenameOBJ 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 
)
Parameters
[in]polyhedronany initialized polyhedron
[in]filenameVTK file name (with extension)