PostGIS  2.5.2dev-r@@SVN_REVISION@@

◆ _lwt_EdgeRingContainsPoint()

static int _lwt_EdgeRingContainsPoint ( LWT_EDGERING ring,
POINT2D p 
)
static

Definition at line 6377 of file lwgeom_topo.c.

References _lwt_EdgeRingCrossingCount(), _lwt_EdgeRingIterator_begin(), and lwfree().

Referenced by _lwt_FindFaceContainingRing().

6378 {
6379  int cn = 0;
6380 
6382  cn = _lwt_EdgeRingCrossingCount(p, it);
6383  lwfree(it);
6384  return (cn&1); /* 0 if even (out), and 1 if odd (in) */
6385 }
void lwfree(void *mem)
Definition: lwutil.c:244
static int _lwt_EdgeRingCrossingCount(const POINT2D *p, LWT_EDGERING_POINT_ITERATOR *it)
Definition: lwgeom_topo.c:6325
static LWT_EDGERING_POINT_ITERATOR * _lwt_EdgeRingIterator_begin(LWT_EDGERING *er)
Definition: lwgeom_topo.c:6086
Here is the call graph for this function:
Here is the caller graph for this function: