Added retrieval of points and segments for voronoi diagram

This commit is contained in:
Markus Lampert
2020-09-09 21:30:45 -07:00
committed by sliptonic
parent 3a50f84ba4
commit 67ded9cbfa
3 changed files with 69 additions and 1 deletions

View File

@@ -293,7 +293,7 @@ void Voronoi::colorColinear(Voronoi::color_type color, double degree) {
void Voronoi::resetColor(Voronoi::color_type color) {
for (auto it = vd->cells().begin(); it != vd->cells().end(); ++it) {
if (color == -1 || it->color() == color) {
if (color == 0 || it->color() == color) {
it->color(0);
}
}