Definition at line 153 of file lwtriangle.c.
159 lwerror(
"lwtriangle_from_lwline: shell must have exactly 4 points");
163 lwerror(
"lwtriangle_from_lwline: shell must be closed");
169 lwerror(
"lwtriangle_from_lwline: some points are repeated in triangle");
int ptarray_is_closed_3d(const POINTARRAY *pa)
POINTARRAY * ptarray_clone_deep(const POINTARRAY *ptarray)
Deep clone a pointarray (also clones serialized pointlist)
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
int ptarray_is_closed_2d(const POINTARRAY *pa)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
static char lwtriangle_is_repeated_points(LWTRIANGLE *triangle)
LWTRIANGLE * lwtriangle_construct(int srid, GBOX *bbox, POINTARRAY *points)
References LWLINE::flags, FLAGS_GET_Z, lwerror(), lwtriangle_construct(), lwtriangle_is_repeated_points(), POINTARRAY::npoints, LWLINE::points, ptarray_clone_deep(), ptarray_is_closed_2d(), ptarray_is_closed_3d(), and LWLINE::srid.