]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Windows compatibility V8_1_0a1
authorana <ana@opencascade.com>
Mon, 18 Jul 2016 12:49:37 +0000 (15:49 +0300)
committerana <ana@opencascade.com>
Mon, 18 Jul 2016 12:49:37 +0000 (15:49 +0300)
src/ShHealOper/ShHealOper_FillHoles.cxx

index 05e536bed7a796f680214b16a6ca43c228f9d2f9..d9adfbfabd65f43eab6b25085d0f1b302c3f348b 100644 (file)
@@ -288,10 +288,10 @@ Handle(Geom_Surface) ShHealOper_FillHoles::buildSurface(const TopoDS_Wire& theWi
         BRepAdaptor_Curve adC(ae);
         Handle(BRepAdaptor_HCurve) aHAD= new BRepAdaptor_HCurve(adC);
         Handle(BRepFill_CurveConstraint) aConst =
-            new BRepFill_CurveConstraint (aHAD, (Standard_Integer) GeomAbs_C0, myNbPtsOnCur, myTol3d);
+            new BRepFill_CurveConstraint (Handle(Adaptor3d_HCurve)::DownCast(aHAD), (Standard_Integer) GeomAbs_C0, myNbPtsOnCur, myTol3d);
         //Handle(GeomPlate_CurveConstraint) aConst =
          // new GeomPlate_CurveConstraint(aHAD, (Standard_Integer) GeomAbs_C0, myNbPtsOnCur, myTol3d);
-        aBuilder.Add (aConst);
+        aBuilder.Add (Handle(GeomPlate_CurveConstraint)::DownCast(aConst));
       }
       aBuilder.Perform();
       if(!aBuilder.IsDone())