PostGIS  2.5.2dev-r@@SVN_REVISION@@

◆ _lwt_EdgeRingIterator_begin()

static LWT_EDGERING_POINT_ITERATOR* _lwt_EdgeRingIterator_begin ( LWT_EDGERING er)
static

Definition at line 6086 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().

6087 {
6089  ret->ring = er;
6090  if ( er->size ) ret->curelem = er->elems[0];
6091  else ret->curelem = NULL;
6092  ret->curelemidx = 0;
6093  ret->curidx = ret->curelem->left ? 0 : ret->curelem->edge->geom->points->npoints - 1;
6094  return ret;
6095 }
LWLINE * geom
LWT_ISO_EDGE * edge
Definition: lwgeom_topo.c:5951
LWT_EDGERING_ELEM ** elems
Definition: lwgeom_topo.c:5961
LWT_EDGERING_ELEM * curelem
Definition: lwgeom_topo.c:6040
void * lwalloc(size_t size)
Definition: lwutil.c:229
POINTARRAY * points
Definition: liblwgeom.h:424
uint32_t npoints
Definition: liblwgeom.h:373
Here is the call graph for this function:
Here is the caller graph for this function: