PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwtriangle()

LWTRIANGLE* lwgeom_as_lwtriangle ( const LWGEOM lwgeom)

Definition at line 206 of file lwgeom.c.

207 {
208  if ( lwgeom == NULL ) return NULL;
209  if ( lwgeom->type == TRIANGLETYPE )
210  return (LWTRIANGLE *)lwgeom;
211  else return NULL;
212 }
#define TRIANGLETYPE
Definition: liblwgeom.h:129
uint8_t type
Definition: liblwgeom.h:448

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: