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,8 +2305,9 @@ 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);
|
bIsVertexOnLine = myContext->IsVertexOnLine(aV, anExtraTol, aIC, aTolR3D + myFuzzyValue, aT);
|
||||||
if (bIsVertexOnLine)
|
if (bIsVertexOnLine)
|
||||||
{
|
{
|
||||||
@ -2315,6 +2316,7 @@ void BOPAlgo_PaveFiller::PutPaveOnCurve
|
|||||||
aTolV = aPOnC.Distance(BRep_Tool::Pnt(aV));
|
aTolV = aPOnC.Distance(BRep_Tool::Pnt(aV));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
//
|
//
|
||||||
if (bIsVertexOnLine) {
|
if (bIsVertexOnLine) {
|
||||||
// check if aPB contains the parameter aT
|
// check if aPB contains the parameter aT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user