mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-09 23:46:52 +08: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:
@@ -19,7 +19,7 @@
|
||||
#include <Geom2d_Curve.hxx>
|
||||
#include <Geom2d_TrimmedCurve.hxx>
|
||||
#include <Geom2dAdaptor.hxx>
|
||||
#include <Geom2dAdaptor_HCurve.hxx>
|
||||
#include <Geom2dAdaptor_Curve.hxx>
|
||||
#include <Geom_BezierCurve.hxx>
|
||||
#include <Geom_BSplineCurve.hxx>
|
||||
#include <Geom_Circle.hxx>
|
||||
@@ -31,8 +31,8 @@
|
||||
#include <Geom_Plane.hxx>
|
||||
#include <Geom_TrimmedCurve.hxx>
|
||||
#include <GeomAdaptor.hxx>
|
||||
#include <GeomAdaptor_HCurve.hxx>
|
||||
#include <GeomAdaptor_HSurface.hxx>
|
||||
#include <GeomAdaptor_Curve.hxx>
|
||||
#include <GeomAdaptor_Surface.hxx>
|
||||
#include <GeomAdaptor_Surface.hxx>
|
||||
#include <GeomAPI.hxx>
|
||||
#include <gp_Pln.hxx>
|
||||
@@ -49,9 +49,9 @@ Handle(Geom2d_Curve) GeomAPI::To2d(const Handle(Geom_Curve)& C,
|
||||
const gp_Pln& P)
|
||||
{
|
||||
Handle(Geom2d_Curve) result;
|
||||
Handle(GeomAdaptor_HCurve) HC = new GeomAdaptor_HCurve(C);
|
||||
Handle(GeomAdaptor_Curve) HC = new GeomAdaptor_Curve(C);
|
||||
Handle(Geom_Plane) Plane = new Geom_Plane(P);
|
||||
Handle(GeomAdaptor_HSurface) HS = new GeomAdaptor_HSurface(Plane);
|
||||
Handle(GeomAdaptor_Surface) HS = new GeomAdaptor_Surface(Plane);
|
||||
|
||||
ProjLib_ProjectedCurve Proj(HS,HC);
|
||||
|
||||
@@ -73,10 +73,10 @@ Handle(Geom2d_Curve) GeomAPI::To2d(const Handle(Geom_Curve)& C,
|
||||
Handle(Geom_Curve) GeomAPI::To3d(const Handle(Geom2d_Curve)& C,
|
||||
const gp_Pln& P)
|
||||
{
|
||||
Handle(Geom2dAdaptor_HCurve) AHC = new Geom2dAdaptor_HCurve(C);
|
||||
Handle(Geom2dAdaptor_Curve) AHC = new Geom2dAdaptor_Curve(C);
|
||||
|
||||
Handle(Geom_Plane) ThePlane = new Geom_Plane(P);
|
||||
Handle(GeomAdaptor_HSurface) AHS = new GeomAdaptor_HSurface(ThePlane);
|
||||
Handle(GeomAdaptor_Surface) AHS = new GeomAdaptor_Surface(ThePlane);
|
||||
|
||||
Adaptor3d_CurveOnSurface COS(AHC,AHS);
|
||||
return GeomAdaptor::MakeCurve(COS);
|
||||
|
||||
Reference in New Issue
Block a user