Geometric tools relative to points and polyhedron
More...
|
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.
|
|
◆ 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] | 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 |
◆ 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] | 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 |
◆ 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] | polyhedron | any polyhedron |
[in] | face | index of any face of the polyhedron |
[in] | point | coordinates 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] | 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 |