mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-16 10:08:36 +03:00
ref to 0029711: General Fuse operation produces invalid result
Avoid usage of uninitialized variable.
This commit is contained in:
parent
10666b7e85
commit
1630119c3a
@ -2305,14 +2305,16 @@ void BOPAlgo_PaveFiller::PutPaveOnCurve
|
|||||||
bIsVertexOnLine = myContext->IsVertexOnLine(aV, aTolV, aIC, aTolR3D + myFuzzyValue, aT);
|
bIsVertexOnLine = myContext->IsVertexOnLine(aV, aTolV, aIC, aTolR3D + myFuzzyValue, aT);
|
||||||
if (!bIsVertexOnLine && iCheckExtend && !myVertsToAvoidExtension.Contains(nV))
|
if (!bIsVertexOnLine && iCheckExtend && !myVertsToAvoidExtension.Contains(nV))
|
||||||
{
|
{
|
||||||
Standard_Real anExtraTol;
|
Standard_Real anExtraTol = aTolV;
|
||||||
ExtendedTolerance(nV, aMI, anExtraTol, iCheckExtend);
|
if (ExtendedTolerance(nV, aMI, anExtraTol, iCheckExtend))
|
||||||
bIsVertexOnLine = myContext->IsVertexOnLine(aV, anExtraTol, aIC, aTolR3D + myFuzzyValue, aT);
|
|
||||||
if (bIsVertexOnLine)
|
|
||||||
{
|
{
|
||||||
gp_Pnt aPOnC;
|
bIsVertexOnLine = myContext->IsVertexOnLine(aV, anExtraTol, aIC, aTolR3D + myFuzzyValue, aT);
|
||||||
aIC.D0(aT, aPOnC);
|
if (bIsVertexOnLine)
|
||||||
aTolV = aPOnC.Distance(BRep_Tool::Pnt(aV));
|
{
|
||||||
|
gp_Pnt aPOnC;
|
||||||
|
aIC.D0(aT, aPOnC);
|
||||||
|
aTolV = aPOnC.Distance(BRep_Tool::Pnt(aV));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user