Function handling 3d min distance calculations and dwithin calculations. 
The difference is just the tolerance. 
Definition at line 476 of file measures3d.c.
  478         assert(tolerance >= 0);
 
  482                     "One or both of the geometries is missing z-value. The unknown z-value will be regarded as \"any value\"");
 
  502         lwerror(
"Some unspecified error.");
 
int lwgeom_has_z(const LWGEOM *geom)
Return LW_TRUE if geometry has Z ordinates.
double lwgeom_mindistance2d_tolerance(const LWGEOM *lw1, const LWGEOM *lw2, double tolerance)
Function handling min distance calculations and dwithin calculations.
void lwnotice(const char *fmt,...) __attribute__((format(printf
Write a notice out to the notice handler.
void void lwerror(const char *fmt,...) __attribute__((format(printf
Write a notice out to the error handler.
static int lwgeom_solid_contains_lwgeom(const LWGEOM *solid, const LWGEOM *g)
int lw_dist3d_recursive(const LWGEOM *lwg1, const LWGEOM *lwg2, DISTPTS3D *dl)
This is a recursive function delivering every possible combination of subgeometries.
Structure used in distance-calculations.
 
References DIST_MIN, DISTPTS3D::distance, lw_dist3d_recursive(), lwerror(), lwgeom_has_z(), lwgeom_mindistance2d_tolerance(), lwgeom_solid_contains_lwgeom(), lwnotice(), DISTPTS3D::mode, and DISTPTS3D::tolerance.
Referenced by LWGEOM_dwithin3d(), lwgeom_mindistance3d(), and ST_3DIntersects().