summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/drawpath3.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/drawpath3.h')
-rw-r--r--Build/source/utils/asymptote/drawpath3.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/Build/source/utils/asymptote/drawpath3.h b/Build/source/utils/asymptote/drawpath3.h
index 7e27f196d31..342019f5abe 100644
--- a/Build/source/utils/asymptote/drawpath3.h
+++ b/Build/source/utils/asymptote/drawpath3.h
@@ -20,14 +20,17 @@ protected:
bool invisible;
triple Min,Max;
Triple *controls;
+ string name;
public:
- drawPath3(path3 g, const pen&p) :
+ drawPath3(path3 g, const pen&p, const string& name) :
g(g), straight(g.piecewisestraight()), color(rgba(p)),
- invisible(p.invisible()), Min(g.min()), Max(g.max()), controls(NULL) {}
+ invisible(p.invisible()), Min(g.min()), Max(g.max()), controls(NULL),
+ name(name) {}
drawPath3(const vm::array& t, const drawPath3 *s) :
g(camp::transformed(t,s->g)), straight(s->straight), color(s->color),
- invisible(s->invisible), Min(g.min()), Max(g.max()), controls(NULL) {}
+ invisible(s->invisible), Min(g.min()), Max(g.max()), controls(NULL),
+ name(s->name) {}
virtual ~drawPath3() {
if(controls) delete controls;