Archived issue #0026468

Out of range exception on current master

Open CASCADEOCCT:Codingclosed6 public notes

Search issues

Description

After integration 26351 the following lines were added:

    const Standard_Integer
        aFirstIdx = TheCurveTool::BSpline(aCurve)->FirstUKnotIndex(),
        aLastIdx = TheCurveTool::BSpline(aCurve)->LastUKnotIndex();
      // const reference can not be used due to implementation of BRep_Adaptor.
      TColStd_Array1OfReal aKnots(aFirstIdx, aLastIdx);
      TheCurveTool::BSpline(aCurve)->Knots(aKnots);

When bspline parameters lies inside the knots space, where will be exception in Knots method:

  Standard_DimensionError_Raise_if
    (K.Length() != knots->Length(), "Geom_BSplineCurve::Knots");
  K = knots->Array1();

Steps to reproduce

test boolean bsection M8

Public activity

6 archived notes

Participants are labeled by their role within this record.

01Commenter 2
Branch [archived branch] has been created by Author.

[revision removed]


Detailed log of new commits:

Author: Author
Date: Wed Jul 22 10:35:37 2015 +0300

    0026468: Out of range exception on current master
    
    Problem with different ranges fixed.
02Commenter 2
Dear msv,
Please check branch CR26468.
03Commenter 2
Branch [archived branch] has been updated forcibly by Author.

[revision removed]
04Commenter 4
Reviewed.
05Commenter 2
Branch [archived branch] has been updated by Author.

[revision removed]


Detailed log of new commits:

Author: Author
Date: Wed Jul 22 14:45:46 2015 +0300

    test cases update.

06Commenter 2
Branch [archived branch] has been deleted by Participant.

[revision removed]

Related records