Archived issue #0024938
BRepMesh_IncrementalMesh hangs
Description
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.
The method 'checkWiresIntersection' in BRepMeh_Classifier.cxx i a recursive call changes the loop constraints and the loop never finishes.
Steps to reproduce
# Draw reproducer
pload ALL
restore Attachment 1 (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, "Attachment 1 (BREP)", aBuilder);
BRepMesh_IncrementalMesh M(aShape, 1.5, Standard_True, 0.5);
pload ALL
restore Attachment 1 (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, "Attachment 1 (BREP)", aBuilder);
BRepMesh_IncrementalMesh M(aShape, 1.5, Standard_True, 0.5);
Public activity
9 archived notes
Participants are labeled by their role within this record.
Oleg, please consider extending command incmesh in DRAW by parameters allowing to specify relative deflection mode and angular deflection
Dear Commenter 1,
Reported problem is not reproduced on current master, BRepMesh does not fall into infinite recursion.
Please create corresponding test case.
Reported problem is not reproduced on current master, BRepMesh does not fall into infinite recursion.
Please create corresponding test case.
Branch [archived branch] has been created by Commenter 4.
[revision removed]
Detailed log of new commits:
Author: Commenter 4
Date: Mon Dec 8 14:31:10 2014 +0300
0024938: BRepMesh_IncrementalMesh hangs
Added test case bugs/mesh/bug24938
[revision removed]
Detailed log of new commits:
Author: Commenter 4
Date: Mon Dec 8 14:31:10 2014 +0300
0024938: BRepMesh_IncrementalMesh hangs
Added test case bugs/mesh/bug24938
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.
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.
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.
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.
Branch [archived branch] has been updated by Commenter 4.
[revision removed]
Detailed log of new commits:
Author: Commenter 4
Date: Thu Dec 11 12:32:49 2014 +0300
Small corrections in test case bugs/mesh/bug24938
[revision removed]
Detailed log of new commits:
Author: Commenter 4
Date: Thu Dec 11 12:32:49 2014 +0300
Small corrections in test case bugs/mesh/bug24938
Thank you, it is Ok for me.
Branch [archived branch] has been deleted by Participant.
[revision removed]
[revision removed]
Related records