Fix for the cases.
Small correction test cases
void BOPAlgo_Builder::PostTreat()
{
//BRepLib::SameParameter(myShape, 1.e-7, Standard_True);
void BOPAlgo_Builder::PostTreat()
{
//BRepLib::SameParameter(myShape, 1.e-7, Standard_True);
- BOPTools_AlgoTools::CorrectTolerances(myShape, 0.01);
+ BOPTools_AlgoTools::CorrectTolerances(myShape, 0.05);
BOPTools_AlgoTools::CorrectShapeTolerances(myShape);
}
BOPTools_AlgoTools::CorrectShapeTolerances(myShape);
}
void BOPInt_ShrunkRange::Perform()
{
Standard_Real aCF, aCL, aTolE, aTolV1, aTolV2, t1, t11, t1C, t2, t12, t2C;
void BOPInt_ShrunkRange::Perform()
{
Standard_Real aCF, aCL, aTolE, aTolV1, aTolV2, t1, t11, t1C, t2, t12, t2C;
- Standard_Real aCoeff, dt1, dt2, aR;
+ Standard_Real aCoeff, dt1, dt2, aR, anEps;
Standard_Integer pri;
Standard_Boolean bInf1, bInf2, bAppr;
GeomAbs_CurveType aCurveType;
Standard_Integer pri;
Standard_Boolean bInf1, bInf2, bAppr;
GeomAbs_CurveType aCurveType;
myErrorStatus=0;
myTS1=-99;
myTS2=myTS1;
myErrorStatus=0;
myTS1=-99;
myTS2=myTS1;
//
aTolE =BRep_Tool::Tolerance(myEdge);
aTolV1=BRep_Tool::Tolerance(myV1);
//
aTolE =BRep_Tool::Tolerance(myEdge);
aTolV1=BRep_Tool::Tolerance(myV1);
}
//
bAppr = (fabs(t2 - t1) > 100) ? Standard_False : Standard_True;
}
//
bAppr = (fabs(t2 - t1) > 100) ? Standard_False : Standard_True;
- if (fabs(t2 - t1) < Precision::PConfusion()) {
+ if (fabs(t2 - t1) < anEps) {
myErrorStatus=7;
return;
}
myErrorStatus=7;
return;
}
t2C=t1C+0.1*(t2-t1C);
}
//
t2C=t1C+0.1*(t2-t1C);
}
//
- if (t2C-t1C < Precision::PConfusion()) {
myErrorStatus = 7;
return;
}
myErrorStatus = 7;
return;
}
-puts "TODO #23749 ALL: Exception"
-puts "TODO #23749 ALL: An exception was caught"
-puts "TODO #23749 ALL: TEST INCOMPLETE"
+#puts "TODO #23749 ALL: Exception"
+#puts "TODO #23749 ALL: An exception was caught"
+#puts "TODO #23749 ALL: TEST INCOMPLETE"
restore [locate_data_file lh3d_px1.brep] a
restore [locate_data_file lh3d_px1.brep] a
-puts "TODO #23749 ALL: Faulty shapes in variables faulty_1 to faulty_"
+#puts "TODO #23749 ALL: Faulty shapes in variables faulty_1 to faulty_"
cpulimit 2000
restore [locate_data_file lh3d_px2.brep] a
cpulimit 2000
restore [locate_data_file lh3d_px2.brep] a
-puts "TODO OCC12345 ALL: Faulty shapes in variables faulty_1 to faulty_"
-puts "TODO OCC12345 ALL: Error : The square of result shape is"
+#puts "TODO OCC12345 ALL: Faulty shapes in variables faulty_1 to faulty_"
+#puts "TODO OCC12345 ALL: Error : The square of result shape is"
puts "========"
puts "OCC726"
puts "========"
puts "OCC726"