mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +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:
@@ -19,7 +19,6 @@
|
||||
#include <BRep_Tool.hxx>
|
||||
#include <Extrema_POnCurv.hxx>
|
||||
#include <BRepAdaptor_Curve.hxx>
|
||||
#include <BRepAdaptor_HCurve.hxx>
|
||||
|
||||
|
||||
//=======================================================================
|
||||
@@ -44,11 +43,11 @@ void BRepExtrema_ExtCC::Initialize(const TopoDS_Edge& E2)
|
||||
return; // protect against non-geometric type (e.g. polygon)
|
||||
Standard_Real V1, V2;
|
||||
BRepAdaptor_Curve Curv(E2);
|
||||
myHC = new BRepAdaptor_HCurve(Curv);
|
||||
myHC = new BRepAdaptor_Curve(Curv);
|
||||
Standard_Real Tol = Min(BRep_Tool::Tolerance(E2), Precision::Confusion());
|
||||
Tol = Max(Curv.Resolution(Tol), Precision::PConfusion());
|
||||
BRep_Tool::Range(E2,V1,V2);
|
||||
myExtCC.SetCurve(2,myHC->Curve(),V1,V2);
|
||||
myExtCC.SetCurve (2, *myHC, V1, V2);
|
||||
myExtCC.SetTolerance(2, Tol);
|
||||
}
|
||||
|
||||
@@ -63,11 +62,11 @@ void BRepExtrema_ExtCC::Perform(const TopoDS_Edge& E1)
|
||||
return; // protect against non-geometric type (e.g. polygon)
|
||||
Standard_Real U1, U2;
|
||||
BRepAdaptor_Curve Curv(E1);
|
||||
Handle(BRepAdaptor_HCurve) HC = new BRepAdaptor_HCurve(Curv);
|
||||
Handle(BRepAdaptor_Curve) HC = new BRepAdaptor_Curve(Curv);
|
||||
Standard_Real Tol = Min(BRep_Tool::Tolerance(E1), Precision::Confusion());
|
||||
Tol = Max(Curv.Resolution(Tol), Precision::PConfusion());
|
||||
BRep_Tool::Range(E1,U1,U2);
|
||||
myExtCC.SetCurve (1, HC->Curve(), U1, U2);
|
||||
myExtCC.SetCurve (1, *HC, U1, U2);
|
||||
myExtCC.SetTolerance(1, Tol);
|
||||
// If we enable SetSingleSolutionFlag Extrema will run much quicker on almost parallel curves
|
||||
// (e.g. bug 27665), however some solutions will be lost, e.g. see bug 28183.
|
||||
|
Reference in New Issue
Block a user