PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ _lwt_EdgeRingIterator_begin()

static LWT_EDGERING_POINT_ITERATOR* _lwt_EdgeRingIterator_begin ( LWT_EDGERING er)
static

Definition at line 6114 of file lwgeom_topo.c.

6115 {
6117  ret->ring = er;
6118  if ( er->size ) ret->curelem = er->elems[0];
6119  else ret->curelem = NULL;
6120  ret->curelemidx = 0;
6121  ret->curidx = ret->curelem->left ? 0 : ret->curelem->edge->geom->points->npoints - 1;
6122  return ret;
6123 }
void * lwalloc(size_t size)
Definition: lwutil.c:229
POINTARRAY * points
Definition: liblwgeom.h:425
LWT_ISO_EDGE * edge
Definition: lwgeom_topo.c:5979
LWT_EDGERING_ELEM * curelem
Definition: lwgeom_topo.c:6068
LWT_EDGERING_ELEM ** elems
Definition: lwgeom_topo.c:5989
LWLINE * geom
uint32_t npoints
Definition: liblwgeom.h:374

References LWT_EDGERING_POINT_ITERATOR_T::curelem, LWT_EDGERING_POINT_ITERATOR_T::curelemidx, LWT_EDGERING_POINT_ITERATOR_T::curidx, LWT_EDGERING_ELEM_T::edge, LWT_EDGERING_T::elems, LWT_ISO_EDGE::geom, LWT_EDGERING_ELEM_T::left, lwalloc(), POINTARRAY::npoints, LWLINE::points, LWT_EDGERING_POINT_ITERATOR_T::ring, and LWT_EDGERING_T::size.

Referenced by _lwt_EdgeRingContainsPoint(), and _lwt_EdgeRingIsCCW().

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