Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'xs/src/ZTable.hpp')
-rw-r--r--xs/src/ZTable.hpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/xs/src/ZTable.hpp b/xs/src/ZTable.hpp
new file mode 100644
index 000000000..045722eec
--- /dev/null
+++ b/xs/src/ZTable.hpp
@@ -0,0 +1,24 @@
+#ifndef slic3r_ZTable_hpp_
+#define slic3r_ZTable_hpp_
+
+extern "C" {
+#include "EXTERN.h"
+#include "perl.h"
+#include "XSUB.h"
+#include "ppport.h"
+}
+
+class ZTable
+{
+ public:
+ ZTable(std::vector<unsigned int>* z_array);
+ std::vector<unsigned int> get_range(unsigned int min_z, unsigned int max_z);
+ std::vector<unsigned int> z;
+};
+
+ZTable::ZTable(std::vector<unsigned int>* ztable) :
+ z(*ztable)
+{
+}
+
+#endif