PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ lwgeom_as_lwtriangle()

LWTRIANGLE * lwgeom_as_lwtriangle ( const LWGEOM lwgeom)
extern

Definition at line 252 of file lwgeom.c.

253{
254 if ( lwgeom == NULL ) return NULL;
255 if ( lwgeom->type == TRIANGLETYPE )
256 return (LWTRIANGLE *)lwgeom;
257 else return NULL;
258}
#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_force_orientation(), lwgeom_has_orientation(), lwgeom_simplify_in_place(), and lwgeom_swap_ordinates().

Here is the caller graph for this function: