~ubuntu-branches/ubuntu/utopic/slic3r/utopic

« back to all changes in this revision

Viewing changes to xs/src/ExPolygonCollection.hpp

  • Committer: Package Import Robot
  • Author(s): Chow Loong Jin
  • Date: 2014-06-17 01:27:26 UTC
  • Revision ID: package-import@ubuntu.com-20140617012726-2wrs4zdo251nr4vg
Tags: upstream-1.1.4+dfsg
ImportĀ upstreamĀ versionĀ 1.1.4+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef slic3r_ExPolygonCollection_hpp_
 
2
#define slic3r_ExPolygonCollection_hpp_
 
3
 
 
4
#include <myinit.h>
 
5
#include "ExPolygon.hpp"
 
6
 
 
7
namespace Slic3r {
 
8
 
 
9
class ExPolygonCollection
 
10
{
 
11
    public:
 
12
    ExPolygons expolygons;
 
13
    operator Polygons() const;
 
14
    void scale(double factor);
 
15
    void translate(double x, double y);
 
16
    void rotate(double angle, const Point &center);
 
17
    bool contains_point(const Point &point) const;
 
18
    void simplify(double tolerance);
 
19
    void convex_hull(Polygon* hull) const;
 
20
};
 
21
 
 
22
}
 
23
 
 
24
#endif