mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-11 06:23:08 +00:00
* SPE-2405: Add Zig Zag infill that is rectilinear infill but with a consistent pattern between layers. This Zig Zag infill is inspired by the Zig Zag infill in Cura. Change-Id: I798affa99f4b5c3bd67f47643e67530fb7c3e0cb (cherry picked from commit 2808d04d5deef6f99f9618648e46f11de03efc98) * Add Cross zag and locked-zag for shoes Ported from BambuStudio * wip * sparse infill roratation template * solid_infill_rotate_template * remove rotate_solid_infill_direction * hide sparse infill rotation template for non applicable infill pattern * hide solid_infill_rotate_template for non supported solid infill patterns * update icon * support empty string for ConfigOptionFloats deserialize * fix build errors --------- Co-authored-by: Lukáš Hejl <hejl.lukas@gmail.com>
43 lines
1.3 KiB
C++
43 lines
1.3 KiB
C++
#ifndef slic3r_FillLightning_hpp_
|
|
#define slic3r_FillLightning_hpp_
|
|
|
|
#include "FillBase.hpp"
|
|
|
|
namespace Slic3r {
|
|
|
|
class PrintObject;
|
|
|
|
namespace FillLightning {
|
|
|
|
class Generator;
|
|
// To keep the definition of Octree opaque, we have to define a custom deleter.
|
|
struct GeneratorDeleter { void operator()(Generator *p); };
|
|
using GeneratorPtr = std::unique_ptr<Generator, GeneratorDeleter>;
|
|
|
|
GeneratorPtr build_generator(const PrintObject &print_object, const std::function<void()> &throw_on_cancel_callback);
|
|
|
|
class Filler : public Slic3r::Fill
|
|
{
|
|
public:
|
|
~Filler() override = default;
|
|
bool is_self_crossing() override { return false; }
|
|
|
|
Generator *generator { nullptr };
|
|
protected:
|
|
Fill* clone() const override { return new Filler(*this); }
|
|
|
|
void _fill_surface_single(const FillParams ¶ms,
|
|
unsigned int thickness_layers,
|
|
const std::pair<float, Point> &direction,
|
|
ExPolygon expolygon,
|
|
Polylines &polylines_out) override;
|
|
|
|
// Let the G-code export reoder the infill lines.
|
|
bool no_sort() const override { return false; }
|
|
};
|
|
|
|
} // namespace FillAdaptive
|
|
} // namespace Slic3r
|
|
|
|
#endif // slic3r_FillLightning_hpp_
|