Definition at line 147 of file lwtriangle.c.
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.
153 lwerror(
"lwtriangle_from_lwline: shell must have exactly 4 points");
157 lwerror(
"lwtriangle_from_lwline: shell must be closed");
163 lwerror(
"lwtriangle_from_lwline: some points are repeated in triangle");
int ptarray_is_closed_3d(const POINTARRAY *pa)
LWTRIANGLE * lwtriangle_construct(int srid, GBOX *bbox, POINTARRAY *points)
int ptarray_is_closed_2d(const POINTARRAY *pa)
char lwtriangle_is_repeated_points(LWTRIANGLE *triangle)
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.
void lwerror(const char *fmt,...)
Write a notice out to the error handler.