MantisBT - Open CASCADE
View Issue Details
0030347Open CASCADE[OCCT] OCCT:Meshpublic2018-11-06 18:412018-11-11 12:01
kgv 
bugmaster 
normalminor 
closedfixed 
[OCCT] 7.4.0 
[OCCT] 7.4.0[OCCT] 7.4.0 
bugs moddata_2 bug428
0030347: [REGRESSION] Mesh, BRepMesh_ModelPostProcessor - NCollection_Array1 throws Standard_RangeError
Method PolygonCommitter::collectPolygon() called by BRepMesh_ModelPostProcessor throws Standard_RangeError exception for a curve having 0 number of parameters
    Handle(Poly_PolygonOnTriangulation) collectPolygon(
      const IMeshData::IPCurveHandle& thePCurve,
      const Standard_Real             theDeflection) const
    {
      TColStd_Array1OfInteger aNodes (1, thePCurve->ParametersNb());
      TColStd_Array1OfReal    aParams(1, thePCurve->ParametersNb());


as reproduced by bugs/moddata_2/bug428 test case in DEBUG build or with No_Exception undefined.

This is a regression since 0026106.
bugs moddata_2 bug428
No tags attached.
related to 0029181assigned apn Jenkins Certification Tool - testing with enabled exceptions (undefined No_Exception) 
child of 0026106closed bugmaster BRepMesh - revision of data model 
Issue History
2018-11-06 18:41kgvNew Issue
2018-11-06 18:41kgvAssigned To => oan
2018-11-06 18:41kgvRelationship addedchild of 0026106
2018-11-06 18:42kgvRelationship addedrelated to 0029181
2018-11-06 18:42kgvDescription Updatedbug_revision_view_page.php?rev_id=20326#r20326
2018-11-07 10:58oanNote Added: 0080805
2018-11-07 10:58nbvAssigned Tooan => nbv
2018-11-07 10:58nbvStatusnew => assigned
2018-11-07 11:27msvNote Added: 0080809
2018-11-07 11:31oanNote Added: 0080810
2018-11-07 13:25gitNote Added: 0080819
2018-11-07 13:56gitNote Added: 0080823
2018-11-07 15:38nbvNote Added: 0080830
2018-11-07 15:38nbvAssigned Tonbv => msv
2018-11-07 15:38nbvStatusassigned => resolved
2018-11-07 16:09msvNote Added: 0080842
2018-11-07 16:09msvAssigned Tomsv => bugmaster
2018-11-07 16:09msvStatusresolved => reviewed
2018-11-07 17:55bugmasterTest case number => bugs moddata_2 bug428
2018-11-07 17:59bugmasterNote Added: 0080884
2018-11-07 17:59bugmasterStatusreviewed => tested
2018-11-11 11:52bugmasterChangeset attached => occt master c3ca03eb
2018-11-11 11:52bugmasterStatustested => verified
2018-11-11 11:52bugmasterResolutionopen => fixed
2018-11-11 12:01gitNote Added: 0081036

Notes
(0080805)
oan   
2018-11-07 10:58   
IMHO, curves with no parameters should not be added to data model at all.
These could be the edges without pcurves or degenerated ones.
(0080809)
msv   
2018-11-07 11:27   
Degenerated edges must be processed in order to close 2d contour.
(0080810)
oan   
2018-11-07 11:31   
Yes, you are correct regarding truly degenerated ones.
But, here "degenerated" means edge with no points on curves.
If there is no points at all, then even end points (vertices) have not been added.
(0080819)
git   
2018-11-07 13:25   
Branch CR30347 has been created by nbv.

SHA-1: 52f9517856b52915b68b15deff21592ec50a8c99


Detailed log of new commits:

Author: nbv
Date: Wed Nov 7 13:22:42 2018 +0300

    0030347: [REGRESSION] Mesh, BRepMesh_ModelPostProcessor - NCollection_Array1 throws Standard_RangeError
    
    Obtaining of 3D-polygon is forbidden for degenerated edges
(0080823)
git   
2018-11-07 13:56   
Branch CR30347 has been updated forcibly by nbv.

SHA-1: d2a987bcca223eb33a250d6800960c894bcb6425
(0080830)
nbv   
2018-11-07 15:38   
Dear Mikhail,

Please review the branch CR30347.

Test results are here: http://jenkins-test-12.nnov.opencascade.com/view/CR30347-master_NBV/ [^]
(0080842)
msv   
2018-11-07 16:09   
Reviewed.
(0080884)
bugmaster   
2018-11-07 17:59   
Combination -
OCCT branch : CR30347 SHA - d2a987bcca223eb33a250d6800960c894bcb6425
Products branch : master SHA - 4525a60ddf97fbcad482f1351d777d1e352a8307
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:
Debian80-64:
OCCT
Total CPU difference: 16124.880000000001 / 16093.030000000039 [+0.20%]
Products
Total CPU difference: 7061.170000000032 / 7035.140000000028 [+0.37%]
Windows-64-VC14:
OCCT
Total CPU difference: 17614.578125 / 17600.625 [+0.08%]
Products
Total CPU difference: 8515.90625 / 8526.203125 [-0.12%]


Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention
(0081036)
git   
2018-11-11 12:01   
Branch CR30347 has been deleted by inv.

SHA-1: d2a987bcca223eb33a250d6800960c894bcb6425