diff options
author | Karl Berry <karl@freefriends.org> | 2010-06-19 21:53:18 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-06-19 21:53:18 +0000 |
commit | ff7dc2bdbd29efcbe2ac2d32ad4a5c742b10e9f0 (patch) | |
tree | ab0e5d781b94e916de3c1c3ba3ddfc99b433ecff /Master/texmf/asymptote/three_surface.asy | |
parent | 8e2fd6e5b54cd27c07a470078019ad68243efbc8 (diff) |
asymptote 1.99
git-svn-id: svn://tug.org/texlive/trunk@19067 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/asymptote/three_surface.asy')
-rw-r--r-- | Master/texmf/asymptote/three_surface.asy | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Master/texmf/asymptote/three_surface.asy b/Master/texmf/asymptote/three_surface.asy index c4f05c7882f..6d0c54d2479 100644 --- a/Master/texmf/asymptote/three_surface.asy +++ b/Master/texmf/asymptote/three_surface.asy @@ -10,7 +10,7 @@ private real Fuzz=10.0*realEpsilon; private real nineth=1/9; struct patch { - triple[][] P=new triple[4][4]; + triple[][] P; triple[] normals; // Optionally specify 4 normal vectors at the corners. pen[] colors; // Optionally specify 4 corner colors. bool straight; // Patch is based on a piecewise straight external path. @@ -186,9 +186,9 @@ struct patch { void operator init(triple[][] P, triple[] normals=new triple[], pen[] colors=new pen[], bool straight=false, - bool3 planar=default) { + bool3 planar=default, bool copy=true) { init(); - this.P=copy(P); + this.P=copy ? copy(P) : P; if(normals.length != 0) this.normals=copy(normals); if(colors.length != 0) @@ -306,6 +306,7 @@ struct patch { patch operator * (transform3 t, patch s) { patch S; + S.P=new triple[4][4]; for(int i=0; i < 4; ++i) { triple[] si=s.P[i]; triple[] Si=S.P[i]; |