PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ _lwt_UpdateEdgeFaceRef()

static int _lwt_UpdateEdgeFaceRef ( LWT_TOPOLOGY topo,
LWT_ELEMID  of,
LWT_ELEMID  nf 
)
static

Definition at line 3852 of file lwgeom_topo.c.

References LWT_ISO_EDGE::face_left, LWT_ISO_EDGE::face_right, lwt_be_updateEdges(), LWT_COL_EDGE_FACE_LEFT, and LWT_COL_EDGE_FACE_RIGHT.

Referenced by _lwt_RemEdge().

3853 {
3854  LWT_ISO_EDGE sel_edge, upd_edge;
3855  int ret;
3856 
3857  assert( of != 0 );
3858 
3859  /* Update face_left for all edges still referencing old face */
3860  sel_edge.face_left = of;
3861  upd_edge.face_left = nf;
3862  ret = lwt_be_updateEdges(topo, &sel_edge, LWT_COL_EDGE_FACE_LEFT,
3863  &upd_edge, LWT_COL_EDGE_FACE_LEFT,
3864  NULL, 0);
3865  if ( ret == -1 ) return -1;
3866 
3867  /* Update face_right for all edges still referencing old face */
3868  sel_edge.face_right = of;
3869  upd_edge.face_right = nf;
3870  ret = lwt_be_updateEdges(topo, &sel_edge, LWT_COL_EDGE_FACE_RIGHT,
3871  &upd_edge, LWT_COL_EDGE_FACE_RIGHT,
3872  NULL, 0);
3873  if ( ret == -1 ) return -1;
3874 
3875  return 0;
3876 }
LWT_ELEMID face_left
#define LWT_COL_EDGE_FACE_LEFT
#define LWT_COL_EDGE_FACE_RIGHT
int lwt_be_updateEdges(LWT_TOPOLOGY *topo, const LWT_ISO_EDGE *sel_edge, int sel_fields, const LWT_ISO_EDGE *upd_edge, int upd_fields, const LWT_ISO_EDGE *exc_edge, int exc_fields)
Definition: lwgeom_topo.c:278
LWT_ELEMID face_right
Here is the call graph for this function:
Here is the caller graph for this function: