This function distributes the brute-force for 3D so far the only type, tasks depending on type.
565{
568
569 LWDEBUGF(2,
"lw_dist3d_distribute_bruteforce is called with typ1=%d, type2=%d", lwg1->
type, lwg2->
type);
570
572 {
574 {
577 }
579 {
582 }
584 {
587 }
589 {
592 }
593 else
594 {
597 }
598 }
600 {
602 {
605 }
607 {
610 }
612 {
615 }
617 {
620 }
621 else
622 {
625 }
626 }
628 {
630 {
633 }
635 {
638 }
640 {
643 }
645 {
648 }
649 else
650 {
653 }
654 }
656 {
658 {
661 }
663 {
666 }
668 {
671 }
673 {
676 }
677 else
678 {
681 }
682 }
683
684 else
685 {
688 }
689}
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
#define LWDEBUGF(level, msg,...)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
int lw_dist3d_line_tri(LWLINE *line, LWTRIANGLE *tri, DISTPTS3D *dl)
line to triangle calculation
int lw_dist3d_tri_tri(LWTRIANGLE *tri1, LWTRIANGLE *tri2, DISTPTS3D *dl)
triangle to triangle calculation
int lw_dist3d_point_point(LWPOINT *point1, LWPOINT *point2, DISTPTS3D *dl)
point to point calculation
int lw_dist3d_point_tri(LWPOINT *point, LWTRIANGLE *tri, DISTPTS3D *dl)
int lw_dist3d_poly_tri(LWPOLY *poly, LWTRIANGLE *tri, DISTPTS3D *dl)
polygon to triangle calculation
int lw_dist3d_poly_poly(LWPOLY *poly1, LWPOLY *poly2, DISTPTS3D *dl)
polygon to polygon calculation
int lw_dist3d_line_line(LWLINE *line1, LWLINE *line2, DISTPTS3D *dl)
line to line calculation
int lw_dist3d_point_poly(LWPOINT *point, LWPOLY *poly, DISTPTS3D *dl)
Computes point to polygon distance For mindistance that means: 1) find the plane of the polygon 2) pr...
int lw_dist3d_point_line(LWPOINT *point, LWLINE *line, DISTPTS3D *dl)
point to line calculation
int lw_dist3d_line_poly(LWLINE *line, LWPOLY *poly, DISTPTS3D *dl)
line to polygon calculation