fix elefant foot comp. for prusa config

fix some tests.
This commit is contained in:
supermerill 2020-03-27 18:21:11 +01:00
parent 79890248a5
commit c83149ea5b
3 changed files with 8 additions and 6 deletions

View File

@ -8,7 +8,7 @@ technologies = FFF; SLA
# Configuration version of this file. Config file will only be installed, if the config_version differs.
# This means, the server may force the PrusaSlicer configuration to be downgraded.
config_version = 1.1.2
config_version = 1.1.3
# Where to get the updates from?
config_update_url =
changelog_url = http://files.prusa3d.com/?latest=slicer-profiles&lng=%1%
@ -147,7 +147,7 @@ compatible_printers =
complete_objects = 0
default_acceleration = 1000
dont_support_bridges = 1
elefant_foot_compensation = 0.2
elefant_foot_compensation = -0.2
ensure_vertical_shell_thickness = 1
top_fill_pattern = rectilinear
bottom_fill_pattern = rectilinear

View File

@ -44,7 +44,8 @@ TEST_CASE("Support point generator should be deterministic if seeded",
autogencfg.head_diameter = float(2 * supportcfg.head_front_radius_mm);
sla::SupportPointGenerator point_gen{emesh, autogencfg, [] {}, [](int) {}};
TriangleMeshSlicer slicer{&mesh};
TriangleMeshSlicer slicer{ CLOSING_RADIUS , 0};
slicer.init(&mesh, [] {});
auto bb = mesh.bounding_box();
double zmin = bb.min.z();
@ -54,7 +55,7 @@ TEST_CASE("Support point generator should be deterministic if seeded",
auto slicegrid = grid(float(gnd), float(zmax), layer_h);
std::vector<ExPolygons> slices;
slicer.slice(slicegrid, SlicingMode::Regular, CLOSING_RADIUS, &slices, []{});
slicer.slice(slicegrid, SlicingMode::Regular, &slices, []{});
point_gen.seed(0);
point_gen.execute(slices, slicegrid);

View File

@ -89,7 +89,8 @@ void test_supports(const std::string &obj_filename,
mesh.require_shared_vertices();
}
TriangleMeshSlicer slicer{&mesh};
TriangleMeshSlicer slicer{ CLOSING_RADIUS,0 };
slicer.init(&mesh, [] {});
auto bb = mesh.bounding_box();
double zmin = bb.min.z();
@ -98,7 +99,7 @@ void test_supports(const std::string &obj_filename,
auto layer_h = 0.05f;
out.slicegrid = grid(float(gnd), float(zmax), layer_h);
slicer.slice(out.slicegrid, SlicingMode::Regular, CLOSING_RADIUS, &out.model_slices, []{});
slicer.slice(out.slicegrid, SlicingMode::Regular, &out.model_slices, []{});
sla::cut_drainholes(out.model_slices, out.slicegrid, CLOSING_RADIUS, drainholes, []{});
// Create the special index-triangle mesh with spatial indexing which