PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ _lwt_UpdateEdgeFaceRef()

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

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

3883 {
3884  LWT_ISO_EDGE sel_edge, upd_edge;
3885  int ret;
3886 
3887  assert( of != 0 );
3888 
3889  /* Update face_left for all edges still referencing old face */
3890  sel_edge.face_left = of;
3891  upd_edge.face_left = nf;
3892  ret = lwt_be_updateEdges(topo, &sel_edge, LWT_COL_EDGE_FACE_LEFT,
3893  &upd_edge, LWT_COL_EDGE_FACE_LEFT,
3894  NULL, 0);
3895  if ( ret == -1 ) return -1;
3896 
3897  /* Update face_right for all edges still referencing old face */
3898  sel_edge.face_right = of;
3899  upd_edge.face_right = nf;
3900  ret = lwt_be_updateEdges(topo, &sel_edge, LWT_COL_EDGE_FACE_RIGHT,
3901  &upd_edge, LWT_COL_EDGE_FACE_RIGHT,
3902  NULL, 0);
3903  if ( ret == -1 ) return -1;
3904 
3905  return 0;
3906 }
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: