From 98b0f65ceac100bf096ffa42267feeaa6a962b7d Mon Sep 17 00:00:00 2001 From: Jonathan Westhues Date: Tue, 15 Jul 2008 23:08:39 -0800 Subject: [PATCH] But still draw the edges when the faces are coplanar, if the faces are different colors. [git-p4: depot-paths = "//depot/solvespace/": change = 1842] --- mesh.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mesh.cpp b/mesh.cpp index e72482e..d9cdab6 100644 --- a/mesh.cpp +++ b/mesh.cpp @@ -594,7 +594,9 @@ void SKdNode::FindEdgeOn(Vector a, Vector b, int *n, int *nOther, { (*n)++; if(tr->meta.face != m.face) { - if(tr->meta.face != 0 && m.face != 0) { + if(tr->meta.color == m.color && + tr->meta.face != 0 && m.face != 0) + { hEntity hf0 = { tr->meta.face }, hf1 = { m.face }; Entity *f0 = SS.GetEntity(hf0),