PostGIS  2.2.7dev-r@@SVN_REVISION@@
void lwtriangle_free ( LWTRIANGLE triangle)

Definition at line 56 of file lwtriangle.c.

References LWTRIANGLE::bbox, lwfree(), LWTRIANGLE::points, and ptarray_free().

Referenced by lwgeom_free(), and lwtin_free().

57 {
58  if ( ! triangle ) return;
59 
60  if (triangle->bbox)
61  lwfree(triangle->bbox);
62 
63  if (triangle->points)
64  ptarray_free(triangle->points);
65 
66  lwfree(triangle);
67 }
POINTARRAY * points
Definition: liblwgeom.h:417
void lwfree(void *mem)
Definition: lwutil.c:214
void ptarray_free(POINTARRAY *pa)
Definition: ptarray.c:330
GBOX * bbox
Definition: liblwgeom.h:415

Here is the call graph for this function:

Here is the caller graph for this function: