Comment visualization in test
This commit is contained in:
parent
9f525da15e
commit
1a33a31a9f
@ -216,20 +216,20 @@ ExPolygons heal_and_check(const Polygons &polygons)
|
|||||||
Pointfs intersections = intersection_points(shape);
|
Pointfs intersections = intersection_points(shape);
|
||||||
Points shape_points = to_points(shape);
|
Points shape_points = to_points(shape);
|
||||||
Points duplicits = collect_duplicates(shape_points);
|
Points duplicits = collect_duplicates(shape_points);
|
||||||
{
|
//{
|
||||||
BoundingBox bb(polygons_points);
|
// BoundingBox bb(polygons_points);
|
||||||
// bb.scale(svg_scale);
|
// // bb.scale(svg_scale);
|
||||||
SVG svg("C:/data/temp/test_visualization.svg", bb);
|
// SVG svg("C:/data/temp/test_visualization.svg", bb);
|
||||||
svg.draw(polygons, "gray"); // input
|
// svg.draw(polygons, "gray"); // input
|
||||||
svg.draw(shape, "green"); // output
|
// svg.draw(shape, "green"); // output
|
||||||
|
|
||||||
Points pts;
|
// Points pts;
|
||||||
pts.reserve(intersections.size());
|
// pts.reserve(intersections.size());
|
||||||
for (const Vec2d &intersection : intersections)
|
// for (const Vec2d &intersection : intersections)
|
||||||
pts.push_back(intersection.cast<int>());
|
// pts.push_back(intersection.cast<int>());
|
||||||
svg.draw(pts, "red", 10);
|
// svg.draw(pts, "red", 10);
|
||||||
svg.draw(duplicits, "orenge", 10);
|
// svg.draw(duplicits, "orenge", 10);
|
||||||
}
|
//}
|
||||||
|
|
||||||
CHECK(intersections.empty());
|
CHECK(intersections.empty());
|
||||||
CHECK(duplicits.empty());
|
CHECK(duplicits.empty());
|
||||||
|
Loading…
Reference in New Issue
Block a user