PostGIS  2.5.0dev-r@@SVN_REVISION@@
static LWT_EDGERING_POINT_ITERATOR* _lwt_EdgeRingIterator_begin ( LWT_EDGERING er)
static

Definition at line 6316 of file lwgeom_topo.c.

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().

6317 {
6319  ret->ring = er;
6320  if ( er->size ) ret->curelem = er->elems[0];
6321  else ret->curelem = NULL;
6322  ret->curelemidx = 0;
6323  ret->curidx = ret->curelem->left ? 0 : ret->curelem->edge->geom->points->npoints - 1;
6324  return ret;
6325 }
LWLINE * geom
LWT_ISO_EDGE * edge
Definition: lwgeom_topo.c:6181
LWT_EDGERING_ELEM ** elems
Definition: lwgeom_topo.c:6191
LWT_EDGERING_ELEM * curelem
Definition: lwgeom_topo.c:6270
void * lwalloc(size_t size)
Definition: lwutil.c:229
POINTARRAY * points
Definition: liblwgeom.h:421
uint32_t npoints
Definition: liblwgeom.h:370

Here is the call graph for this function:

Here is the caller graph for this function: