0028567: Get rid of the unused DRAW commands based on old Boolean Operations (BRepAlgo)
[occt.git] / src / QABugs / QABugs_3.cxx
index 15c9c44..2bc7615 100644 (file)
@@ -288,45 +288,6 @@ static Standard_Integer BUC60652(Draw_Interpretor& di, Standard_Integer argc, co
   return 0; 
 }
 
-#include <BRepAlgo_BooleanOperations.hxx>
-  
-static Standard_Integer defNbPntMax = 30;
-static Standard_Real defTol3d = 1.e-7;
-static Standard_Real defTol2d = 1.e-7;
-Standard_Integer NbPntMax = defNbPntMax;
-Standard_Real Toler3d =defTol3d;
-Standard_Real Toler2d = defTol2d;
-//              //== // ksection : operateur section appelant BRepAlgo_BooleanOperation
-//== // ksection : operateur section appelant BRepAlgo_BooleanOperations
-//=======================================================================
-Standard_Integer ksection(Draw_Interpretor& di, Standard_Integer n, const char ** a) {
-  if (n < 8) {
-    di << "Usage : " << a[0] << " resultat shell1 shell2 NbPntMax Toler3d Toler2d"   << "\n";
-    return -1;
-  }
-  // a[1]= resultat
-  // a[2]= shell1
-  // a[3]= shell2
-  // a[4]= NbPntMax
-  // a[5]= Toler3d
-  // a[6]= Toler2d
-  TopoDS_Shape s1 = DBRep::Get(a[2],TopAbs_SHELL);
-  TopoDS_Shape s2 = DBRep::Get(a[3],TopAbs_SHELL);
-  if (s1.IsNull() || s2.IsNull()) return 1;
-  NbPntMax=Draw::Atoi(a[4]);
-  Toler3d=Draw::Atof(a[5]);
-  Toler2d=Draw::Atof(a[6]);
-
-  di << "BRepAlgo_BooleanOperations myalgo\n";
-  BRepAlgo_BooleanOperations myalgo;
-
-  myalgo.Shapes(s1, s2);
-  myalgo.SetApproxParameters(NbPntMax,Toler3d,Toler2d);
-  TopoDS_Shape res; res = myalgo.Section();
-  DBRep::Set(a[1],res);
-  return 0;
-}
-
 #include <Geom_Axis2Placement.hxx>
 #include <AIS_Trihedron.hxx>
 
@@ -471,6 +432,7 @@ switch (argc){
 return 0;
 }
 
+#include <Bnd_BoundSortBox.hxx>
 #include <BRepBndLib.hxx>
 #include <Bnd_HArray1OfBox.hxx>
   
@@ -1719,10 +1681,6 @@ void QABugs::Commands_3(Draw_Interpretor& theCommands) {
   theCommands.Add("BUC60609","BUC60609 shape name [U V]",__FILE__,BUC60609,group);
   theCommands.Add("BUC60632","BUC60632 mode length",__FILE__,BUC60632,group);
   theCommands.Add("BUC60652","BUC60652 face",__FILE__,BUC60652,group);
-  theCommands.Add("ksection","ksection resultat shell1 shell2 NbPntMax Toler3d Toler2d",__FILE__,ksection,group);
-  theCommands.Add("BUC60682","ksection resultat shell1 shell2 NbPntMax Toler3d Toler2d",__FILE__,ksection,group);  
-  theCommands.Add("BUC60669","ksection resultat shell1 shell2 NbPntMax Toler3d Toler2d",__FILE__,ksection,group);  
-  theCommands.Add("PRO19626","ksection resultat shell1 shell2 NbPntMax Toler3d Toler2d",__FILE__,ksection,group);  
   theCommands.Add("BUC60574","BUC60574 ",__FILE__,BUC60574,group);
 
   theCommands.Add("GER61351","GER61351 name/object name/r g b/object r g b",__FILE__,setcolor,group);