MantisBT - Community
View Issue Details
0031217Community[OCCT] OCCT:Modeling Algorithmspublic2019-12-04 16:012020-03-25 12:27
denix56 
denix56 
normalcrash 
feedbackopen 
[OCCT] 7.4.0 
 
0031217: Modeling Algorithms - Exception is raised in GeomFill_SectionPlacement when parallel path and section
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
No tags attached.
related to 0031249new msv Modeling Algorithms - Invalid memory access with parallel lines and GeomAPI_ExtremaCurveCurve 
Issue History
2019-12-04 16:01denix56New Issue
2019-12-04 16:01denix56Assigned To => msv
2019-12-17 13:35kgvProduct Version => 7.4.0
2019-12-17 13:35kgvSummaryException is raised in GeomFill_SectionPlacement when parallel path and section => Modeling Algorithms - Exception is raised in GeomFill_SectionPlacement when parallel path and section
2019-12-17 13:44kgvRelationship addedrelated to 0031249
2020-01-29 16:12msvAssigned Tomsv => akaftasev
2020-01-29 16:12msvStatusnew => assigned
2020-02-05 15:42akaftasevNote Added: 0090302
2020-02-05 15:46msvAssigned Toakaftasev => denix56
2020-02-05 15:46msvStatusassigned => feedback
2020-02-07 13:34gitNote Added: 0090392
2020-03-25 12:26denix56Note Added: 0091236
2020-03-25 12:27denix56Note Edited: 0091236bug_revision_view_page.php?bugnote_id=91236#r22723

Notes
(0090302)
akaftasev   
2020-02-05 15:42   
Please, could you reproduce a use case in which an exception arise and attach it here
(0090392)
git   
2020-02-07 13:34   
Branch CR31217 has been created by akaftasev.

SHA-1: 17561f1b3eac0ff7b48fe1403531259eb39489f9


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
(0091236)
denix56   
2020-03-25 12:26   
(edited on: 2020-03-25 12:27)
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?