mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0027261: Incorrect bounding boxes computed for the b-spline faces
Protection from the out of bounds parameters is added. Test cases are added.
This commit is contained in:
@@ -195,6 +195,11 @@ void ComputePolesIndexes(const TColStd_Array1OfReal &theFlatKnots,
|
||||
Standard_Integer &theOutMinIdx,
|
||||
Standard_Integer &theOutMaxIdx)
|
||||
{
|
||||
// Set initial values for the result indexes to handle situation when requested parameter space
|
||||
// is slightly greater than B-spline parameter space.
|
||||
theOutMinIdx = theFlatKnots.Lower();
|
||||
theOutMaxIdx = theFlatKnots.Upper();
|
||||
|
||||
// Compute first and last used flat knots.
|
||||
for(Standard_Integer aKnotIdx = theFlatKnots.Lower();
|
||||
aKnotIdx < theFlatKnots.Upper();
|
||||
|
||||
Reference in New Issue
Block a user