From fb19cdadd533b226dd1d337d930624cd05a6ed89 Mon Sep 17 00:00:00 2001 From: rnv Date: Mon, 10 Jul 2017 16:15:39 +0300 Subject: [PATCH] Porting to DEV version of OCCT. --- src/BLSURFPlugin/BLSURFPlugin_Attractor.cxx | 7 +++++++ src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/BLSURFPlugin/BLSURFPlugin_Attractor.cxx b/src/BLSURFPlugin/BLSURFPlugin_Attractor.cxx index be10a6f..585b3ee 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_Attractor.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_Attractor.cxx @@ -40,6 +40,9 @@ #include #include +// kernel includes +#include + BLSURFPlugin_Attractor::BLSURFPlugin_Attractor () : _face(), _attractorShape(), @@ -181,7 +184,11 @@ void BLSURFPlugin_Attractor::edgeInit(Handle(Geom_Surface) theSurf, const TopoDS Handle(Geom_Curve) aCurve3d = BRep_Tool::Curve (anEdge, first, last); ShapeConstruct_ProjectCurveOnSurface curveProjector; curveProjector.Init(theSurf, Precision::Confusion()); +#if OCC_VERSION_LARGE > 0x07010000 + curveProjector.Perform (aCurve3d, first, last, aCurve2d); +#else curveProjector.PerformAdvanced (aCurve3d, first, last, aCurve2d); +#endif int N = 1200; for (i=0; i<=N; i++){ diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index 82da99f..509972d 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -486,7 +486,7 @@ projectionPoint getProjectionPoint(TopoDS_Face& theFace, const gp_Pnt& thePoint) throw SMESH_ComputeError(COMPERR_BAD_PARMETERS, "getProjectionPoint: can't project a vertex to a face"); - Quantity_Parameter u,v; + Standard_Real u,v; projector.LowerDistanceParameters(u,v); myPoint.uv = gp_XY(u,v); gp_Pnt aPnt = projector.NearestPoint(); -- 2.30.2