PostGIS  2.5.0dev-r@@SVN_REVISION@@
static int _lwt_UpdateEdgeFaceRef ( LWT_TOPOLOGY topo,
LWT_ELEMID  of,
LWT_ELEMID  nf 
)
static

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

3925 {
3926  LWT_ISO_EDGE sel_edge, upd_edge;
3927  int ret;
3928 
3929  assert( of != 0 );
3930 
3931  /* Update face_left for all edges still referencing old face */
3932  sel_edge.face_left = of;
3933  upd_edge.face_left = nf;
3934  ret = lwt_be_updateEdges(topo, &sel_edge, LWT_COL_EDGE_FACE_LEFT,
3935  &upd_edge, LWT_COL_EDGE_FACE_LEFT,
3936  NULL, 0);
3937  if ( ret == -1 ) return -1;
3938 
3939  /* Update face_right for all edges still referencing old face */
3940  sel_edge.face_right = of;
3941  upd_edge.face_right = nf;
3942  ret = lwt_be_updateEdges(topo, &sel_edge, LWT_COL_EDGE_FACE_RIGHT,
3943  &upd_edge, LWT_COL_EDGE_FACE_RIGHT,
3944  NULL, 0);
3945  if ( ret == -1 ) return -1;
3946 
3947  return 0;
3948 }
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:274
LWT_ELEMID face_right

Here is the call graph for this function:

Here is the caller graph for this function: