PostGIS  2.5.0beta1dev-r@@SVN_REVISION@@

◆ _lwt_UpdateEdgeFaceRef()

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

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

3719 {
3720  LWT_ISO_EDGE sel_edge, upd_edge;
3721  int ret;
3722 
3723  assert( of != 0 );
3724 
3725  /* Update face_left for all edges still referencing old face */
3726  sel_edge.face_left = of;
3727  upd_edge.face_left = nf;
3728  ret = lwt_be_updateEdges(topo, &sel_edge, LWT_COL_EDGE_FACE_LEFT,
3729  &upd_edge, LWT_COL_EDGE_FACE_LEFT,
3730  NULL, 0);
3731  if ( ret == -1 ) return -1;
3732 
3733  /* Update face_right for all edges still referencing old face */
3734  sel_edge.face_right = of;
3735  upd_edge.face_right = nf;
3736  ret = lwt_be_updateEdges(topo, &sel_edge, LWT_COL_EDGE_FACE_RIGHT,
3737  &upd_edge, LWT_COL_EDGE_FACE_RIGHT,
3738  NULL, 0);
3739  if ( ret == -1 ) return -1;
3740 
3741  return 0;
3742 }
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: