PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwtriangle()

LWTRIANGLE* lwgeom_as_lwtriangle ( const LWGEOM lwgeom)

Definition at line 224 of file lwgeom.c.

225 {
226  if ( lwgeom == NULL ) return NULL;
227  if ( lwgeom->type == TRIANGLETYPE )
228  return (LWTRIANGLE *)lwgeom;
229  else return NULL;
230 }
#define TRIANGLETYPE
Definition: liblwgeom.h:115
uint8_t type
Definition: liblwgeom.h:462

References TRIANGLETYPE, and LWGEOM::type.

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

Here is the caller graph for this function: