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

Data Types

type  t_edge
 

Functions/Subroutines

pure subroutine, public cg3_complete_polyhedron_structure (polyhedron, error_id)
 Complete the polyhedron structure.
 
pure subroutine sort_face_to_edge (polyhedron)
 Sort the face edges in the same order than face points.
 
pure recursive subroutine quicksort (tab, p, r)
 Quick sort algorithm for edges.
 
pure subroutine partition (tab, p, r, q)
 Partition function of the quick sort algorithm.
 
logical pure function inf (p1, p2)
 Comparison function used in the quick sort algorithm.
 

Function/Subroutine Documentation

◆ inf()

logical pure function mod_cg3_complete_polyhedron_structure::inf ( type(t_edge), intent(in) p1,
type(t_edge), intent(in) p2 )
private

Comparison function used in the quick sort algorithm.

◆ partition()

pure subroutine mod_cg3_complete_polyhedron_structure::partition ( type(t_edge), dimension(:), intent(inout) tab,
integer, intent(in) p,
integer, intent(in) r,
integer, intent(out) q )
private

Partition function of the quick sort algorithm.

◆ quicksort()

pure recursive subroutine mod_cg3_complete_polyhedron_structure::quicksort ( type(t_edge), dimension(:), intent(inout) tab,
integer, intent(in) p,
integer, intent(in) r )
private

Quick sort algorithm for edges.

◆ sort_face_to_edge()

pure subroutine mod_cg3_complete_polyhedron_structure::sort_face_to_edge ( type(t_polyhedron), intent(inout) polyhedron)
private

Sort the face edges in the same order than face points.

  !!  e1 e2 e3 e4
  !! +--+--+--+--+ -> p1
  !! p1 p2 p3 p4 p5
  !!