mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +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:
@@ -36,7 +36,7 @@
|
||||
#include <Geom_Plane.hxx>
|
||||
#include <Geom_SurfaceOfRevolution.hxx>
|
||||
#include <Geom_TrimmedCurve.hxx>
|
||||
#include <GeomAdaptor_HCurve.hxx>
|
||||
#include <GeomAdaptor_Curve.hxx>
|
||||
#include <GeomAdaptor_Surface.hxx>
|
||||
#include <GeomProjLib.hxx>
|
||||
#include <gp.hxx>
|
||||
@@ -368,8 +368,8 @@ static void EvalParameters(const TopoDS_Edge& Edge,
|
||||
//----------------------------------------------------------
|
||||
Handle(Geom_SurfaceOfRevolution) GSRev =
|
||||
Handle(Geom_SurfaceOfRevolution)::DownCast(GS);
|
||||
Handle(GeomAdaptor_HCurve) HC =
|
||||
new GeomAdaptor_HCurve(GSRev->BasisCurve());
|
||||
Handle(GeomAdaptor_Curve) HC =
|
||||
new GeomAdaptor_Curve(GSRev->BasisCurve());
|
||||
GeomAdaptor_SurfaceOfRevolution ASRev(HC,GAS.AxeOfRevolution());
|
||||
Axis = ASRev.Axis();
|
||||
Phase = EvalPhase(Edge,Face,GAS,Axis);
|
||||
|
Reference in New Issue
Block a user