PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwtriangle()

LWTRIANGLE* lwgeom_as_lwtriangle ( const LWGEOM lwgeom)

Definition at line 183 of file lwgeom.c.

References TRIANGLETYPE, and LWGEOM::type.

Referenced by extract_pointarrays_from_lwgeom(), LWGEOM_dumppoints(), LWGEOM_exteriorring_polygon(), and lwgeom_swap_ordinates().

184 {
185  if ( lwgeom == NULL ) return NULL;
186  if ( lwgeom->type == TRIANGLETYPE )
187  return (LWTRIANGLE *)lwgeom;
188  else return NULL;
189 }
#define TRIANGLETYPE
Definition: liblwgeom.h:98
uint8_t type
Definition: liblwgeom.h:396
Here is the caller graph for this function: