diff options
author | Karl Berry <karl@freefriends.org> | 2016-02-07 00:27:20 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-02-07 00:27:20 +0000 |
commit | 0f5e19a268f4d86c2897f590563f21c8277c18d1 (patch) | |
tree | 7e65891f29ccde62ed60cbcc94e7fb7631429ac2 /Build/source/utils/asymptote/drawpath3.h | |
parent | 1b8f7f1bf982c75d77d85ac6855d48332cd41ca4 (diff) |
asy 2.36 sources
git-svn-id: svn://tug.org/texlive/trunk@39610 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/drawpath3.h')
-rw-r--r-- | Build/source/utils/asymptote/drawpath3.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Build/source/utils/asymptote/drawpath3.h b/Build/source/utils/asymptote/drawpath3.h index ae9c6321de3..900cdf2e080 100644 --- a/Build/source/utils/asymptote/drawpath3.h +++ b/Build/source/utils/asymptote/drawpath3.h @@ -17,7 +17,7 @@ protected: const path3 g; triple center; bool straight; - RGBAColour color; + prc::RGBAColour color; bool invisible; Interaction interaction; triple Min,Max; @@ -75,10 +75,10 @@ class drawNurbsPath3 : public drawElement { protected: size_t degree; size_t n; - Triple *controls; + triple *controls; double *weights; double *knots; - RGBAColour color; + prc::RGBAColour color; bool invisible; triple Min,Max; @@ -99,11 +99,11 @@ public: if(n == 0 || (weightsize != 0 && weightsize != n)) reportError(wrongsize); - controls=new(UseGC) Triple[n]; + controls=new(UseGC) triple[n]; size_t k=0; for(size_t i=0; i < n; ++i) - store(controls[k++],vm::read<triple>(g,i)); + controls[k++]=vm::read<triple>(g,i); if(weightsize > 0) { size_t k=0; @@ -129,8 +129,9 @@ public: drawNurbsPath3(const double* t, const drawNurbsPath3 *s) : degree(s->degree), n(s->n), weights(s->weights), knots(s->knots), color(s->color), invisible(s->invisible) { - controls=new(UseGC) Triple[n]; - transformTriples(t,n,controls,s->controls); + controls=new(UseGC) triple[n]; + for(unsigned int i=0; i < n; ++i) + controls[i]=t*s->controls[i]; #ifdef HAVE_GL Controls=NULL; |