Incomplete work for porting simplify() to XS

This commit is contained in:
Alessandro Ranellucci 2013-11-21 20:25:24 +01:00
parent 7475762a27
commit 518798beb3
24 changed files with 121 additions and 41 deletions

View file

@ -21,6 +21,7 @@ class MultiPoint
virtual Lines lines() const = 0;
double length() const;
bool is_valid() const;
void simplify(double tolerance);
#ifdef SLIC3RXS
void from_SV(SV* poly_sv);
@ -28,6 +29,9 @@ class MultiPoint
SV* to_AV();
SV* to_SV_pureperl() const;
#endif
private:
static Points _douglas_peucker(Points &points, double tolerance);
};
}