PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ _lwt_UpdateEdgeFaceRef()

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

Definition at line 3738 of file lwgeom_topo.c.

3739 {
3740  LWT_ISO_EDGE sel_edge, upd_edge;
3741  int ret;
3742 
3743  assert( of != 0 );
3744 
3745  /* Update face_left for all edges still referencing old face */
3746  sel_edge.face_left = of;
3747  upd_edge.face_left = nf;
3748  ret = lwt_be_updateEdges(topo, &sel_edge, LWT_COL_EDGE_FACE_LEFT,
3749  &upd_edge, LWT_COL_EDGE_FACE_LEFT,
3750  NULL, 0);
3751  if ( ret == -1 ) return -1;
3752 
3753  /* Update face_right for all edges still referencing old face */
3754  sel_edge.face_right = of;
3755  upd_edge.face_right = nf;
3756  ret = lwt_be_updateEdges(topo, &sel_edge, LWT_COL_EDGE_FACE_RIGHT,
3757  &upd_edge, LWT_COL_EDGE_FACE_RIGHT,
3758  NULL, 0);
3759  if ( ret == -1 ) return -1;
3760 
3761  return 0;
3762 }
#define LWT_COL_EDGE_FACE_RIGHT
#define LWT_COL_EDGE_FACE_LEFT
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
LWT_ELEMID face_left

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().

Here is the call graph for this function:
Here is the caller graph for this function: