Commit b171c8a8 authored by David Bommes's avatar David Bommes
Browse files

hack to keep polyline invariant in component-splitting, should be corrected by HC later on

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17785 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 38fc3348
......@@ -2024,7 +2024,14 @@ split_into_one_per_component(MeshT &_mesh,
}
if (current_polyLine.n_vertices() >= 2)
out_polylines.push_back(current_polyLine);
out_polylines.push_back(current_polyLine);
// hack! if no splitting return original polyline
if(out_polylines.size() <= 1)
{
out_polylines.clear();
out_polylines.push_back(*this);
}
}
//=============================================================================
......
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