PerimeterGenerator.xsp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. %module{Slic3r::XS};
  2. %{
  3. #include <xsinit.h>
  4. #include "libslic3r/PerimeterGenerator.hpp"
  5. #include "libslic3r/Layer.hpp"
  6. %}
  7. %name{Slic3r::Layer::PerimeterGenerator} class PerimeterGenerator {
  8. PerimeterGenerator(SurfaceCollection* slices, double layer_height, Flow* flow,
  9. StaticPrintConfig* region_config, StaticPrintConfig* object_config,
  10. StaticPrintConfig* print_config, ExtrusionEntityCollection* loops,
  11. ExtrusionEntityCollection* gap_fill,
  12. SurfaceCollection* fill_surfaces)
  13. %code{% RETVAL = new PerimeterGenerator(slices, layer_height, *flow,
  14. dynamic_cast<PrintRegionConfig*>(region_config),
  15. dynamic_cast<PrintObjectConfig*>(object_config),
  16. dynamic_cast<PrintConfig*>(print_config),
  17. false,
  18. loops, gap_fill, fill_surfaces); %};
  19. ~PerimeterGenerator();
  20. void set_lower_slices(ExPolygonCollection* lower_slices)
  21. %code{% THIS->lower_slices = &lower_slices->expolygons; %};
  22. void set_layer_id(int layer_id)
  23. %code{% THIS->layer_id = layer_id; %};
  24. void set_perimeter_flow(Flow* flow)
  25. %code{% THIS->perimeter_flow = *flow; %};
  26. void set_ext_perimeter_flow(Flow* flow)
  27. %code{% THIS->ext_perimeter_flow = *flow; %};
  28. void set_overhang_flow(Flow* flow)
  29. %code{% THIS->overhang_flow = *flow; %};
  30. void set_solid_infill_flow(Flow* flow)
  31. %code{% THIS->solid_infill_flow = *flow; %};
  32. Ref<StaticPrintConfig> config()
  33. %code{% RETVAL = THIS->config; %};
  34. void process_classic();
  35. };