Turn ExtrusionLoop into a collection of polylines. Includes some changes to the Polygon API to avoid returning newly allocatd objects

This commit is contained in:
Alessandro Ranellucci 2014-05-07 12:02:09 +02:00
parent c72dc13d7e
commit d2d885fc53
11 changed files with 107 additions and 72 deletions

View file

@ -73,14 +73,18 @@ class ExtrusionPath : public ExtrusionEntity
class ExtrusionLoop : public ExtrusionEntity
{
public:
Polylines polylines;
ExtrusionLoop(const Polygon &polygon, ExtrusionRole role);
ExtrusionLoop* clone() const;
Polygon polygon;
ExtrusionPath* split_at_index(int index) const;
ExtrusionPath* split_at_first_point() const;
void split_at_index(int index, ExtrusionPath* path) const;
void split_at_first_point(ExtrusionPath* path) const;
bool make_counter_clockwise();
void reverse();
Point first_point() const;
Point last_point() const;
void set_polygon(const Polygon &polygon);
void polygon(Polygon* polygon) const;
};
}