mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-06 20:19:05 +08:00
Fix: Orientation() has been declared inline, therefore not exported.
This commit is contained in:
parent
90a415ae10
commit
c2ee73d211
@ -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();
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user