mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 13:02:39 -07:00
Reduction on compiler warnings, mainly on MSVC.
Fix of the new gap_fill_enable flag: Take it into account when comparing regions.
This commit is contained in:
@@ -126,7 +126,7 @@ TEST_CASE("Fill: Pattern Path Length", "[Fill]") {
|
||||
filler->angle = 0;
|
||||
|
||||
Surface surface(stTop, expolygon);
|
||||
auto flow = Slic3r::Flow(0.69, 0.4, 0.50);
|
||||
auto flow = Slic3r::Flow(0.69f, 0.4f, 0.50f);
|
||||
|
||||
FillParams fill_params;
|
||||
fill_params.density = 1.0;
|
||||
@@ -435,7 +435,7 @@ bool test_if_solid_surface_filled(const ExPolygon& expolygon, double flow_spacin
|
||||
filler->bounding_box = get_extents(expolygon.contour);
|
||||
filler->angle = float(angle);
|
||||
|
||||
Flow flow(flow_spacing, 0.4, flow_spacing);
|
||||
Flow flow(float(flow_spacing), 0.4f, float(flow_spacing));
|
||||
filler->spacing = flow.spacing();
|
||||
|
||||
FillParams fill_params;
|
||||
|
||||
@@ -12,7 +12,7 @@ TEST_CASE("Overhanging point should be supported", "[SupGen]") {
|
||||
|
||||
// Pyramid with 45 deg slope
|
||||
TriangleMesh mesh = make_pyramid(10.f, 10.f);
|
||||
mesh.rotate_y(PI);
|
||||
mesh.rotate_y(float(PI));
|
||||
mesh.require_shared_vertices();
|
||||
mesh.WriteOBJFile("Pyramid.obj");
|
||||
|
||||
@@ -81,7 +81,7 @@ TEST_CASE("Overhanging edge should be supported", "[SupGen]") {
|
||||
float width = 10.f, depth = 10.f, height = 5.f;
|
||||
|
||||
TriangleMesh mesh = make_prism(width, depth, height);
|
||||
mesh.rotate_y(PI); // rotate on its back
|
||||
mesh.rotate_y(float(PI)); // rotate on its back
|
||||
mesh.translate(0., 0., height);
|
||||
mesh.require_shared_vertices();
|
||||
mesh.WriteOBJFile("Prism.obj");
|
||||
|
||||
Reference in New Issue
Block a user