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:
authorEnrico Turri <enricoturri@seznam.cz>2018-01-08 15:44:10 +0300
committerEnrico Turri <enricoturri@seznam.cz>2018-01-08 15:44:10 +0300
commit0f4bec8af0d3c31741db8765fc8ed3fee437312e (patch)
tree700f277b07f38b0a1e1e7d357574d41e409e8f91 /xs/src/libslic3r/Line.hpp
parent696d420dc8017422b4a7b5b1c3c1b34f408c887d (diff)
gcode preview - first installment - wip
Diffstat (limited to 'xs/src/libslic3r/Line.hpp')
-rw-r--r--xs/src/libslic3r/Line.hpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/xs/src/libslic3r/Line.hpp b/xs/src/libslic3r/Line.hpp
index 1be508f11..514a9ca04 100644
--- a/xs/src/libslic3r/Line.hpp
+++ b/xs/src/libslic3r/Line.hpp
@@ -7,10 +7,20 @@
namespace Slic3r {
class Line;
+//############################################################################################################
+#if ENRICO_GCODE_PREVIEW
+class Line3;
+#endif // ENRICO_GCODE_PREVIEW
+//############################################################################################################
class Linef3;
class Polyline;
class ThickLine;
typedef std::vector<Line> Lines;
+//############################################################################################################
+#if ENRICO_GCODE_PREVIEW
+typedef std::vector<Line3> Lines3;
+#endif // ENRICO_GCODE_PREVIEW
+//############################################################################################################
typedef std::vector<ThickLine> ThickLines;
class Line
@@ -56,6 +66,23 @@ class ThickLine : public Line
ThickLine(Point _a, Point _b) : Line(_a, _b), a_width(0), b_width(0) {};
};
+//############################################################################################################
+#if ENRICO_GCODE_PREVIEW
+class Line3
+{
+public:
+ Point3 a;
+ Point3 b;
+
+ Line3() {}
+ Line3(const Point3& _a, const Point3& _b) : a(_a), b(_b) {}
+
+ double length() const;
+ Vector3 vector() const;
+};
+#endif // ENRICO_GCODE_PREVIEW
+//############################################################################################################
+
class Linef
{
public: