PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ _lwt_EdgeRingContainsPoint()

static int _lwt_EdgeRingContainsPoint ( LWT_EDGERING ring,
POINT2D p 
)
static

Definition at line 499 of file lwgeom_topo_polygonizer.c.

500 {
501  int cn = 0;
502 
504  cn = _lwt_EdgeRingCrossingCount(p, it);
505  lwfree(it);
506  return (cn&1); /* 0 if even (out), and 1 if odd (in) */
507 }
void lwfree(void *mem)
Definition: lwutil.c:248
static LWT_EDGERING_POINT_ITERATOR * _lwt_EdgeRingIterator_begin(LWT_EDGERING *er)
static int _lwt_EdgeRingCrossingCount(const POINT2D *p, LWT_EDGERING_POINT_ITERATOR *it)

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

Referenced by _lwt_FindFaceContainingRing().

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