1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51: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,8 +2305,9 @@ 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);
Standard_Real anExtraTol = aTolV;
if (ExtendedTolerance(nV, aMI, anExtraTol, iCheckExtend))
{
bIsVertexOnLine = myContext->IsVertexOnLine(aV, anExtraTol, aIC, aTolR3D + myFuzzyValue, aT);
if (bIsVertexOnLine)
{
@ -2315,6 +2316,7 @@ void BOPAlgo_PaveFiller::PutPaveOnCurve
aTolV = aPOnC.Distance(BRep_Tool::Pnt(aV));
}
}
}
//
if (bIsVertexOnLine) {
// check if aPB contains the parameter aT