From cd2e7ab7ef89a5c3c1935281009729bff0f357e2 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Sat, 8 Jan 2022 03:01:04 +0000 Subject: CTAN sync 202201080301 --- graphics/asymptote/v3dfile.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'graphics/asymptote/v3dfile.cc') diff --git a/graphics/asymptote/v3dfile.cc b/graphics/asymptote/v3dfile.cc index d8eebab50c..6eb7768051 100644 --- a/graphics/asymptote/v3dfile.cc +++ b/graphics/asymptote/v3dfile.cc @@ -217,26 +217,26 @@ void v3dfile::addTriangles(size_t nP, triple const* P, size_t nN, triple const* getXDRFile() << (uint32_t) nN; addTriples(N,nN); - bool explicitNI=true; + bool explicitNI=false; for(size_t i=0; i < nI; ++i) { const uint32_t *PIi=PI[i]; const uint32_t *NIi=NI[i]; - if(!distinct(NIi,PIi)) { - explicitNI=false; + if(distinct(NIi,PIi)) { + explicitNI=true; break; } } getXDRFile() << (uint32_t) explicitNI; getXDRFile() << (uint32_t) nC; - bool explicitCI=true; + bool explicitCI=false; if(nC) { addColors(C,nC); for(size_t i=0; i < nI; ++i) { const uint32_t *PIi=PI[i]; const uint32_t *CIi=CI[i]; - if(!distinct(CIi,PIi)) { - explicitNI=false; + if(distinct(CIi,PIi)) { + explicitNI=true; break; } } -- cgit v1.2.3