Commit 4b1b3e19 authored by campen's avatar campen

fixed polyline to work with recent OM

parent e2dbe2e0
......@@ -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,7 +1964,7 @@ 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),
for (typename MeshT::CFFIter ff_it = mesh.ff_begin(fh),
ff_end = mesh.ff_end(fh); ff_it != ff_end; ++ff_it) {
if (component[*ff_it] == 0)
......
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