LayerHeightSpline.xsp 766 B

12345678910111213141516171819202122232425
  1. %module{Slic3r::XS};
  2. %{
  3. #include <xsinit.h>
  4. #include "libslic3r/LayerHeightSpline.hpp"
  5. %}
  6. %name{Slic3r::LayerHeightSpline} class LayerHeightSpline {
  7. LayerHeightSpline();
  8. Clone<LayerHeightSpline> clone()
  9. %code%{ RETVAL = THIS; %};
  10. void setObjectHeight(coordf_t object_height);
  11. bool hasData();
  12. bool setLayers(std::vector<double> layers)
  13. %code%{ RETVAL = THIS->setLayers(layers); %};
  14. bool updateLayerHeights(std::vector<double> heights)
  15. %code%{ RETVAL = THIS->updateLayerHeights(heights); %};
  16. bool layersUpdated();
  17. bool layerHeightsUpdated();
  18. void clear();
  19. std::vector<double> getOriginalLayers();
  20. std::vector<double> getInterpolatedLayers();
  21. coordf_t getLayerHeightAt(coordf_t height);
  22. };