diff options
author | Norbert Preining <norbert@preining.info> | 2022-01-08 03:01:04 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-01-08 03:01:04 +0000 |
commit | cd2e7ab7ef89a5c3c1935281009729bff0f357e2 (patch) | |
tree | b2cb311dd3561c52157b2482d6558f9ef76f7136 /graphics/asymptote/v3dfile.cc | |
parent | f69513397ac0e1f02c6b4a5f50588d411413271a (diff) |
CTAN sync 202201080301
Diffstat (limited to 'graphics/asymptote/v3dfile.cc')
-rw-r--r-- | graphics/asymptote/v3dfile.cc | 12 |
1 files changed, 6 insertions, 6 deletions
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; } } |