mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-22 06:04:01 -06:00
Fixed Polygon::centroid()
Ported Polygon unit tests from Perl to C++.
This commit is contained in:
parent
48cc1e6e34
commit
52b3c655ff
4 changed files with 122 additions and 87 deletions
|
@ -78,6 +78,9 @@ public:
|
|||
bool is_closed() const { return this->points.front() == this->points.back(); }
|
||||
};
|
||||
|
||||
inline bool operator==(const Polyline &lhs, const Polyline &rhs) { return lhs.points == rhs.points; }
|
||||
inline bool operator!=(const Polyline &lhs, const Polyline &rhs) { return lhs.points != rhs.points; }
|
||||
|
||||
// Don't use this class in production code, it is used exclusively by the Perl binding for unit tests!
|
||||
#ifdef PERL_UCHAR_MIN
|
||||
class PolylineCollection
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue