mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 22:54:08 -06:00
Rewrote Fill2.pm to C++, deleted Perl infills for good.
Removed dependency on Perl Math::PlanePath module. Fixed compilation with Visual Studio and SLIC3R_DEBUG: Visual Studio older than 2015 does not support the prinf type specifier %zu. Use %Iu instead. C++11 move semantics enabled.
This commit is contained in:
parent
3a31d37d35
commit
95ede7c4b8
49 changed files with 628 additions and 1803 deletions
|
@ -761,10 +761,13 @@ sub generate_toolpaths {
|
|||
# Allocate the fillers exclusively in the worker threads! Don't allocate them at the main thread,
|
||||
# as Perl copies the C++ pointers by default, so then the C++ objects are shared between threads!
|
||||
my %fillers = (
|
||||
interface => $object->fill_maker2->filler('rectilinear'),
|
||||
support => $object->fill_maker2->filler($pattern),
|
||||
interface => Slic3r::Filler->new_from_type('rectilinear'),
|
||||
support => Slic3r::Filler->new_from_type($pattern),
|
||||
);
|
||||
|
||||
my $bounding_box = $object->bounding_box;
|
||||
$fillers{interface}->set_bounding_box($object->bounding_box);
|
||||
$fillers{support}->set_bounding_box($object->bounding_box);
|
||||
|
||||
# interface and contact infill
|
||||
if (@$interface || @$contact_infill) {
|
||||
$fillers{interface}->set_angle($interface_angle);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue