fix a bug in boolean algorithm

This commit is contained in:
Val Erastov 2017-01-17 22:45:27 -08:00
parent 2ea90ddce3
commit c516d6548f

View file

@ -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");