summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/picture.cc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-08-10 16:06:35 +0000
committerKarl Berry <karl@freefriends.org>2019-08-10 16:06:35 +0000
commitbbb53f06c6f48d4c675d250829032e09f4065a86 (patch)
tree0583c905a5d67f3e1447456048b2e479311e4e83 /Build/source/utils/asymptote/picture.cc
parentefd1dbbaa1332a9534c25024a0c295f423714851 (diff)
asy 2.52 sources
git-svn-id: svn://tug.org/texlive/trunk@51856 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/picture.cc')
-rw-r--r--Build/source/utils/asymptote/picture.cc25
1 files changed, 14 insertions, 11 deletions
diff --git a/Build/source/utils/asymptote/picture.cc b/Build/source/utils/asymptote/picture.cc
index f7582a7dca7..c59c28e91b4 100644
--- a/Build/source/utils/asymptote/picture.cc
+++ b/Build/source/utils/asymptote/picture.cc
@@ -1176,17 +1176,23 @@ bool picture::shipout(picture *preamble, const string& Prefix,
// render viewport with width x height pixels.
void picture::render(double size2, const triple& Min, const triple& Max,
- double perspective, bool transparent) const
+ double perspective, bool transparent, bool remesh) const
{
- for(nodelist::const_iterator p=nodes.begin(); p != nodes.end(); ++p) {
- assert(*p);
- (*p)->render(size2,Min,Max,perspective,transparent);
+ if(remesh) {
+ for(nodelist::const_iterator p=nodes.begin(); p != nodes.end(); ++p) {
+ assert(*p);
+ (*p)->render(size2,Min,Max,perspective,transparent);
+ }
}
+
#ifdef HAVE_GL
if(transparent)
drawBezierPatch::S.drawTransparent();
- else
+ else {
drawBezierPatch::S.drawOpaque();
+ drawPath3::R.draw();
+ drawPixel::R.draw();
+ }
#endif
}
@@ -1206,7 +1212,6 @@ struct Communicate : public gc {
size_t nlights;
triple *lights;
double *diffuse;
- double *ambient;
double *specular;
bool view;
};
@@ -1222,7 +1227,7 @@ void glrenderWrapper()
#endif
glrender(com.prefix,com.pic,com.format,com.width,com.height,com.angle,
com.zoom,com.m,com.M,com.shift,com.t,com.background,com.nlights,
- com.lights,com.diffuse,com.ambient,com.specular,com.view);
+ com.lights,com.diffuse,com.specular,com.view);
#endif
}
@@ -1230,8 +1235,7 @@ bool picture::shipout3(const string& prefix, const string& format,
double width, double height, double angle, double zoom,
const triple& m, const triple& M, const pair& shift,
double *t, double *background, size_t nlights,
- triple *lights, double *diffuse, double *ambient,
- double *specular, bool view)
+ triple *lights, double *diffuse, double *specular, bool view)
{
if(getSetting<bool>("interrupt"))
return true;
@@ -1304,7 +1308,6 @@ bool picture::shipout3(const string& prefix, const string& format,
com.nlights=nlights;
com.lights=lights;
com.diffuse=diffuse;
- com.ambient=ambient;
com.specular=specular;
com.view=View;
if(Wait)
@@ -1339,7 +1342,7 @@ bool picture::shipout3(const string& prefix, const string& format,
#endif
#ifdef HAVE_GL
glrender(prefix,pic,outputformat,width,height,angle,zoom,m,M,shift,t,
- background,nlights,lights,diffuse,ambient,specular,View,oldpid);
+ background,nlights,lights,diffuse,specular,View,oldpid);
#ifdef HAVE_PTHREAD
if(glthread && !offscreen && Wait) {
pthread_cond_wait(&readySignal,&readyLock);