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:
@@ -38,7 +38,6 @@ class TopoDS_Edge;
|
||||
class ShapeConstruct_Curve;
|
||||
class ShapeConstruct_ProjectCurveOnSurface;
|
||||
class ShapeConstruct_CompBezierCurvesToBSplineCurve;
|
||||
class ShapeConstruct_CompBezierCurves2dToBSplineCurve2d;
|
||||
class ShapeConstruct_MakeTriangulation;
|
||||
|
||||
|
||||
@@ -92,32 +91,6 @@ public:
|
||||
//! else - False.
|
||||
Standard_EXPORT static Standard_Boolean JoinCurves (const Handle(Geom2d_Curve)& c2d1, const Handle(Geom2d_Curve)& ac2d2, const TopAbs_Orientation Orient1, const TopAbs_Orientation Orient2, Standard_Real& first1, Standard_Real& last1, Standard_Real& first2, Standard_Real& last2, Handle(Geom2d_Curve)& c2dOut, Standard_Boolean& isRev1, Standard_Boolean& isRev2, const Standard_Boolean isError = Standard_False);
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
friend class ShapeConstruct_Curve;
|
||||
friend class ShapeConstruct_ProjectCurveOnSurface;
|
||||
friend class ShapeConstruct_CompBezierCurvesToBSplineCurve;
|
||||
friend class ShapeConstruct_CompBezierCurves2dToBSplineCurve2d;
|
||||
friend class ShapeConstruct_MakeTriangulation;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _ShapeConstruct_HeaderFile
|
||||
|
@@ -20,14 +20,14 @@
|
||||
#include <Geom2d_Curve.hxx>
|
||||
#include <Geom2d_Line.hxx>
|
||||
#include <Geom2d_TrimmedCurve.hxx>
|
||||
#include <Geom2dAdaptor_HCurve.hxx>
|
||||
#include <Geom2dAdaptor_Curve.hxx>
|
||||
#include <Geom2dConvert.hxx>
|
||||
#include <Geom_BezierCurve.hxx>
|
||||
#include <Geom_BSplineCurve.hxx>
|
||||
#include <Geom_Curve.hxx>
|
||||
#include <Geom_Line.hxx>
|
||||
#include <Geom_TrimmedCurve.hxx>
|
||||
#include <GeomAdaptor_HCurve.hxx>
|
||||
#include <GeomAdaptor_Curve.hxx>
|
||||
#include <GeomConvert.hxx>
|
||||
#include <gp_Dir.hxx>
|
||||
#include <gp_Lin.hxx>
|
||||
@@ -189,7 +189,7 @@ Handle(Geom_BSplineCurve) ShapeConstruct_Curve::ConvertToBSpline (const Handle(G
|
||||
if ( ! bspl.IsNull() ) { newc = bspl; bspl.Nullify(); }
|
||||
try {
|
||||
OCC_CATCH_SIGNALS
|
||||
Approx_Curve3d Conv ( new GeomAdaptor_HCurve(newc,first,last),
|
||||
Approx_Curve3d Conv ( new GeomAdaptor_Curve(newc,first,last),
|
||||
prec, GeomAbs_C1, 9, 1000 );
|
||||
if ( Conv.IsDone() || Conv.HasResult() )
|
||||
bspl = Conv.Curve();
|
||||
@@ -262,7 +262,7 @@ Handle(Geom2d_BSplineCurve) ShapeConstruct_Curve::ConvertToBSpline (const Handle
|
||||
if ( ! bspl.IsNull() ) { newc = bspl; bspl.Nullify(); }
|
||||
try {
|
||||
OCC_CATCH_SIGNALS
|
||||
Approx_Curve2d Conv ( new Geom2dAdaptor_HCurve(newc,first,last),
|
||||
Approx_Curve2d Conv ( new Geom2dAdaptor_Curve(newc,first,last),
|
||||
first, last,
|
||||
prec, prec, GeomAbs_C1, 9, 1000 );
|
||||
if ( Conv.IsDone() || Conv.HasResult() )
|
||||
|
@@ -52,8 +52,8 @@
|
||||
#include <Geom_Surface.hxx>
|
||||
#include <Geom_SurfaceOfLinearExtrusion.hxx>
|
||||
#include <Geom_TrimmedCurve.hxx>
|
||||
#include <GeomAdaptor_HCurve.hxx>
|
||||
#include <GeomAdaptor_HSurface.hxx>
|
||||
#include <GeomAdaptor_Curve.hxx>
|
||||
#include <GeomAdaptor_Surface.hxx>
|
||||
#include <GeomAPI_Interpolate.hxx>
|
||||
#include <GeomAPI_PointsToBSpline.hxx>
|
||||
#include <GeomProjLib.hxx>
|
||||
@@ -437,8 +437,8 @@ Standard_Boolean ShapeConstruct_ProjectCurveOnSurface::PerformByProjLib(Handle(G
|
||||
try
|
||||
{
|
||||
OCC_CATCH_SIGNALS
|
||||
Handle(GeomAdaptor_HSurface) GAS = mySurf->Adaptor3d();
|
||||
Handle(GeomAdaptor_HCurve) GAC = new GeomAdaptor_HCurve (c3d,First,Last);
|
||||
Handle(GeomAdaptor_Surface) GAS = mySurf->Adaptor3d();
|
||||
Handle(GeomAdaptor_Curve) GAC = new GeomAdaptor_Curve (c3d,First,Last);
|
||||
ProjLib_ProjectedCurve Projector(GAS, GAC);
|
||||
|
||||
switch (Projector.GetType())
|
||||
@@ -520,7 +520,7 @@ Standard_Boolean ShapeConstruct_ProjectCurveOnSurface::PerformByProjLib(Handle(G
|
||||
Handle(Geom_Curve) ProjOnPlane =
|
||||
GeomProjLib::ProjectOnPlane (c3d, Plane,
|
||||
Plane->Position().Direction(), Standard_True);
|
||||
Handle(GeomAdaptor_HCurve) HC = new GeomAdaptor_HCurve ( ProjOnPlane );
|
||||
Handle(GeomAdaptor_Curve) HC = new GeomAdaptor_Curve ( ProjOnPlane );
|
||||
ProjLib_ProjectedCurve Proj ( mySurf->Adaptor3d(), HC );
|
||||
|
||||
result = Geom2dAdaptor::MakeCurve(Proj);
|
||||
|
Reference in New Issue
Block a user