+ Comment debug output
+ Add was_canceled in cut surface
This commit is contained in:
Filip Sykala - NTB T15p 2022-10-12 19:26:45 +02:00
parent 6d4830823e
commit 8343e81053
6 changed files with 28 additions and 19 deletions

View file

@ -283,9 +283,9 @@ TEST_CASE("Heal of points close to line", "[Emboss]")
Polygon polygon = polygons.front();
polygon.points.pop_back();// NSVG put first point as last one when polygon is closed
ExPolygons expoly({ExPolygon(polygon)});
Emboss::heal_shape(expoly);
CHECK(Emboss::divide_segments_for_close_point(expoly, .6));
//{ SVG svg("C:/data/temp/healed.svg"); svg.draw(expoly);}
CHECK(expoly.size() == 3);
CHECK(to_points(expoly).size() >= (to_points(polygon).size() + 2));
}
TEST_CASE("Convert text with glyph cache to model", "[Emboss]")