X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FQABugs%2FQABugs_3.cxx;h=2bc76152f0dd555cc36b1cb7394fe9833c25e5e1;hp=15c9c4445aacf462b5267a60253eb93e59bc3913;hb=e45b5ff7f2355c2eb8fe4dc34f05338102614332;hpb=8b956afe8ee9707838020769da14fdd2ce4f47fe diff --git a/src/QABugs/QABugs_3.cxx b/src/QABugs/QABugs_3.cxx index 15c9c4445a..2bc76152f0 100644 --- a/src/QABugs/QABugs_3.cxx +++ b/src/QABugs/QABugs_3.cxx @@ -288,45 +288,6 @@ static Standard_Integer BUC60652(Draw_Interpretor& di, Standard_Integer argc, co return 0; } -#include - -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 #include @@ -471,6 +432,7 @@ switch (argc){ return 0; } +#include #include #include @@ -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);