PostGIS  3.0.0dev-r@@SVN_REVISION@@

◆ _lwt_EdgeRingIterator_begin()

static LWT_EDGERING_POINT_ITERATOR* _lwt_EdgeRingIterator_begin ( LWT_EDGERING er)
static

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

6086 {
6088  ret->ring = er;
6089  if ( er->size ) ret->curelem = er->elems[0];
6090  else ret->curelem = NULL;
6091  ret->curelemidx = 0;
6092  ret->curidx = ret->curelem->left ? 0 : ret->curelem->edge->geom->points->npoints - 1;
6093  return ret;
6094 }
LWLINE * geom
LWT_ISO_EDGE * edge
Definition: lwgeom_topo.c:5950
LWT_EDGERING_ELEM ** elems
Definition: lwgeom_topo.c:5960
LWT_EDGERING_ELEM * curelem
Definition: lwgeom_topo.c:6039
void * lwalloc(size_t size)
Definition: lwutil.c:227
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: