1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

Compare commits

...

1 Commits

Author SHA1 Message Date
dorlov
c5424696cf 0033226: Data Exchange - Infinite loop in HLRBRep_InternalAlgo::Update() generating 2D view of right hand side from STEP file
Infinite loop is removed from IntWalk_IWalking::ComputeOpenLine method test case was created
2023-02-27 17:12:12 +00:00
2 changed files with 12 additions and 2 deletions

View File

@@ -193,7 +193,7 @@ void IntWalk_IWalking::ComputeOpenLine(const TColStd_SequenceOfReal& Umult,
PasC = PasC / 2.0;
PasCu = Abs(PasC*previousd2d.X());
PasCv = Abs(PasC*previousd2d.Y());
if (PasCu <= tolerance(1) && PasCv <= tolerance(2)) {
if (PasCu <= tolerance(1) && PasCv <= tolerance(2) || Cadre) {
if (CurrentLine->NbPoints() == 1) break;
Arrive = Standard_True;
CurrentLine->AddStatusLast(Standard_False);
@@ -201,7 +201,7 @@ void IntWalk_IWalking::ComputeOpenLine(const TColStd_SequenceOfReal& Umult,
Rajout = Standard_True;
seqAlone.Append(lines.Length() + 1);
seqAjout.Append(lines.Length() + 1);
}
}
}
else { // test stop
Rsnld.Root(UVap);

View File

@@ -0,0 +1,10 @@
puts "====================================="
puts "OCC33226: Data Exchange - Infinite loop in HLRBRep_InternalAlgo::Update() generating 2D view of right hand side from STEP file"
puts "====================================="
puts ""
set viewname "vright"
set length 45.4352
restore [locate_data_file bug33226_1189.brep] a
COMPUTE_HLR $viewname $algotype