version 0.6.0
Loading...
Searching...
No Matches

Complete the polyhedron structure More...

Functions/Subroutines

pure subroutine, public mod_cg3_complete_polyhedron_structure::cg3_complete_polyhedron_structure (polyhedron, error_id)
 Complete the polyhedron structure.
 

Detailed Description

Function/Subroutine Documentation

◆ cg3_complete_polyhedron_structure()

pure subroutine, public mod_cg3_complete_polyhedron_structure::cg3_complete_polyhedron_structure ( type(t_polyhedron), intent(inout) polyhedron,
integer, intent(out) error_id )

Generate the polyhedron connectivies from face and vertices connectivities.

  • Check if the polyhedron is a 2-manifold with no boundary (error_id = 1)
  • Check if every faces has non-zero area (error_id = 2)
  • Check if every edges has non-zero length (error_id = 3)
Parameters
[in,out]polyhedronany polyhedron with incomplete structure
[out]error_id> 0 if an error occurs. 0 otherwise.