Commit b4cb677e authored by LEFEBVREJP email's avatar LEFEBVREJP email
Browse files

Fixing marching squares priority queue use.

parent 577ded75
......@@ -460,6 +460,8 @@ MarchingSquares<data_type>::march(const std::vector<data_type>& isovalues,
cpolygon.resize(top.size());
std::copy(top.begin(), top.end(), cpolygon.begin());
}
// remove the top element
pqueue.pop();
}
}
return contours;
......
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,2,2,3,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,2,2,3,3,2,2,2,0,0,0,0,0,0,0,0,0,0,0,
0,0,2,3,3,3,3,3,2,2,2,0,0,0,0,0,0,0,0,0,
0,0,2,3,3,3,3,3,3,3,2,2,2,0,0,0,0,0,0,0,
0,0,2,3,3,3,3,3,3,3,3,2,2,0,0,0,0,0,0,0,
0,0,2,2,2,2,2,2,2,2,2,2,2,0,0,0,2,2,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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