Archived issue #0024938

BRepMesh_IncrementalMesh hangs

CommunityOCCT:Meshclosed9 public notes

Search issues

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.

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);

Public activity

9 archived notes

Participants are labeled by their role within this record.

01Commenter 1
Oleg, please consider extending command incmesh in DRAW by parameters allowing to specify relative deflection mode and angular deflection
02Commenter 2
Dear Commenter 1,

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

Please create corresponding test case.
03Commenter 3
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
04Commenter 4
05Commenter 2
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.

06Commenter 4
07Commenter 3
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

08Commenter 2
Thank you, it is Ok for me.
09Commenter 3
Branch [archived branch] has been deleted by Participant.

[revision removed]

Related records