46 for ( i = 0; i < tin->
ngeoms; i++ )
63 lwerror(
"printLWTIN called with something else than a TIN");
70 for (i=0; i<tin->
ngeoms; i++)
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;
void printPA(POINTARRAY *pa)
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
#define FLAGS_NDIMS(flags)
void lwtriangle_free(LWTRIANGLE *triangle)
int getPoint4d_p(const POINTARRAY *pa, uint32_t n, POINT4D *point)
LWCOLLECTION * lwcollection_add_lwgeom(LWCOLLECTION *col, const LWGEOM *geom)
Appends geom to the collection managed by col.
void * lwalloc(size_t size)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
void lwnotice(const char *fmt,...)
Write a notice out to the notice handler.
LWTIN * lwtin_add_lwtriangle(LWTIN *mobj, const LWTRIANGLE *obj)
void lwtin_free(LWTIN *tin)
void printLWTIN(LWTIN *tin)
int lwtin_is_closed(const LWTIN *tin)
struct struct_tin_arcs * tin_arcs