Boolean_4.result().subResult(3).setColor(102, 204, 102)
Boolean_4.result().subResult(4).setColor(204, 204, 0)
-Union_1 = model.addUnion(Part_1_doc, [model.selection("SOLID", "Boolean_4_1_4"), model.selection("SOLID", "Boolean_4_1_3")])
+Union_1 = model.addUnion(Part_1_doc, [model.selection("SOLID", "Boolean_4_1_4"), model.selection("SOLID", "Boolean_4_1_2")])
Point_3 = model.addPoint(Part_1_doc, model.selection("EDGE", "Axis_1"), model.selection("FACE", "Plane_2 arrivee tuyau"))
bool isLess(const gp_Pnt& theLHS, const gp_Pnt& theRHS)
{
+ static const double aTol = 10. * Precision::Confusion();
for (int anIndex = 1; anIndex <= 3; ++anIndex) {
- if (isLessWithTol(theLHS.Coord(anIndex), theRHS.Coord(anIndex), Precision::Confusion()))
+ if (isLessWithTol(theLHS.Coord(anIndex), theRHS.Coord(anIndex), aTol))
return true;
- else if (isLessWithTol(theRHS.Coord(anIndex), theLHS.Coord(anIndex), Precision::Confusion()))
+ else if (isLessWithTol(theRHS.Coord(anIndex), theLHS.Coord(anIndex), aTol))
return false;
}
// equal points