0.6.0
Loading...
Searching...
No Matches
mod_cg3_polyhedron Module Reference

Data Types

type  t_incidence_matrix
 Definition of an incidence matrix. More...
 
type  t_polyhedron
 Definition of a 3-dimensional polyhedron. More...
 
interface  unalloc
 

Functions/Subroutines

subroutine cg3_finalize_polyhedron (polyhedron)
 Finalize a polyhedron.
 
pure subroutine cg3_polyhedron_move_alloc (polyhedron_source, polyhedron_target)
 Move allocation from source to target.
 
subroutine cg3_polyhedron_write_vtk_file (polyhedron, filename)
 Write a polyhedron to a VTK file.
 
subroutine cg3_polyhedron_write_obj_file (polyhedron, filename)
 Write a polyhedron to a OBJ Wavefront file.
 
pure subroutine cg3_polyhedron_compute_volume (polyhedron, volume)
 Compute the volume of a polyhedron.
 
pure subroutine cg3_polyhedron_compute_centroid (polyhedron, volume, centroid)
 Compute the volume and the centroid of a polyhedron.
 
pure subroutine cg3_polyhedron_compute_normals (polyhedron, zero_area_face)
 Compute the faces normals of the polyhedron.
 
pure subroutine cg3_polyhedron_compute_tangents (polyhedron, zero_length_edge)
 Compute the edges tangents of the polyhedron.
 
pure subroutine cg3_create_tetrahedron (p1, p2, p3, p4, tetra)
 
subroutine cg3_create_cuboid (c, cuboid)
 

Function/Subroutine Documentation

◆ cg3_create_cuboid()

subroutine mod_cg3_polyhedron::cg3_create_cuboid ( double precision, dimension(3), intent(in) c,
type(t_polyhedron), intent(out) cuboid )

◆ cg3_create_tetrahedron()

pure subroutine mod_cg3_polyhedron::cg3_create_tetrahedron ( double precision, dimension(3), intent(in) p1,
double precision, dimension(3), intent(in) p2,
double precision, dimension(3), intent(in) p3,
double precision, dimension(3), intent(in) p4,
type(t_polyhedron), intent(out) tetra )