View Issue Details

IDProjectCategoryView StatusLast Update
0032347CommunityOCCT:Modeling Algorithmspublic2021-05-14 22:46
ReporterClaudio Benghi Assigned Tomsv 
PrioritynormalSeverityblock 
Status newResolutionopen 
Product Version7.5.1 
Summary0032347: infinite loop in BRepTools_WireExplorer.cxx
DescriptionUnder some circumstances BRepTools_WireExplorer::GetNextParamOnPC is locked in a loop when increment is not large enough to effect startPar.

This issue has been spotted in the open source project xbim at
https://github.com/xBimTeam/XbimGeometry/issues/282

Steps To ReproduceWhen startPar is large (e.g. -14435601.399496567), and dP small (e.g. 5.5879354476928712e-12) then there is no iteration and we are stuck in an infinite loop.

We have fixed the code locally ensuring dP has a minimum bound with the following lines:

Standard_Real resolution = Abs(fP / Pow(2, 52));
dP = Max(dP, resolution);
TagsNo tags attached.
Test case number

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2021-05-06 14:32 Claudio Benghi New Issue
2021-05-06 14:32 Claudio Benghi Assigned To => msv