Skip to content
Snippets Groups Projects
Commit b4f488b5 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

missing _changed + fixed potential crash in SortEdgesInLoop

parent cc166f37
Branches
Tags
No related merge requests found
...@@ -508,6 +508,7 @@ void GEO_Internals::_extrude(int mode, ...@@ -508,6 +508,7 @@ void GEO_Internals::_extrude(int mode,
int dim = s.Type / 100 - 1; int dim = s.Type / 100 - 1;
if(dim >= 0 && dim <= 3) outDimTags.push_back(std::pair<int, int>(dim, s.Num)); if(dim >= 0 && dim <= 3) outDimTags.push_back(std::pair<int, int>(dim, s.Num));
} }
_changed = true;
} }
void GEO_Internals::extrude(const std::vector<std::pair<int, int> > &inDimTags, void GEO_Internals::extrude(const std::vector<std::pair<int, int> > &inDimTags,
...@@ -612,6 +613,7 @@ void GEO_Internals::splitCurve(int tag, const std::vector<int> &vertexTags, ...@@ -612,6 +613,7 @@ void GEO_Internals::splitCurve(int tag, const std::vector<int> &vertexTags,
} }
List_Delete(tmp); List_Delete(tmp);
List_Delete(curves); List_Delete(curves);
_changed = true;
} }
void GEO_Internals::intersectCurvesWithSurface(const std::vector<int> &edgeTags, void GEO_Internals::intersectCurvesWithSurface(const std::vector<int> &edgeTags,
...@@ -632,9 +634,10 @@ void GEO_Internals::intersectCurvesWithSurface(const std::vector<int> &edgeTags, ...@@ -632,9 +634,10 @@ void GEO_Internals::intersectCurvesWithSurface(const std::vector<int> &edgeTags,
vertexTags.push_back(s.Num); vertexTags.push_back(s.Num);
} }
else{ else{
Msg::Error("Degenrated curve surface intersection not implemented"); Msg::Error("Degenerated curve-surface intersection not implemented");
} }
} }
_changed = true;
} }
void GEO_Internals::copy(const std::vector<std::pair<int, int> > &inDimTags, void GEO_Internals::copy(const std::vector<std::pair<int, int> > &inDimTags,
...@@ -695,6 +698,7 @@ void GEO_Internals::remove(int dim, int tag) ...@@ -695,6 +698,7 @@ void GEO_Internals::remove(int dim, int tag)
case 2: DeleteSurface(tag); break; case 2: DeleteSurface(tag); break;
case 3: DeleteVolume(tag); break; case 3: DeleteVolume(tag); break;
} }
_changed = true;
} }
void GEO_Internals::remove(const std::vector<std::pair<int, int> > &dimTags) void GEO_Internals::remove(const std::vector<std::pair<int, int> > &dimTags)
......
...@@ -3572,6 +3572,8 @@ void SortEdgesInLoop(int num, List_T *edges, bool orient) ...@@ -3572,6 +3572,8 @@ void SortEdgesInLoop(int num, List_T *edges, bool orient)
} }
List_Reset(edges); List_Reset(edges);
if(!List_Nbr(temp)) return;
int j = 0, k = 0; int j = 0, k = 0;
c0 = c1 = *(Curve **)List_Pointer(temp, 0); c0 = c1 = *(Curve **)List_Pointer(temp, 0);
List_Add(edges, &c1->Num); List_Add(edges, &c1->Num);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment