PrusaSlicer-NonPlainar/xs/src/MultiPoint.hpp

37 lines
754 B
C++
Raw Normal View History

#ifndef slic3r_MultiPoint_hpp_
#define slic3r_MultiPoint_hpp_
#include "Line.hpp"
#include "Point.hpp"
#include <algorithm>
#include <vector>
namespace Slic3r {
class MultiPoint
{
public:
Points points;
void scale(double factor);
void translate(double x, double y);
void rotate(double angle, Point* center);
void reverse();
Point* first_point() const;
virtual Point* last_point() const = 0;
virtual Lines lines() const = 0;
double length() const;
bool is_valid() const;
2013-11-22 01:16:10 +00:00
static Points _douglas_peucker(Points &points, double tolerance);
#ifdef SLIC3RXS
void from_SV(SV* poly_sv);
void from_SV_check(SV* poly_sv);
SV* to_AV();
SV* to_SV_pureperl() const;
#endif
};
}
#endif