Commit be5e9827 authored by Jan Möbius's avatar Jan Möbius

Merge branch 'fix_polyline_for_new_om' into 'master'

Fix polyline for new om

See merge request !2
parents e2dbe2e0 6d4400ef
......@@ -1932,16 +1932,16 @@ void PolyLineT<PointT>::mark_components(
OpenMesh::FPropHandleT<unsigned int>,
MeshT> &component) {
MeshT &mesh = component.getMesh();
const MeshT &mesh = component.getMesh();
for (typename MeshT::FaceIter
for (typename MeshT::ConstFaceIter
f_it = mesh.faces_begin(), f_end = mesh.faces_end();
f_it != f_end; ++f_it) {
component[*f_it] = 0;
}
unsigned int current_component = 0;
for (typename MeshT::FaceIter f_it = mesh.faces_begin(),
for (typename MeshT::ConstFaceIter f_it = mesh.faces_begin(),
f_end = mesh.faces_end(); f_it != f_end; ++f_it) {
if (component[*f_it] != 0)
......@@ -1964,8 +1964,8 @@ void PolyLineT<PointT>::mark_components(
* Visit neighbors, push them onto stack if they
* haven't been visited yet.
*/
for (typename MeshT::FFIter ff_it = mesh.ff_begin(fh),
ff_end = mesh.ff_end(fh); ff_it != ff_end; ++ff_it) {
for (typename MeshT::CFFIter ff_it = mesh.cff_begin(fh),
ff_end = mesh.cff_end(fh); ff_it != ff_end; ++ff_it) {
if (component[*ff_it] == 0)
dfs.push(*ff_it);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment