diff options
Diffstat (limited to 'Build/source/utils/asymptote/runtime.in')
-rw-r--r-- | Build/source/utils/asymptote/runtime.in | 29 |
1 files changed, 6 insertions, 23 deletions
diff --git a/Build/source/utils/asymptote/runtime.in b/Build/source/utils/asymptote/runtime.in index 652ffcb6bff..c8b30a2efd6 100644 --- a/Build/source/utils/asymptote/runtime.in +++ b/Build/source/utils/asymptote/runtime.in @@ -1779,16 +1779,18 @@ void shipout(string prefix=emptystring, picture *f, picture *preamble=NULL, } void shipout3(string prefix, picture *f, string format=emptystring, - real width, real height, real angle, triple m, triple M, - realarray2 *t, realarray *background, triplearray *lights, - realarray2 *diffuse, realarray2 *ambient, realarray2 *specular, + real width, real height, real angle, real zoom, + triple m, triple M, pair shift, realarray2 *t, + realarray *background, triplearray *lights, realarray2 *diffuse, + realarray2 *ambient, realarray2 *specular, bool viewportlighting, bool view=true) { size_t n=checkArrays(lights,diffuse); checkEqual(n,checkArray(ambient)); checkEqual(n,checkArray(specular)); - f->shipout3(prefix,format,width,height,angle,m,M,copyArray2C(t,true,4), + f->shipout3(prefix,format,width,height,angle,zoom,m,M,shift, + copyArray2C(t,true,4), copyArrayC(background),n,copyTripleArrayC(lights), copyArray2C(diffuse,false,4),copyArray2C(ambient,false,4), copyArray2C(specular,false,4),viewportlighting,view); @@ -5019,25 +5021,6 @@ Int find(boolarray *a, Int n=1) return j; } -bool Operator ==(realarray2 *a, realarray2 *b) -{ - size_t n=checkArray(a); - if(n != checkArray(b)) return false; - - size_t n0=n == 0 ? 0 : checkArray(read<array*>(a,0)); - if(n0 != checkArray(read<array*>(b,0))) return false; - - for(size_t i=0; i < n; ++i) { - array *ai=read<array*>(a,i); - array *bi=read<array*>(b,i); - for(size_t j=0; j < n0; ++j) { - if(read<real>(ai,j) != read<real>(bi,j)) - return false; - } - } - return true; -} - // construct vector obtained by replacing those elements of b for which the // corresponding elements of a are false by the corresponding element of c. array* :arrayConditional(array *a, array *b, array *c) |