diff options
author | Karl Berry <karl@freefriends.org> | 2010-06-08 13:46:05 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-06-08 13:46:05 +0000 |
commit | a960e44eb527236f39aec81babc0474911a86078 (patch) | |
tree | 9950eca71791d90820a80a521a7cc252c0955db5 /Build/source/utils/asymptote/drawpath3.h | |
parent | 6443467452320c296faa1f43f0606a9457bd4463 (diff) |
asy 1.96
git-svn-id: svn://tug.org/texlive/trunk@18817 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/drawpath3.h')
-rw-r--r-- | Build/source/utils/asymptote/drawpath3.h | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/Build/source/utils/asymptote/drawpath3.h b/Build/source/utils/asymptote/drawpath3.h index d267a93b734..97801cdc452 100644 --- a/Build/source/utils/asymptote/drawpath3.h +++ b/Build/source/utils/asymptote/drawpath3.h @@ -19,18 +19,14 @@ protected: RGBAColour color; bool invisible; triple Min,Max; - Triple *controls; - string name; public: - drawPath3(path3 g, const pen& p, const string& name) : + drawPath3(path3 g, const pen& p) : g(g), straight(g.piecewisestraight()), color(rgba(p)), - invisible(p.invisible()), Min(g.min()), Max(g.max()), controls(NULL), - name(name) {} + invisible(p.invisible()), Min(g.min()), Max(g.max()) {} 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), - name(s->name) {} + invisible(s->invisible), Min(g.min()), Max(g.max()) {} virtual ~drawPath3() {} @@ -49,8 +45,8 @@ public: } else b=pair(m(b.getx(),z.getx()),m(b.gety(),z.gety())); } - bool write(prcfile *out, unsigned int *count, vm::array *index, - vm::array *origin); + bool write(prcfile *out, unsigned int *, vm::array *, vm::array *, double, + groupsmap&); void render(GLUnurbs*, double, const triple&, const triple&, double, bool transparent); @@ -67,7 +63,6 @@ protected: double *knots; RGBAColour color; bool invisible; - string name; triple Min,Max; #ifdef HAVE_GL @@ -77,8 +72,8 @@ protected: public: drawNurbsPath3(const vm::array& g, const vm::array* knot, - const vm::array* weight, const pen& p, const string& name) : - color(rgba(p)), invisible(p.invisible()), name(name) { + const vm::array* weight, const pen& p) : + color(rgba(p)), invisible(p.invisible()) { size_t weightsize=checkArray(weight); string wrongsize="Inconsistent NURBS data"; @@ -115,8 +110,7 @@ public: } drawNurbsPath3(const vm::array& t, const drawNurbsPath3 *s) : - degree(s->degree), n(s->n), color(s->color), invisible(s->invisible), - name(s->name) { + degree(s->degree), n(s->n), color(s->color), invisible(s->invisible) { controls=new(UseGC) Triple[n]; for(size_t i=0; i < n; ++i) { @@ -150,8 +144,8 @@ public: virtual ~drawNurbsPath3() {} - bool write(prcfile *out, unsigned int *count, vm::array *index, - vm::array *origin); + bool write(prcfile *out, unsigned int *, vm::array *, vm::array *, double, + groupsmap&); void displacement(); void ratio(pair &b, double (*m)(double, double), double fuzz, bool &first); |