MantisBT - Community
View Issue Details
0024938Community[OCCT] OCCT:Meshpublic2014-05-20 13:212015-05-14 15:32
Pawel 
bugmaster 
normalminor 
closedfixed 
WindowsVC++ 201264 bit
[OCCT] 6.7.1 
[OCCT] 6.9.0[OCCT] 6.9.0 
bugs mesh bug24938
0024938: BRepMesh_IncrementalMesh hangs
BRepMesh_IncrementalMesh never finishes meshing the provided shape.

The method 'checkWiresIntersection' in BRepMeh_Classifier.cxx i a recursive call changes the loop constraints and the loop never finishes.
# Draw reproducer
pload ALL
restore 27773.brep a
tclean a
incmesh a 1.5 -relative

# initial C++ code for reproducing of the problem
TopoDS_Shape aShape;
BRep_Builder aBuilder;
Standard_Boolean result = BRepTools::Read(aShape, "27773.brep", aBuilder);
BRepMesh_IncrementalMesh M(aShape, 1.5, Standard_True, 0.5);
No tags attached.
has duplicate 0025281closed bugmaster Community BRepMesh_IncrementalMesh does not return 
? 27773.brep (17,632) 2014-05-20 13:21
https://tracker.dev.opencascade.org/
Issue History
2014-05-20 13:21PawelNew Issue
2014-05-20 13:21PawelAssigned To => ifv
2014-05-20 13:21PawelFile Added: 27773.brep
2014-05-20 13:23PawelSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=7497#r7497
2014-05-21 13:13abvAssigned Toifv => azn
2014-05-21 13:13abvStatusnew => assigned
2014-05-26 16:18oanCategoryOCCT:Modeling Algorithms => OCCT:Mesh
2014-07-03 17:54oanRelationship addedrelated to 0024968
2014-10-16 19:50oanRelationship addedhas duplicate 0025281
2014-10-16 20:12abvNote Added: 0033233
2014-10-16 22:32abvAssigned Toazn => omy
2014-10-16 22:32abvAssigned Toomy => oan
2014-10-29 06:53abvTarget Version6.8.0 => 7.1.0
2014-11-24 16:34oanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=8651#r8651
2014-11-24 16:40oanAssigned Tooan => bugmaster
2014-11-24 16:41oanNote Added: 0034648
2014-12-03 11:51oanStatusassigned => feedback
2014-12-04 10:09bugmasterAssigned Tobugmaster => apn
2014-12-08 14:31gitNote Added: 0035137
2014-12-08 15:51apnNote Added: 0035140
2014-12-08 15:52apnTest case number => bugs mesh bug24938
2014-12-08 15:52apnAssigned Toapn => oan
2014-12-10 13:13oanNote Added: 0035257
2014-12-10 13:13oanAssigned Tooan => apn
2014-12-10 13:13oanStatusfeedback => assigned
2014-12-10 13:17oanNote Edited: 0035257bug_revision_view_page.php?bugnote_id=35257#r8830
2014-12-10 13:18oanNote Edited: 0035257bug_revision_view_page.php?bugnote_id=35257#r8831
2014-12-11 12:14apnNote Added: 0035318
2014-12-11 12:33gitNote Added: 0035324
2014-12-11 12:33apnAssigned Toapn => oan
2014-12-11 12:33apnStatusassigned => feedback
2014-12-11 12:33apnNote Edited: 0035318bug_revision_view_page.php?bugnote_id=35318#r8849
2014-12-11 12:51oanNote Added: 0035326
2014-12-11 12:51oanAssigned Tooan => apn
2014-12-11 12:51oanStatusfeedback => reviewed
2014-12-11 14:57apnStatusreviewed => tested
2014-12-11 14:58mkvAssigned Toapn => bugmaster
2014-12-16 16:46bugmasterChangeset attached => occt master f05f2e34
2014-12-16 16:46bugmasterStatustested => verified
2014-12-16 16:46bugmasterResolutionopen => fixed
2015-01-19 16:23bugmasterTarget Version7.1.0 => 6.9.0
2015-01-26 12:35gitNote Added: 0036572
2015-05-14 15:29aivStatusverified => closed
2015-05-14 15:32aivFixed in Version => 6.9.0

Notes
(0033233)
abv   
2014-10-16 20:12   
Oleg, please consider extending command incmesh in DRAW by parameters allowing to specify relative deflection mode and angular deflection
(0034648)
oan   
2014-11-24 16:41   
Dear Bugmaster,

Reported problem is not reproduced on current master, BRepMesh does not fall into infinite recursion.

Please create corresponding test case.
(0035137)
git   
2014-12-08 14:31   
Branch CR24938 has been created by apn.

SHA-1: 5e5293caab59c504326dd5b1919944eebcce3f83


Detailed log of new commits:

Author: apn
Date: Mon Dec 8 14:31:10 2014 +0300

    0024938: BRepMesh_IncrementalMesh hangs
    
    Added test case bugs/mesh/bug24938
(0035140)
apn   
2014-12-08 15:51   
Test case:
bugs mesh bug24938 - OK
http://occt-tests/24938-linux/bugs/mesh/bug24938.html [^]
http://occt-tests/24938-linux-debug/bugs/mesh/bug24938.html [^]
http://occt-tests/24938-wnt/bugs/mesh/bug24938.html [^]
http://occt-tests/24938-wnt-debug/bugs/mesh/bug24938.html [^]

please, review.
(0035257)
oan   
2014-12-10 13:13   
(edited on: 2014-12-10 13:18)
Dear Andrey,

could you please add check for number of triangles and nodes (please use "trinfo" command) and if they are zeros, notify about mesh problem (should be suppressed by TODOs) to mark this issue as problematic. I also propose to display shape in shading, i.e. to add command "vsetdispmode 1". Currently, viewer should be empty as far as shape does not contain mesh, however in case if this problem will be resolved image difference will notify about changes.

(0035318)
apn   
2014-12-11 12:14   
(edited on: 2014-12-11 12:33)
All remarks were corrected.
Test case:
bugs mesh bug24938 - BAD (known problem)
http://occt-tests/24938-linux/bugs/mesh/bug24938.html [^]
http://occt-tests/24938-linux-debug/bugs/mesh/bug24938.html [^]
http://occt-tests/24938-wnt/bugs/mesh/bug24938.html [^]
http://occt-tests/24938-wnt-debug/bugs/mesh/bug24938.html [^]

please, review.

(0035324)
git   
2014-12-11 12:33   
Branch CR24938 has been updated by apn.

SHA-1: 1b725c69234a2337055beed79d881693a6c1d6ec


Detailed log of new commits:

Author: apn
Date: Thu Dec 11 12:32:49 2014 +0300

    Small corrections in test case bugs/mesh/bug24938

(0035326)
oan   
2014-12-11 12:51   
Thank you, it is Ok for me.
(0036572)
git   
2015-01-26 12:35   
Branch CR24938 has been deleted by inv.

SHA-1: 1b725c69234a2337055beed79d881693a6c1d6ec