1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

ref to 0029711: General Fuse operation produces invalid result

Avoid usage of uninitialized variable.
This commit is contained in:
emv 2019-09-23 11:13:57 +03:00
parent 10666b7e85
commit 1630119c3a

View File

@ -2305,14 +2305,16 @@ void BOPAlgo_PaveFiller::PutPaveOnCurve
bIsVertexOnLine = myContext->IsVertexOnLine(aV, aTolV, aIC, aTolR3D + myFuzzyValue, aT);
if (!bIsVertexOnLine && iCheckExtend && !myVertsToAvoidExtension.Contains(nV))
{
Standard_Real anExtraTol;
ExtendedTolerance(nV, aMI, anExtraTol, iCheckExtend);
bIsVertexOnLine = myContext->IsVertexOnLine(aV, anExtraTol, aIC, aTolR3D + myFuzzyValue, aT);
if (bIsVertexOnLine)
Standard_Real anExtraTol = aTolV;
if (ExtendedTolerance(nV, aMI, anExtraTol, iCheckExtend))
{
gp_Pnt aPOnC;
aIC.D0(aT, aPOnC);
aTolV = aPOnC.Distance(BRep_Tool::Pnt(aV));
bIsVertexOnLine = myContext->IsVertexOnLine(aV, anExtraTol, aIC, aTolR3D + myFuzzyValue, aT);
if (bIsVertexOnLine)
{
gp_Pnt aPOnC;
aIC.D0(aT, aPOnC);
aTolV = aPOnC.Distance(BRep_Tool::Pnt(aV));
}
}
}
//