Definition at line 1448 of file measures3d.c.
1450 const uint32_t POL_BREAKS = 3;
1457 uint32_t unique_points = pa->
npoints - 1;
1467 for (i = 0; i < unique_points; i++)
1476 pl->
pop.
x /= unique_points;
1477 pl->
pop.
y /= unique_points;
1478 pl->
pop.
z /= unique_points;
1483 for (i = 0; i < POL_BREAKS; i++)
1488 n1 = i * unique_points / POL_BREAKS;
1489 n2 = n1 + unique_points / POL_BREAKS;
1506 double vl = vp.
x * vp.
x + vp.
y * vp.
y + vp.
z * vp.
z;
1507 pl->
pv.
x += vp.
x / vl;
1508 pl->
pv.
y += vp.
y / vl;
1509 pl->
pv.
z += vp.
z / vl;
int getPoint3dz_p(const POINTARRAY *pa, uint32_t n, POINT3DZ *point)
static int get_3dvector_from_points(POINT3DZ *p1, POINT3DZ *p2, VECTOR3D *v)
static int get_3dcross_product(VECTOR3D *v1, VECTOR3D *v2, VECTOR3D *v)
References FP_IS_ZERO, get_3dcross_product(), get_3dvector_from_points(), getPoint3dz_p(), LW_FALSE, POINTARRAY::npoints, PLANE3D::pop, PLANE3D::pv, POINT3DZ::x, VECTOR3D::x, POINT3DZ::y, VECTOR3D::y, POINT3DZ::z, and VECTOR3D::z.
Referenced by lw_dist3d_line_poly(), lw_dist3d_line_tri(), lw_dist3d_point_poly(), lw_dist3d_point_tri(), lw_dist3d_poly_poly(), lw_dist3d_poly_tri(), and lw_dist3d_tri_tri().