PostGIS  3.0.0dev-r@@SVN_REVISION@@

◆ _lwt_UpdateEdgeFaceRef()

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

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

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