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. More... | |
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. More... | |
logical pure function | mod_cg3_point_polyhedron::cg3_does_sphere_intersect_face (polyhedron, face, center, radius) |
Check if a sphere intersects a face polyhedron. More... | |
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. More... | |
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 | ||
) |
[in] | polyhedron | any polyhedron |
[in] | face | index of any face of the polyhedron |
[in] | center | coordinates of the sphere center |
[in] | radius | radius of the center |
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 | ||
) |
[in] | polyhedron | any polyhedron |
[in] | face | index of any face of the polyhedron |
[in] | point | coordinates of any point that lies on the same plane as the 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 | ||
) |
[in] | polyhedron | any polyhedron |
[in] | face | index of any face of the polyhedron |
[in] | point | coordinates of a 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 | ||
) |
[in] | polyhedron | any polyhedron |
[in] | face | face index of the polyhedron |
[in] | point | any point coordinates |
[out] | closest_point | coordinates of the closest point on the given face |