PostGIS  2.1.10dev-r@@SVN_REVISION@@
LWTRIANGLE* lwgeom_as_lwtriangle ( const LWGEOM lwgeom)

Definition at line 134 of file lwgeom.c.

References TRIANGLETYPE, and LWGEOM::type.

Referenced by LWGEOM_dumppoints(), LWGEOM_exteriorring_polygon(), and lwgeom_flip_coordinates().

135 {
136  if ( lwgeom == NULL ) return NULL;
137  if ( lwgeom->type == TRIANGLETYPE )
138  return (LWTRIANGLE *)lwgeom;
139  else return NULL;
140 }
#define TRIANGLETYPE
Definition: liblwgeom.h:73
uint8_t type
Definition: liblwgeom.h:352

Here is the caller graph for this function: