We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a9a8c4b + 989264e commit b655d0cCopy full SHA for b655d0c
Surface_mesh_simplification/include/CGAL/Surface_mesh_simplification/Detail/Edge_collapse_impl.h
@@ -111,11 +111,11 @@ namespace Surface_mesh_simplification
111
112
Equal_3 equal_points = Traits().equal_3_object();
113
114
- size_type lSize = static_cast<size_type>(
115
- std::distance( boost::begin(edges(mSurface)),
116
- boost::end(edges(mSurface)) ) );
+ size_type lSize = num_edges(mSurface);
117
118
- mInitialEdgeCount = mCurrentEdgeCount = lSize;
+ mInitialEdgeCount = mCurrentEdgeCount = static_cast<size_type>(
+ std::distance( boost::begin(edges(mSurface)),
+ boost::end(edges(mSurface)) ) );;
119
120
mEdgeDataArray.reset( new Edge_data[lSize] ) ;
121
0 commit comments