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:
@@ -40,7 +40,7 @@
|
||||
#include <Geom_SurfaceOfRevolution.hxx>
|
||||
#include <Geom_SweptSurface.hxx>
|
||||
#include <Geom_TrimmedCurve.hxx>
|
||||
#include <GeomAdaptor_HSurface.hxx>
|
||||
#include <GeomAdaptor_Surface.hxx>
|
||||
#include <GeomConvert.hxx>
|
||||
#include <GeomConvert_CompCurveToBSplineCurve.hxx>
|
||||
#include <GeomLib_IsPlanarSurface.hxx>
|
||||
@@ -1224,8 +1224,8 @@ static Standard_Boolean IsSameDomain(const TopoDS_Face& aFace,
|
||||
if (S1->IsKind(STANDARD_TYPE(Geom_ElementarySurface)) &&
|
||||
S2->IsKind(STANDARD_TYPE(Geom_ElementarySurface)))
|
||||
{
|
||||
Handle(GeomAdaptor_HSurface) aGA1 = new GeomAdaptor_HSurface(S1);
|
||||
Handle(GeomAdaptor_HSurface) aGA2 = new GeomAdaptor_HSurface(S2);
|
||||
Handle(GeomAdaptor_Surface) aGA1 = new GeomAdaptor_Surface(S1);
|
||||
Handle(GeomAdaptor_Surface) aGA2 = new GeomAdaptor_Surface(S2);
|
||||
|
||||
Handle(BRepTopAdaptor_TopolTool) aTT1 = new BRepTopAdaptor_TopolTool();
|
||||
Handle(BRepTopAdaptor_TopolTool) aTT2 = new BRepTopAdaptor_TopolTool();
|
||||
|
@@ -26,11 +26,11 @@
|
||||
#include <BRepLib_MakeWire.hxx>
|
||||
#include <Geom2d_BoundedCurve.hxx>
|
||||
#include <Geom2d_Curve.hxx>
|
||||
#include <Geom2dAdaptor_HCurve.hxx>
|
||||
#include <Geom2dAdaptor_Curve.hxx>
|
||||
#include <Geom_BoundedCurve.hxx>
|
||||
#include <Geom_Curve.hxx>
|
||||
#include <Geom_Surface.hxx>
|
||||
#include <GeomAdaptor_HSurface.hxx>
|
||||
#include <GeomAdaptor_Surface.hxx>
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <Precision.hxx>
|
||||
#include <ShapeAnalysis_Curve.hxx>
|
||||
@@ -424,8 +424,8 @@ void ShapeUpgrade_WireDivide::Perform ()
|
||||
else if(myEdgeDivide->HasCurve2d() && !Surf.IsNull()) {
|
||||
Handle(Geom2d_Curve) c2d;
|
||||
sae.PCurve ( E, myFace, c2d, af, al, Standard_False);
|
||||
Handle(Adaptor3d_HSurface) AdS = new GeomAdaptor_HSurface(Surf);
|
||||
Handle(Adaptor2d_HCurve2d) AC2d = new Geom2dAdaptor_HCurve(c2d,af,al);
|
||||
Handle(Adaptor3d_Surface) AdS = new GeomAdaptor_Surface(Surf);
|
||||
Handle(Adaptor2d_Curve2d) AC2d = new Geom2dAdaptor_Curve(c2d,af,al);
|
||||
AdCS.Load(AC2d);
|
||||
AdCS.Load(AdS);
|
||||
}
|
||||
|
Reference in New Issue
Block a user