From 0f5e19a268f4d86c2897f590563f21c8277c18d1 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 7 Feb 2016 00:27:20 +0000 Subject: asy 2.36 sources git-svn-id: svn://tug.org/texlive/trunk@39610 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/utils/asymptote/drawpath3.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'Build/source/utils/asymptote/drawpath3.h') 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(g,i)); + controls[k++]=vm::read(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; -- cgit v1.2.3