diff options
author | Karl Berry <karl@freefriends.org> | 2013-05-18 21:58:51 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-05-18 21:58:51 +0000 |
commit | 1b4cb2401e932a47c4e736a0197d22c7797b58ad (patch) | |
tree | 8e478eee9868a06467931e053ec06658ae3a8e06 /Build/source/utils/asymptote/drawpath3.h | |
parent | 93dcab8a877f998aafe2bef5e59b7c6ea2f7f434 (diff) |
asy 2.22 sources
git-svn-id: svn://tug.org/texlive/trunk@30552 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, 2 insertions, 13 deletions
diff --git a/Build/source/utils/asymptote/drawpath3.h b/Build/source/utils/asymptote/drawpath3.h index 80c86ae2c03..ae9c6321de3 100644 --- a/Build/source/utils/asymptote/drawpath3.h +++ b/Build/source/utils/asymptote/drawpath3.h @@ -127,22 +127,11 @@ public: } drawNurbsPath3(const double* t, const drawNurbsPath3 *s) : - degree(s->degree), n(s->n), color(s->color), invisible(s->invisible) { + 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); - if(s->weights) { - weights=new(UseGC) double[n]; - for(size_t i=0; i < n; ++i) - weights[i]=s->weights[i]; - } else weights=NULL; - - size_t nknots=degree+n+1; - knots=new(UseGC) double[nknots]; - - for(size_t i=0; i < nknots; ++i) - knots[i]=s->knots[i]; - #ifdef HAVE_GL Controls=NULL; #endif |