2015-07-23 13:53:02 +00:00
|
|
|
%module{Slic3r::XS};
|
|
|
|
|
|
|
|
%{
|
2015-12-07 23:39:54 +00:00
|
|
|
#include <xsinit.h>
|
2015-07-23 13:53:02 +00:00
|
|
|
#include "libslic3r/PerimeterGenerator.hpp"
|
2020-05-26 12:34:07 +00:00
|
|
|
#include "libslic3r/Layer.hpp"
|
2015-07-23 13:53:02 +00:00
|
|
|
%}
|
|
|
|
|
|
|
|
%name{Slic3r::Layer::PerimeterGenerator} class PerimeterGenerator {
|
|
|
|
PerimeterGenerator(SurfaceCollection* slices, double layer_height, Flow* flow,
|
2015-12-16 11:33:19 +00:00
|
|
|
StaticPrintConfig* region_config, StaticPrintConfig* object_config,
|
|
|
|
StaticPrintConfig* print_config, ExtrusionEntityCollection* loops,
|
2016-09-26 11:44:23 +00:00
|
|
|
ExtrusionEntityCollection* gap_fill,
|
2016-11-17 22:22:59 +00:00
|
|
|
SurfaceCollection* fill_surfaces)
|
2015-07-23 13:53:02 +00:00
|
|
|
%code{% RETVAL = new PerimeterGenerator(slices, layer_height, *flow,
|
2015-12-16 11:33:19 +00:00
|
|
|
dynamic_cast<PrintRegionConfig*>(region_config),
|
|
|
|
dynamic_cast<PrintObjectConfig*>(object_config),
|
|
|
|
dynamic_cast<PrintConfig*>(print_config),
|
2020-12-09 13:07:22 +00:00
|
|
|
false,
|
2016-11-17 22:22:59 +00:00
|
|
|
loops, gap_fill, fill_surfaces); %};
|
2015-07-23 13:53:02 +00:00
|
|
|
~PerimeterGenerator();
|
|
|
|
|
|
|
|
void set_lower_slices(ExPolygonCollection* lower_slices)
|
2019-10-01 15:17:08 +00:00
|
|
|
%code{% THIS->lower_slices = &lower_slices->expolygons; %};
|
2015-07-23 13:53:02 +00:00
|
|
|
void set_layer_id(int layer_id)
|
|
|
|
%code{% THIS->layer_id = layer_id; %};
|
|
|
|
void set_perimeter_flow(Flow* flow)
|
|
|
|
%code{% THIS->perimeter_flow = *flow; %};
|
|
|
|
void set_ext_perimeter_flow(Flow* flow)
|
|
|
|
%code{% THIS->ext_perimeter_flow = *flow; %};
|
|
|
|
void set_overhang_flow(Flow* flow)
|
|
|
|
%code{% THIS->overhang_flow = *flow; %};
|
|
|
|
void set_solid_infill_flow(Flow* flow)
|
|
|
|
%code{% THIS->solid_infill_flow = *flow; %};
|
|
|
|
|
2015-12-16 11:33:19 +00:00
|
|
|
Ref<StaticPrintConfig> config()
|
2015-07-23 13:53:02 +00:00
|
|
|
%code{% RETVAL = THIS->config; %};
|
|
|
|
|
2022-05-30 06:19:50 +00:00
|
|
|
void process_classic();
|
2015-07-23 13:53:02 +00:00
|
|
|
};
|