From c516d6548f9aacf9393bf0bb56ae9966227eaf49 Mon Sep 17 00:00:00 2001 From: Val Erastov Date: Tue, 17 Jan 2017 22:45:27 -0800 Subject: [PATCH] fix a bug in boolean algorithm --- web/app/brep/operations/boolean.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/brep/operations/boolean.js b/web/app/brep/operations/boolean.js index e20714b4..893d563e 100644 --- a/web/app/brep/operations/boolean.js +++ b/web/app/brep/operations/boolean.js @@ -443,7 +443,7 @@ function intersectFaceWithEdge(face, edge, result, vertecies) { vertecies.add(edge.vertexA); vertexOfIntersection = edge.vertexA; //console.log("point A on surface"); - } if (math.areVectorsEqual(edge.vertexB.point, pointOfIntersection, TOLERANCE)) { + } else if (math.areVectorsEqual(edge.vertexB.point, pointOfIntersection, TOLERANCE)) { vertecies.add(edge.vertexB); vertexOfIntersection = edge.vertexB; //console.log("point B on surface");