Definition at line 93 of file lwtin.c.
References struct_tin_arcs::ax, struct_tin_arcs::ay, struct_tin_arcs::az, struct_tin_arcs::bx, struct_tin_arcs::by, struct_tin_arcs::bz, struct_tin_arcs::cnt, struct_tin_arcs::face, LWTIN::flags, FLAGS_GET_Z, LWTIN::geoms, getPoint4d_p(), lwalloc(), lwfree(), LWTIN::ngeoms, LWTRIANGLE::points, POINT4D::x, POINT4D::y, and POINT4D::z.
Referenced by lwgeom_is_closed().
109 for (i=0, carc=0; i < tin->
ngeoms ; i++)
113 for (j=0; j < 3 ; j++)
120 if ( (pa.
x > pb.
x) ||
121 (pa.
x == pb.
x && pa.
y > pb.
y) ||
122 (pa.
x == pb.
x && pa.
y == pb.
y && pa.
z > pb.
z) )
128 for (found=0, k=0; k < carc ; k++)
131 if ( ( arcs[k].ax == pa.
x && arcs[k].
ay == pa.
y &&
132 arcs[k].
az == pa.
z && arcs[k].
bx == pb.
x &&
133 arcs[k].
by == pb.
y && arcs[k].
bz == pb.
z &&
153 arcs[carc].
ax = pa.
x;
154 arcs[carc].
ay = pa.
y;
155 arcs[carc].
az = pa.
z;
156 arcs[carc].
bx = pb.
x;
157 arcs[carc].
by = pb.
y;
158 arcs[carc].
bz = pb.
z;
174 for (k=0; k < carc ; k++)
176 if (arcs[k].cnt != 2)
185 if (carc < tin->ngeoms)
return 0;
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
void * lwalloc(size_t size)
int getPoint4d_p(const POINTARRAY *pa, int n, POINT4D *point)