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
path: root/xs
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2017-03-02 19:34:53 +0300
committerbubnikv <bubnikv@gmail.com>2017-03-03 22:39:04 +0300
commitfa4df36963343518dd0e65e6c2a94577e637b99e (patch)
tree546291df8cd4a98e91d1098c2eb7e75cdb55a8de /xs
parent5580fd64b3ea85a6fd6c924f797a35a7a5745d67 (diff)
Fix: Orientation() has been declared inline, therefore not exported.
Diffstat (limited to 'xs')
-rw-r--r--xs/src/clipper.cpp6
-rw-r--r--xs/src/clipper.hpp2
2 files changed, 1 insertions, 7 deletions
diff --git a/xs/src/clipper.cpp b/xs/src/clipper.cpp
index 1eac45a70..7ead760bf 100644
--- a/xs/src/clipper.cpp
+++ b/xs/src/clipper.cpp
@@ -285,12 +285,6 @@ inline Int128 Int128Mul (long64 lhs, long64 rhs)
// Miscellaneous global functions
//------------------------------------------------------------------------------
-inline bool Orientation(const Path &poly)
-{
- return Area(poly) >= 0;
-}
-//------------------------------------------------------------------------------
-
double Area(const Path &poly)
{
int size = (int)poly.size();
diff --git a/xs/src/clipper.hpp b/xs/src/clipper.hpp
index 11626e396..e62e27e89 100644
--- a/xs/src/clipper.hpp
+++ b/xs/src/clipper.hpp
@@ -186,8 +186,8 @@ private:
friend class Clipper; //to access AllNodes
};
-bool Orientation(const Path &poly);
double Area(const Path &poly);
+inline bool Orientation(const Path &poly) { return Area(poly) >= 0; }
int PointInPolygon(const IntPoint &pt, const Path &path);
void SimplifyPolygon(const Path &in_poly, Paths &out_polys, PolyFillType fillType = pftEvenOdd);