The API classes in the package BRepAlgo providing access to old Boolean operations (Fuse, Common, Cut, Section) are marked as deprecated.
Corresponding classes from the package BRepAlgoAPI should be used instead.
(preserving most methods of V3d_Light sub-classes to simplify porting).
* Obsolete debugging functionality for drawing lights source has been removed from V3d_Light.
Methods and constructors taking parameters for this drawing and not affecting light definition itself has been also removed.
-* Light constructors taking V3d_Viewer has been marked deprecated.
+* Light constructors taking V3d_Viewer have been marked deprecated.
Application may call V3d_Viewer::AddLight() explicitly to register new light sources created by new constructors within V3d_Viewer, but this step is now optional.
* The upper limit of 8 light sources has been removed.
* Dedicated classes per light source type V3d_AmbientLight, V3d_DirectionalLight, V3d_PositionalLight and V3d_SpotLight have been preserved,
The following public methods of the *BOPAlgo_BuilderSolid* class have been removed as excessive:
* void SetSolid(const TopoDS_Solid& theSolid);
* const TopoDS_Solid& Solid() const;
+
+@subsection upgrade_730_BRepAlgoBO Boolean Operation classes in BRepAlgo are deprecated
+
+The API classes in the package BRepAlgo providing access to old Boolean operations are marked as deprecated:
+* BRepAlgo_Fuse
+* BRepAlgo_Common
+* BRepAlgo_Cut
+* BRepAlgo_Section
+Corresponding classes from the package BRepAlgoAPI should be used instead.
#include <BRepAlgo_Common.hxx>
#include <TopoDS_Shape.hxx>
+Standard_DISABLE_DEPRECATION_WARNINGS
+
//=======================================================================
//function : BRepAlgo_Common
//purpose :
PerformDS();
Perform(TopAbs_IN,TopAbs_IN);
}
+
+Standard_ENABLE_DEPRECATION_WARNINGS
//! - defining the construction of a common shape,
//! - implementing the construction algorithm, and
//! - consulting the result.
-class BRepAlgo_Common : public BRepAlgo_BooleanOperation
+class Standard_DEPRECATED("This class is deprecated - BRepAlgoAPI_Common should be used instead")
+ BRepAlgo_Common : public BRepAlgo_BooleanOperation
{
public:
#include <BRepAlgo_Cut.hxx>
#include <TopoDS_Shape.hxx>
+Standard_DISABLE_DEPRECATION_WARNINGS
+
//=======================================================================
//function : BRepAlgo_Cut
//purpose :
PerformDS();
Perform(TopAbs_OUT,TopAbs_IN);
}
+
+Standard_ENABLE_DEPRECATION_WARNINGS
//! - defining the construction of a cut shape,
//! - implementing the construction algorithm, and
//! - consulting the result.
-class BRepAlgo_Cut : public BRepAlgo_BooleanOperation
+class Standard_DEPRECATED("This class is deprecated - BRepAlgoAPI_Cut should be used instead")
+ BRepAlgo_Cut : public BRepAlgo_BooleanOperation
{
public:
#include <BRepAlgo_Fuse.hxx>
#include <TopoDS_Shape.hxx>
+Standard_DISABLE_DEPRECATION_WARNINGS
+
//=======================================================================
//function : BRepAlgo_Fuse
//purpose :
PerformDS();
Perform(TopAbs_OUT,TopAbs_OUT);
}
+
+Standard_ENABLE_DEPRECATION_WARNINGS
//! - defining the construction of a fused shape,
//! - implementing the construction algorithm, and
//! - consulting the result.
-class BRepAlgo_Fuse : public BRepAlgo_BooleanOperation
+class Standard_DEPRECATED("This class is deprecated - BRepAlgoAPI_Fuse should be used instead")
+ BRepAlgo_Fuse : public BRepAlgo_BooleanOperation
{
public:
static TopoDS_Shape MakeShape(const Handle(Geom_Surface)& );
+Standard_DISABLE_DEPRECATION_WARNINGS
+
//=======================================================================
//function : BRepAlgo_Section
//purpose :
if (c >= GeomAbs_C2) return BRepBuilderAPI_MakeFace(S, Precision::Confusion());
else return BRepBuilderAPI_MakeShell(S);
}
+
+Standard_ENABLE_DEPRECATION_WARNINGS
//! S.Build();
//! TopoDS_Shape R = S.Shape();
//! On Null Shapes of geometries, NotDone() is called.
-class BRepAlgo_Section : public BRepAlgo_BooleanOperation
+class Standard_DEPRECATED("This class is deprecated - BRepAlgoAPI_Section should be used instead")
+ BRepAlgo_Section : public BRepAlgo_BooleanOperation
{
public:
#include <TopTools_IndexedMapOfShape.hxx>
#include <TopExp.hxx>
+Standard_DISABLE_DEPRECATION_WARNINGS
+
//=======================================================================
// topop
//=======================================================================
return 0;
}
+Standard_ENABLE_DEPRECATION_WARNINGS
+
static Standard_Integer halfspace(Draw_Interpretor& di,
Standard_Integer n, const char** a)
{