diff options
author | Lukáš Hejl <hejl.lukas@gmail.com> | 2020-08-27 14:04:53 +0300 |
---|---|---|
committer | Lukáš Hejl <hejl.lukas@gmail.com> | 2020-09-09 15:37:20 +0300 |
commit | 867681ae56f85e828fb4fc9370d43605c05f1906 (patch) | |
tree | b8d41657bd2bd56c889245bde554796128dab72d /src/libslic3r | |
parent | 14a7fbc9f70755f058d15be76318425537d3ca9b (diff) |
Fix discontinuous extrusion lines for adaptive infill
Diffstat (limited to 'src/libslic3r')
-rw-r--r-- | src/libslic3r/Fill/FillAdaptive.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libslic3r/Fill/FillAdaptive.cpp b/src/libslic3r/Fill/FillAdaptive.cpp index 96509923c..a3068989e 100644 --- a/src/libslic3r/Fill/FillAdaptive.cpp +++ b/src/libslic3r/Fill/FillAdaptive.cpp @@ -88,7 +88,7 @@ void FillAdaptive::generate_polylines( float rotation_angle = Geometry::deg2rad(120.0); - for (int i = 0; i < 3; i++) + for (int i = 0; i < polylines_out.size(); i++) { Vec3d offset = cube->center - origin; Point from_abs(from), to_abs(to); @@ -177,7 +177,7 @@ std::unique_ptr<FillAdaptive_Internal::Octree> FillAdaptive::build_octree( triangleMesh.require_shared_vertices(); } - Vec3d rotation = Vec3d(Geometry::deg2rad(225.0), Geometry::deg2rad(215.0), Geometry::deg2rad(30.0)); + Vec3d rotation = Vec3d(Geometry::deg2rad(225.0), Geometry::deg2rad(215.264), Geometry::deg2rad(30.0)); Transform3d rotation_matrix = Geometry::assemble_transform(Vec3d::Zero(), rotation, Vec3d::Ones(), Vec3d::Ones()); AABBTreeIndirect::Tree3f aabbTree = AABBTreeIndirect::build_aabb_tree_over_indexed_triangle_set(triangleMesh.its.vertices, triangleMesh.its.indices); |