Remove obsolete assert in the multi-material segmentation.

This commit is contained in:
Lukáš Hejl 2024-11-01 21:29:10 +01:00
parent 9634f2e02f
commit a443b27895

View File

@ -827,10 +827,8 @@ static std::vector<ExPolygons> extract_colored_segments(const std::vector<Colore
segmented_polygon.points.emplace_back(Geometry::VoronoiUtils::to_point(next_vertex).cast<coord_t>());
edge->color(VD_ANNOTATION::DELETED);
if (next_vertex.color() == VD_ANNOTATION::VERTEX_ON_CONTOUR || next_vertex.color() == VD_ANNOTATION::DELETED) {
assert(next_vertex.color() == VD_ANNOTATION::VERTEX_ON_CONTOUR);
if (next_vertex.color() == VD_ANNOTATION::VERTEX_ON_CONTOUR || next_vertex.color() == VD_ANNOTATION::DELETED)
break;
}
edge = edge->twin();
} while (edge = edge->twin()->next(), edge != cell_range.edge_begin);