5 |
namespace Fillet { |
namespace Fillet { |
6 |
PREDBGVAR(dbg); |
PREDBGVAR(dbg); |
7 |
|
|
8 |
|
struct Vertex { |
9 |
|
bool sharp; |
10 |
|
bool lineAfter; |
11 |
|
ZPt p; |
12 |
|
} |
13 |
|
|
14 |
/** A generic shape: polylines. |
/** A generic shape: polylines. |
15 |
*/ |
*/ |
16 |
class Shape { |
class Shape { |
17 |
vector<ZPt> points; |
vector<Vertex> points; |
|
// Vector of indices after which there is no edge |
|
18 |
|
|
19 |
public: |
public: |
20 |
Shape transform(CoordSys *t, float dicefudge = 1); |
/** Cut after the vertex i, by inserting two vertices |
21 |
|
* after it, without a line between them. |
22 |
|
*/ |
23 |
|
void cutAfter(int i, float end, float begin); |
24 |
|
// Shape transform(CoordSys *t, float dicefudge = 1); |
25 |
} |
} |
26 |
} |
} |