Added color -1 to mean resetting all color.
This commit is contained in:
committed by
sliptonic
parent
32cc97b1a7
commit
65b2cc1f48
@@ -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 (it->color() == color) {
|
||||
if (color == -1 || it->color() == color) {
|
||||
it->color(0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user