DiscussionsIssue archiveOCCT:Modeling Algorithms

Archived issue #0031217

Modeling Algorithms - Exception is raised in GeomFill_SectionPlacement when parallel path and section

CommunityOCCT:Modeling Algorithmsverified13 public notes

Search issues

Description

The following code from GeomFill_SectionPlacement raises exception due to inconsistency with 7.4.0 changes. In 7.4.0 Extrema_ExtCC has IsParallel method that we need to check, otherwise exception when accessing points will be raised.
 
 Extrema_ExtCC Ext(Path->Curve(), myAdpSection,
                Path->FirstParameter(), Path->LastParameter(),
                myAdpSection.FirstParameter(),
                myAdpSection.LastParameter(),
                Path->Resolution(Tol/100),
                myAdpSection.Resolution(Tol/100));
      if (Ext.IsDone()) {
        Extrema_POnCurv P1, P2;
        for (ii=1; ii<=Ext.NbExt(); ii++) {
          distaux = sqrt (Ext.SquareDistance(ii));
          Ext.Points(ii, P1, P2); // HERE THE EXCEPTION

Steps to reproduce

Not possible

Public activity

13 archived notes

Participants are labeled by their role within this record.

01Commenter 1
Please, could you reproduce a use case in which an exception arise and attach it here
02Commenter 2
Branch [archived branch] has been created by Commenter 1.

[revision removed]


Detailed log of new commits:

Author: KafAndrey
Date: Fri Feb 7 13:34:03 2020 +0300

    edit code

Author: KafAndrey
Date: Wed Feb 5 13:45:40 2020 +0300

    0031217: start testing bug
03Author
Sorry, but I do not work on this project anymore and I have no possibility to reproduce it.
Could you please change the assignment from me, so I will stop receiving e-mails?

04Commenter 2
Branch [archived branch] has been updated by Commenter 1.

[revision removed]


Detailed log of new commits:

Author: [email removed]
Date: Mon Apr 13 12:36:47 2020 +0300

    0031217: Modeling Algorithms - Exception is raised in GeomFill_SectionPlacement when parallel path and SectionAxis
    
    Now code protected from crashes when IsParallel

05Commenter 1
We can not reproduce this bug, but now code protected from crashes when IsParallel
06Commenter 6
Please rebase the fix on current master.
I think the changes in QABugs are redundant. Remove them.
Run tests on Jenkins.
After tests are OK change to resolved again.
07Commenter 2
Branch [archived branch] has been updated by Commenter 1.

[revision removed]


Detailed log of new commits:

Author: [email removed]
Date: Thu Apr 16 12:21:22 2020 +0300

    Remove redundant changes on QABugs

08Commenter 2
Branch [archived branch] has been updated by Commenter 1.

[revision removed]


Detailed log of new commits:

Author: Commenter 1
Date: Thu Apr 16 14:43:42 2020 +0300

    add deleted incude-file

09Commenter 2
Branch [archived branch] has been updated forcibly by Participant.

[revision removed]
10Commenter 1
11Commenter 3
Dear bugmaster,
please integrate:
OCCT: CR31217
PROD: NO
12Commenter 4
Combination -
OCCT branch : [archived branch] - IR-2023-08-04
Products branch : [archived branch] - master
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.

Number of compiler warnings:
No new/fixed warnings

Regressions/Differences/Improvements:
No regressions/differences

CPU differences:
Ubuntu2004-64:
OCCT
Total CPU difference: 18344.600000000195 / 18390.260000000217 [-0.25%]
Products
Total CPU difference: 12102.810000000003 / 12161.439999999999 [-0.48%]
Windows-64-VC142:
OCCT
Total CPU difference: 20332.1875 / 20298.859375 [+0.16%]
Products
Total CPU difference: 14548.515625 / 14604.578125 [-0.38%]


Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention
13Commenter 2
Branch [archived branch] has been deleted by Participant.

[revision removed]

Related records