mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0032450: Modeling Algorithms - change BRepLib_CheckCurveOnSurface & GeomLib_CheckCurveOnSurface interfaces to adapters
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include <BRepAdaptor_Surface.hxx>
|
||||
#include <Geom2d_Curve.hxx>
|
||||
#include <Geom2d_TrimmedCurve.hxx>
|
||||
#include <Geom2dAdaptor_Curve.hxx>
|
||||
#include <Geom_BoundedCurve.hxx>
|
||||
#include <Geom_Curve.hxx>
|
||||
#include <Geom_Geometry.hxx>
|
||||
@@ -797,8 +798,16 @@ Standard_Boolean IntTools_Tools::ComputeTolerance
|
||||
{
|
||||
GeomLib_CheckCurveOnSurface aCS;
|
||||
//
|
||||
aCS.Init(theCurve3D, theSurf, theFirst, theLast, theTolRange);
|
||||
aCS.Perform (theCurve2D, theToRunParallel);
|
||||
const Handle(Adaptor3d_Curve) aGeomAdaptorCurve = new GeomAdaptor_Curve(theCurve3D, theFirst, theLast);
|
||||
|
||||
Handle(Adaptor2d_Curve2d) aGeom2dAdaptorCurve = new Geom2dAdaptor_Curve(theCurve2D, theFirst, theLast);
|
||||
Handle(GeomAdaptor_Surface) aGeomAdaptorSurface = new GeomAdaptor_Surface(theSurf);
|
||||
|
||||
Handle(Adaptor3d_CurveOnSurface) anAdaptor3dCurveOnSurface =
|
||||
new Adaptor3d_CurveOnSurface(aGeom2dAdaptorCurve, aGeomAdaptorSurface);
|
||||
|
||||
aCS.Init(aGeomAdaptorCurve, theTolRange);
|
||||
aCS.Perform(anAdaptor3dCurveOnSurface, theToRunParallel);
|
||||
if (!aCS.IsDone()) {
|
||||
return Standard_False;
|
||||
}
|
||||
|
Reference in New Issue
Block a user