DiscussionsIssue archiveOCCT:Modeling Algorithms

Archived issue #0025558

It is impossible to restore attached shape

Open CASCADEOCCT:Modeling Algorithmsclosed9 public notes

Search issues

Description

Restoration of attached shape leads writing out of memory:

1640 void BSplCLib::GetPole(const Standard_Integer Index,
...
1651 for (k = 0; k < Dimension; k++) {
1652 Pole(Position) = pole[k];
1653 Position++;
1654 }

This situation caused by "PrepareInsertKnots" function in the same file, where new knot count computed.

Steps to reproduce

restore Attachment 1 (BREP)

Public activity

9 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: Fri Dec 5 12:24:45 2014 +0300

    0025558: It is impossible to restore attached shape
    
    Condition of adding one last knot corrected.
02Commenter 2
Dear abv,
Please check current state of branch CR25558.
03Commenter 2
Branch [archived branch] has been updated forcibly by Author.

[revision removed]
04Commenter 4
No remarks, please test
05Commenter 2
Branch [archived branch] has been updated forcibly by Participant.

[revision removed]
06Commenter 6
Branch [archived branch] has been rebased on the current master
07Commenter 2
Branch [archived branch] has been updated by Participant.

[revision removed]


Detailed log of new commits:

Author: apv
Date: Wed Dec 10 17:39:22 2014 +0300

    Test-case for issue #0025558

08Commenter 8
Dear Commenter 1,

Branch CR25558 from occt git-repository (and master from products git-repository) was compiled on Linux, MacOS and Windows platforms and tested.
[revision removed]

Number of compiler warnings:
occt component:
   Linux: 18 (18 on master)
   Windows: 0 (0 on master)
products component :
   Linux: 11 (11 on master)
   Windows: 0 (1 on master)

Regressions/Differences:
Not detected

Testing cases:
bugs fclasses(002) bug25558 - OK
http://occt-tests/CR25558-master-occt/Debian60-64/bugs/fclasses/bug25558.html
http://occt-tests/CR25558-master-occt/Windows-32-VC10/bugs/fclasses/bug25558.html

Testing on Linux:
Total MEMORY difference: 364074712 / 363562240
Total CPU difference: 47239.96000000008 / 47537.4299999999

Testing on Windows:
Total MEMORY difference: 277027136 / 277181316
Total CPU difference: 36424.1875 / 41681.890625
09Commenter 2
Branch [archived branch] has been deleted by Participant.

[revision removed]