1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +03:00

Warnings in BRepOffset_SimpleOffset.cxx on vc14 were eliminated

This commit is contained in:
aml 2016-12-09 13:11:34 +03:00 committed by apn
parent 2a79a1aeb4
commit 4d9733588f

View File

@ -285,9 +285,8 @@ void BRepOffset_SimpleOffset::FillEdgeData(const TopoDS_Edge& theEdge,
continue;
// Create offset curve on surface.
Standard_Real aF, aL;
const Handle(Geom2d_Curve) aC2d = BRep_Tool::CurveOnSurface(theEdge, aCurFace, aF, aL);
const Handle(Adaptor2d_HCurve2d) aHCurve2d = new Geom2dAdaptor_HCurve(aC2d, aF, aL);
const Handle(Geom2d_Curve) aC2dNew = BRep_Tool::CurveOnSurface(theEdge, aCurFace, aF, aL);
const Handle(Adaptor2d_HCurve2d) aHCurve2d = new Geom2dAdaptor_HCurve(aC2dNew, aF, aL);
const Handle(Adaptor3d_HSurface) aHSurface = new GeomAdaptor_HSurface(myFaceInfo.Find(aCurFace).myOffsetS);
Adaptor3d_CurveOnSurface aCurveOnSurf(aHCurve2d, aHSurface);
@ -372,8 +371,8 @@ void BRepOffset_SimpleOffset::FillVertexData(const TopoDS_Vertex& theVertex,
TopExp::Vertices(aCurrEdge, aV1, aV2);
if (aV1.IsSame(aV2))
{
const gp_Pnt anOffsetPoint = anOffsetCurve->Value(aMaxParam);
anOffsetPointVec.Append(anOffsetPoint);
const gp_Pnt anOffsetPointLast = anOffsetCurve->Value(aMaxParam);
anOffsetPointVec.Append(anOffsetPointLast);
}
aMaxEdgeTol = Max(aMaxEdgeTol, aNED.myTol);