X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FBRepGProp%2FBRepGProp_Face.cxx;h=a9486dcc76543b6bbc6c769cda220224feb38436;hp=d694054391ee0be572810f355613293b676a7899;hb=c5f3a42524e2cc831c258e347e591ffa4bdaa4c2;hpb=ce8b059af398528096dbb1f32b2bc6fdf6981cbc diff --git a/src/BRepGProp/BRepGProp_Face.cxx b/src/BRepGProp/BRepGProp_Face.cxx index d694054391..a9486dcc76 100644 --- a/src/BRepGProp/BRepGProp_Face.cxx +++ b/src/BRepGProp/BRepGProp_Face.cxx @@ -617,7 +617,7 @@ void BRepGProp_Face::GetUKnots GeomAdaptor_Curve aCurve; Handle(Geom_Surface) aSurf = mySurface.Surface().Surface(); - aCurve.Load((*((Handle(Geom_SurfaceOfLinearExtrusion)*)&aSurf))->BasisCurve()); + aCurve.Load(Handle(Geom_SurfaceOfLinearExtrusion)::DownCast (aSurf)->BasisCurve()); isCBSpline = aCurve.GetType() == GeomAbs_BSplineCurve; } } @@ -643,7 +643,7 @@ void BRepGProp_Face::GetUKnots Handle(Geom_Surface) aSurf = mySurface.Surface().Surface(); Handle(Geom_BSplineCurve) aBSplCurve; - aCurve.Load((*((Handle(Geom_SurfaceOfLinearExtrusion)*)&aSurf))->BasisCurve()); + aCurve.Load(Handle(Geom_SurfaceOfLinearExtrusion)::DownCast (aSurf)->BasisCurve()); aBSplCurve = aCurve.BSpline(); aNbKnots = aBSplCurve->NbKnots(); aKnots = new TColStd_HArray1OfReal(1, aNbKnots);