PostGIS  2.5.0dev-r@@SVN_REVISION@@
static int _lwt_EdgeRingIsCCW ( LWT_EDGERING ring)
static

Definition at line 6537 of file lwgeom_topo.c.

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

Referenced by _lwt_RegisterFaceOnEdgeSide().

6538 {
6539  double sa;
6540 
6541  LWDEBUGF(2, "_lwt_EdgeRingIsCCW, ring has %d elems", ring->size);
6543  sa = _lwt_EdgeRingSignedArea(it);
6544  LWDEBUGF(2, "_lwt_EdgeRingIsCCW, signed area is %g", sa);
6545  lwfree(it);
6546  if ( sa >= 0 ) return 0;
6547  else return 1;
6548 }
void lwfree(void *mem)
Definition: lwutil.c:244
static LWT_EDGERING_POINT_ITERATOR * _lwt_EdgeRingIterator_begin(LWT_EDGERING *er)
Definition: lwgeom_topo.c:6312
static double _lwt_EdgeRingSignedArea(LWT_EDGERING_POINT_ITERATOR *it)
Definition: lwgeom_topo.c:6505
#define LWDEBUGF(level, msg,...)
Definition: lwgeom_log.h:88

Here is the call graph for this function:

Here is the caller graph for this function: