void ME_Replace_Vertex(MEdge_ptr e, MVertex_ptr oldv, MVertex_ptr nuv) { if (e->vertex[0] == oldv) { e->vertex[0] = nuv; MV_Add_Edge(nuv,e); MV_Rem_Edge(oldv,e); } else if (e->vertex[1] == oldv) { e->vertex[1] = nuv; MV_Add_Edge(nuv,e); MV_Rem_Edge(oldv,e); } else MSTK_Report("ME_Replace_Vertex","Cannot find vertex in edge",MSTK_ERROR); }
void ME_Restore_F1(MEdge_ptr e) { MEnt_Set_Dim((MEntity_ptr) e,MEDGE); MV_Add_Edge(e->vertex[0],e); MV_Add_Edge(e->vertex[1],e); }
void ME_Set_Vertex(MEdge_ptr e, int i, MVertex_ptr v) { e->vertex[i] = v; MV_Add_Edge(v,e); }