PostGIS
2.4.9dev-r@@SVN_REVISION@@
|
int lw_dist3d_pt_poly | ( | POINT3DZ * | p, |
LWPOLY * | poly, | ||
PLANE3D * | plane, | ||
POINT3DZ * | projp, | ||
DISTPTS3D * | dl | ||
) |
Checking if the point projected on the plane of the polygon actually is inside that polygon.
If so the mindistance is between that projected point and our original point. If not we check from original point to the bounadary. If the projected point is inside a hole of the polygon we check the distance to the boudary of that hole.
Definition at line 1043 of file measures3d.c.
References lw_dist3d_pt_pt(), lw_dist3d_pt_ptarray(), LW_TRUE, LWDEBUG, LWPOLY::nrings, pt_in_ring_3d(), and LWPOLY::rings.
Referenced by lw_dist3d_point_poly(), and lw_dist3d_ptarray_poly().