%module{Slic3r::XS}; %{ #include #include "libslic3r/LayerHeightSpline.hpp" %} %name{Slic3r::LayerHeightSpline} class LayerHeightSpline { LayerHeightSpline(); Clone clone() %code%{ RETVAL = THIS; %}; void setObjectHeight(coordf_t object_height); bool hasData(); bool setLayers(std::vector layers) %code%{ RETVAL = THIS->setLayers(layers); %}; bool updateLayerHeights(std::vector heights) %code%{ RETVAL = THIS->updateLayerHeights(heights); %}; bool layersUpdated(); bool layerHeightsUpdated(); void clear(); std::vector getOriginalLayers(); std::vector getInterpolatedLayers(); coordf_t getLayerHeightAt(coordf_t height); };