polygon to triangle calculation
Definition at line 911 of file measures3d.c.
912{
914 int planedef1, planedef2;
915
918
921
922 if (!planedef1 || !planedef2)
923 {
924
925 if (!planedef1 && !planedef2)
927
928
929 else if (!planedef1)
931
932
933 else
935 }
936
937
938
944
946
948}
#define LW_TRUE
Return types for functions with status returns.
int lw_dist3d_ptarray_ptarray(const POINTARRAY *l1, const POINTARRAY *l2, DISTPTS3D *dl)
Finds all combinations of segments between two pointarrays.
int define_plane(const POINTARRAY *pa, PLANE3D *pl)
int lw_dist3d_ptarray_poly(const POINTARRAY *pa, const LWPOLY *poly, PLANE3D *plane, DISTPTS3D *dl)
Computes pointarray to polygon distance.
int lw_dist3d_ptarray_tri(const POINTARRAY *pa, const LWTRIANGLE *tri, PLANE3D *plane, DISTPTS3D *dl)
Computes pointarray to triangle distance.
References define_plane(), DIST_MAX, DISTPTS3D::distance, lw_dist3d_ptarray_poly(), lw_dist3d_ptarray_ptarray(), lw_dist3d_ptarray_tri(), LW_FALSE, LW_TRUE, DISTPTS3D::mode, LWTRIANGLE::points, LWPOLY::rings, DISTPTS3D::tolerance, and DISTPTS3D::twisted.
Referenced by lw_dist3d_distribute_bruteforce().