Added retrieval of points and segments for voronoi diagram
This commit is contained in:
committed by
sliptonic
parent
3a50f84ba4
commit
67ded9cbfa
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user