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

Definition at line 69 of file lwtriangle.c.

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

Referenced by lwgeom_free(), and lwtin_free().

70 {
71  if ( ! triangle ) return;
72 
73  if (triangle->bbox)
74  lwfree(triangle->bbox);
75 
76  if (triangle->points)
77  ptarray_free(triangle->points);
78 
79  lwfree(triangle);
80 }
POINTARRAY * points
Definition: liblwgeom.h:432
void lwfree(void *mem)
Definition: lwutil.c:242
void ptarray_free(POINTARRAY *pa)
Definition: ptarray.c:330
GBOX * bbox
Definition: liblwgeom.h:430

Here is the call graph for this function:

Here is the caller graph for this function: