X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGEOMImpl%2FGEOMImpl_ProjectionDriver.cxx;fp=src%2FGEOMImpl%2FGEOMImpl_ProjectionDriver.cxx;h=9bd97d9f57c88aed9b7d8045b4c78526be6d5b19;hb=922cc08eea7fdde898b17104ced238c4978c2ec2;hp=0929093d9142ecbb34980d1ac61cc9e5e465eacf;hpb=63e04ef7a7d83e52fc010bf95f88a9ce1d8aeebc;p=modules%2Fgeom.git diff --git a/src/GEOMImpl/GEOMImpl_ProjectionDriver.cxx b/src/GEOMImpl/GEOMImpl_ProjectionDriver.cxx index 0929093d9..9bd97d9f5 100644 --- a/src/GEOMImpl/GEOMImpl_ProjectionDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_ProjectionDriver.cxx @@ -24,13 +24,20 @@ #include +#include + #include #include #include #include #include #include + +#if OCC_VERSION_LARGE < 0x07070000 #include +#else +#include +#endif #include #include @@ -661,11 +668,17 @@ TopoDS_Shape GEOMImpl_ProjectionDriver::projectOnCylinder } // Transform the curve to cylinder's parametric space. +#if OCC_VERSION_LARGE < 0x07070000 Handle(GEOMUtils::HTrsfCurve2d) aTrsfCurve = new GEOMUtils::HTrsfCurve2d(aCurve, aPar[0], aPar[1], aTrsf2d); - Approx_Curve2d aConv (aTrsfCurve, aPar[0], aPar[1], - aUResol, aVResol, GeomAbs_C1, - 9, 1000); +#else + Handle(GEOMUtils::TrsfCurve2d) aTrsfCurve = + new GEOMUtils::TrsfCurve2d(aCurve, aPar[0], aPar[1], aTrsf2d); +#endif + + Approx_Curve2d aConv (aTrsfCurve, aPar[0], aPar[1], + aUResol, aVResol, GeomAbs_C1, + 9, 1000); if (!aConv.IsDone() && !aConv.HasResult()) { return aResult;