mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0028966: Coding Rules - remove Adaptor2d_HCurve2d, Adaptor3d_HCurve and Adaptor3d_HSurface classes
Adaptor2d_Curve2d, Adaptor3d_Curve and Adaptor3d_Surface now inherit Standard_Transient. Interfaces Adaptor2d_HCurve2d, Adaptor3d_HCurve, Adaptor3d_HSurface and their subclasses are now aliases to Adaptor2d_Curve2d, Adaptor3d_Curve and Adaptor3d_Surface. Removed numerous unsafe reinterpret casts. Generic classes Adaptor3d_GenHCurve, Adaptor3d_GenHSurface, Adaptor2d_GenHCurve2d have been removed. Several redundant .lxx files have been merged into .hxx. Removed obsolete adaptor classes with H suffix.
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
#include <TopoDS.hxx>
|
||||
#include <IMeshData_Status.hxx>
|
||||
#include <IMeshData_Types.hxx>
|
||||
#include <BRepAdaptor_HSurface.hxx>
|
||||
#include <BRepAdaptor_Surface.hxx>
|
||||
|
||||
class IMeshData_Wire;
|
||||
class TopoDS_Wire;
|
||||
@@ -53,7 +53,7 @@ public:
|
||||
const Standard_Integer theIndex) const = 0;
|
||||
|
||||
//! Returns face's surface.
|
||||
const Handle(BRepAdaptor_HSurface)& GetSurface() const
|
||||
const Handle(BRepAdaptor_Surface)& GetSurface() const
|
||||
{
|
||||
return mySurface;
|
||||
}
|
||||
@@ -82,12 +82,12 @@ protected:
|
||||
: IMeshData_TessellatedShape(theFace)
|
||||
{
|
||||
BRepAdaptor_Surface aSurfAdaptor(GetFace(), Standard_False);
|
||||
mySurface = new BRepAdaptor_HSurface(aSurfAdaptor);
|
||||
mySurface = new BRepAdaptor_Surface(aSurfAdaptor);
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
mutable Handle(BRepAdaptor_HSurface) mySurface;
|
||||
mutable Handle(BRepAdaptor_Surface) mySurface;
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user