mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-16 19:15:58 +08:00
Strictly enforce perimeters so that the test isn't broken by the "only one perimeter top"
This commit is contained in:
parent
6f84732a70
commit
8b568fe2bf
@ -13,10 +13,22 @@ SCENARIO("PrintObject: Perimeter generation", "[PrintObject]") {
|
|||||||
GIVEN("20mm cube and default config") {
|
GIVEN("20mm cube and default config") {
|
||||||
WHEN("make_perimeters() is called") {
|
WHEN("make_perimeters() is called") {
|
||||||
Slic3r::Print print;
|
Slic3r::Print print;
|
||||||
Slic3r::Test::init_and_process_print({TestMesh::cube_20x20x20}, print, { { "fill_density", 0 } });
|
Slic3r::Test::init_and_process_print({TestMesh::cube_20x20x20}, print, {
|
||||||
|
{ "fill_density", 0 },
|
||||||
|
{ "solid_layers", 0 },
|
||||||
|
{ "layer_height", 0.2 },
|
||||||
|
{ "first_layer_height", 0.2},
|
||||||
|
{ "first_layer_width", 0.3 },
|
||||||
|
{ "only_one_perimeter_top", 0},
|
||||||
|
{ "perimeter_extrusion_width", 0.3},
|
||||||
|
{ "first_layer_extrusion_width", 0.3},
|
||||||
|
{ "external_perimeter_extrusion_width", 0.3 },
|
||||||
|
{ "perimeters", 3 },
|
||||||
|
{ "nozzle_diameter", 0.3 },
|
||||||
|
});
|
||||||
const PrintObject &object = *print.objects().front();
|
const PrintObject &object = *print.objects().front();
|
||||||
THEN("67 layers exist in the model") {
|
THEN("67 layers exist in the model") {
|
||||||
REQUIRE(object.layers().size() == 66);
|
REQUIRE(object.layers().size() == 100);
|
||||||
}
|
}
|
||||||
THEN("Every layer in region 0 has 1 island of perimeters") {
|
THEN("Every layer in region 0 has 1 island of perimeters") {
|
||||||
for (const Layer *layer : object.layers())
|
for (const Layer *layer : object.layers())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user