PerimeterGenerator.xsp 1.5 KB

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