View Issue Details

IDProjectCategoryView StatusLast Update
0022629CommunityOCCT:Modeling Algorithmspublic2012-08-20 07:49
ReporterszyAssigned Tobugmaster  
PrioritynormalSeveritytrivial 
Status closedResolutionreopened 
OSAll 
Summary0022629: Typo in Geom2d_BSplineCurve::LocateU()
DescriptionRLN contribution.
Summary: Typo in Geom2d_BSplineCurve::LocateU() - which uses a value not
adjusted to period for periodic B-Splines.

Detailed description: The bug shows up on periodic B-Splines when due to
rounding issues the U parameter is slightly below the min knot (e.g. 0 vs
1e-18). NewU bumps up to 0 + period but due to wrong check, another if branch is
chosen (one which uses BSplCLib::Hunt()) and respectively an exception later is
thrown due to access beyond the max knot item.
Similar code in Geom_BSplineCurve and Geom_BSplineSurface is correct.
Another minor improvements:
- computation of Abs(ParametricTolerance) only once.
- removed Abs(ParametricTolerance) in the 3rd and 4th branch as they are
irrelevant after 1st and 2nd.

====================================================
Branch OCC22629 is created.
TagsNo tags attached.
Test case number

Relationships

has duplicate 0022488 closedinv Typo in Geom2d_BSplineCurve::LocateU() - which uses a value not adjusted to period for periodic B-Splines 

Activities

Pawel

2012-08-17 17:22

developer   ~0021262

It looks like duplicate of 0022488, which was already closed. Can this one be marked as duplicate and closed?

Issue History

Date Modified Username Field Change
2011-08-02 11:31 bugmaster Category OCCT:MOA => OCCT:Modeling Algorithms
2011-11-24 16:43 szy Assigned To bugmaster => jgv
2011-11-24 16:43 szy Status acknowledged => assigned
2011-11-24 16:43 szy Resolution suspended => reopened
2011-11-24 16:43 szy Fixed in Version EMPTY =>
2011-11-24 16:43 szy Description Updated
2012-08-17 17:22 Pawel Note Added: 0021262
2012-08-17 17:22 Pawel Assigned To jgv => bugmaster
2012-08-17 17:22 Pawel Status assigned => feedback
2012-08-20 07:49 abv Relationship added has duplicate 0022488
2012-08-20 07:49 abv Status feedback => closed