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

Geometric tools relative to points and polyhedron More...

Functions/Subroutines

pure subroutine mod_cg3_point_polyhedron::cg3_point_face_closest_point (polyhedron, face, point, closest_point)
 Find the closest point on a polyhedron face to a given point.
 
integer pure function mod_cg3_point_polyhedron::cg3_face_winding_number (polyhedron, face, point)
 Compute the winding number of a point for a face of a polyhedron.
 
logical pure function mod_cg3_point_polyhedron::cg3_does_sphere_intersect_face (polyhedron, face, center, radius)
 Check if a sphere intersects a face polyhedron.
 
logical pure function mod_cg3_point_polyhedron::cg3_is_point_below_face (polyhedron, face, point)
 Check whether a point is below the plane generated by the given face.
 

Detailed Description

Function/Subroutine Documentation

◆ cg3_does_sphere_intersect_face()

logical pure function mod_cg3_point_polyhedron::cg3_does_sphere_intersect_face ( type(t_polyhedron), intent(in) polyhedron,
integer, intent(in) face,
double precision, dimension(3), intent(in) center,
double precision, intent(in) radius )
Parameters
[in]polyhedronany polyhedron
[in]faceindex of any face of the polyhedron
[in]centercoordinates of the sphere center
[in]radiusradius of the center

◆ cg3_face_winding_number()

integer pure function mod_cg3_point_polyhedron::cg3_face_winding_number ( type(t_polyhedron), intent(in) polyhedron,
integer, intent(in) face,
double precision, dimension(3), intent(in) point )
Parameters
[in]polyhedronany polyhedron
[in]faceindex of any face of the polyhedron
[in]pointcoordinates of any point that lies on the same plane as the face

◆ cg3_is_point_below_face()

logical pure function mod_cg3_point_polyhedron::cg3_is_point_below_face ( type(t_polyhedron), intent(in) polyhedron,
integer, intent(in) face,
double precision, dimension(3), intent(in) point )
Parameters
[in]polyhedronany polyhedron
[in]faceindex of any face of the polyhedron
[in]pointcoordinates of a point

◆ cg3_point_face_closest_point()

pure subroutine mod_cg3_point_polyhedron::cg3_point_face_closest_point ( type(t_polyhedron), intent(in) polyhedron,
integer, intent(in) face,
double precision, dimension(3), intent(in) point,
double precision, dimension(3), intent(out) closest_point )
Parameters
[in]polyhedronany polyhedron
[in]faceface index of the polyhedron
[in]pointany point coordinates
[out]closest_pointcoordinates of the closest point on the given face