But still draw the edges when the faces are coplanar, if the faces

are different colors.

[git-p4: depot-paths = "//depot/solvespace/": change = 1842]
This commit is contained in:
Jonathan Westhues 2008-07-15 23:08:39 -08:00
parent 3765175ec3
commit 98b0f65cea

View File

@ -594,7 +594,9 @@ void SKdNode::FindEdgeOn(Vector a, Vector b, int *n, int *nOther,
{ {
(*n)++; (*n)++;
if(tr->meta.face != m.face) { 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 }, hEntity hf0 = { tr->meta.face },
hf1 = { m.face }; hf1 = { m.face };
Entity *f0 = SS.GetEntity(hf0), Entity *f0 = SS.GetEntity(hf0),