mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-31 16:21:58 +08:00
Fix scale in test
This commit is contained in:
parent
ca71305c75
commit
e40b798ef6
@ -289,7 +289,9 @@ TEST_CASE("Heal of points close to line", "[Emboss]")
|
||||
std::string file_name = "points_close_to_line.svg";
|
||||
std::string file_path = TEST_DATA_DIR PATH_SEPARATOR + file_name;
|
||||
NSVGimage *image = nsvgParseFromFile(file_path.c_str(), "px", 96.0f);
|
||||
Polygons polygons = to_polygons(*image, NSVGLineParams{1000});
|
||||
NSVGLineParams param{1000};
|
||||
param.scale = 1.;
|
||||
Polygons polygons = to_polygons(*image, param);
|
||||
nsvgDelete(image);
|
||||
REQUIRE(polygons.size() == 1);
|
||||
Polygon polygon = polygons.front();
|
||||
|
Loading…
x
Reference in New Issue
Block a user