Skip to content

Commit

Permalink
Merge pull request #3814 from MaelRL/Surface_mesh-Actually_reset_all_…
Browse files Browse the repository at this point in the history
…properties-GF

Surface Mesh: Fix not reseting edge property when a new element re-uses memory
  • Loading branch information
lrineau committed Mar 29, 2019
2 parents c8e81ab + 676983a commit 0d7cb7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,8 @@ class Surface_mesh
--removed_edges_;
eremoved_[Edge_index(Halfedge_index(idx))] = false;
hprops_.reset(Halfedge_index(idx));
hprops_.reset(opposite(Halfedge_index(idx)));
eprops_.reset(Edge_index(Halfedge_index(idx)));
return Halfedge_index(idx);
} else {
eprops_.push_back();
Expand Down

0 comments on commit 0d7cb7f

Please sign in to comment.