mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-29 14:00:49 +03:00
0028567: Get rid of the unused DRAW commands based on old Boolean Operations (BRepAlgo)
1. Removal of the traces of the usage of old Boolean operations in BRepFeat package. 2. The DRAW commands *fubl* and *cubl* based on old Boolean operations have been removed. The alternative for these commands are the commands *bfuseblend* and *bcutblend* respectively. The last two commands are based on the modern Boolean operations. 3. The DRAW command *ksection* based on old Boolean operations has been removed. The command *bsection* should be used as alternative. Test cases which have been using the *ksection* command have been modified to use the *bsection* command. 4. The class QANewBRepNaming_BooleanOperation has been modified to use modern Boolean operations. The class QANewBRepNaming_BooleanOperation has been removed as not used. The class QANewBRepNaming_BooleanOperationFeat has been renamed to QANewBRepNaming_BooleanOperation as it has nothing to do with Feat algorithm.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user