PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ _lwt_EdgeRingIsCCW()

static int _lwt_EdgeRingIsCCW ( LWT_EDGERING ring)
static

Definition at line 6339 of file lwgeom_topo.c.

6340 {
6341  double sa;
6342 
6343  LWDEBUGF(2, "_lwt_EdgeRingIsCCW, ring has %d elems", ring->size);
6345  sa = _lwt_EdgeRingSignedArea(it);
6346  LWDEBUGF(2, "_lwt_EdgeRingIsCCW, signed area is %g", sa);
6347  lwfree(it);
6348  if ( sa >= 0 ) return 0;
6349  else return 1;
6350 }
void lwfree(void *mem)
Definition: lwutil.c:244
#define LWDEBUGF(level, msg,...)
Definition: lwgeom_log.h:88
static double _lwt_EdgeRingSignedArea(LWT_EDGERING_POINT_ITERATOR *it)
Definition: lwgeom_topo.c:6307
static LWT_EDGERING_POINT_ITERATOR * _lwt_EdgeRingIterator_begin(LWT_EDGERING *er)
Definition: lwgeom_topo.c:6114

References _lwt_EdgeRingIterator_begin(), _lwt_EdgeRingSignedArea(), LWDEBUGF, lwfree(), and LWT_EDGERING_T::size.

Referenced by _lwt_RegisterFaceOnEdgeSide().

Here is the call graph for this function:
Here is the caller graph for this function: