From d5a8c431da6a28a1e3dc94e33e04326f111b5ef5 Mon Sep 17 00:00:00 2001 From: Jonathan Westhues Date: Wed, 28 May 2008 02:37:54 -0800 Subject: [PATCH] Oops, Boolean 0 - B was equal to B with the normals flipped, not zero. [git-p4: depot-paths = "//depot/solvespace/": change = 1755] --- mesh.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mesh.cpp b/mesh.cpp index 38ab4fc..643d379 100644 --- a/mesh.cpp +++ b/mesh.cpp @@ -475,8 +475,12 @@ triangulate: SBsp3 *SBsp3::Insert(STriangle *tr, SMesh *instead) { if(!this) { - if(instead && !(instead->flipNormal)) { - instead->AddTriangle(tr->a, tr->b, tr->c); + if(instead) { + if(instead->flipNormal) { + instead->atLeastOneDiscarded = true; + } else { + instead->AddTriangle(tr->a, tr->b, tr->c); + } return NULL; }