MantisBT - Community
View Issue Details
0025281Community[OCCT] OCCT:Meshpublic2014-09-28 10:232014-11-12 09:52
nikiml 
bugmaster 
normalmajor 
closedfixed 
WindowsVC++ 200864 bit
[OCCT] 6.7.1 
[OCCT] 6.8.0[OCCT] 6.8.0 
bugs mesh bug25281
0025281: BRepMesh_IncrementalMesh does not return
at least it does not return in any reasonable time.

It seems to be looping inside checkWiresIntersection@
opencascade-6.7.1\src\BRepMesh\BRepMesh_Classifier.cxx:155

it happens with the code below and the attached file
###########################################################################
# DRAW REPRODUCER
###########################################################################
pload ALL
param xstep.cascade.unit M
stepread tess_infloop_extract.step a *

# by default angular parameter is 0.5 that is less than the value in source code given below - so, it is acceptable for test
incmesh a_1 0.0002 1




###########################################################################
# C++ CODE USED TO REPRODUCE THE PROBLEM
###########################################################################
STEPControl_Reader reader;

Standard_CString s = Interface_Static::CVal("xstep.cascade.unit");
if(s != "M")
    Interface_Static::SetCVal("xstep.cascade.unit", "M");

IFSelect_ReturnStatus stat = reader.ReadFile(attached_test_file);
if(IFSelect_RetDone!=stat)return;

reader.PrintCheckLoad(Standard_False,IFSelect_ItemsByEntity);

Standard_Integer nbr = reader.NbRootsForTransfer();
for ( Standard_Integer n = 1; n<=nbr; n++)
    Standard_Boolean ok = reader.TransferRoot(n);

Standard_Integer nbs = reader.NbShapes();
if (!nbs) return;

for (Standard_Integer i=1; i<=nbs; i++) {
    TopExp_Explorer ex;
    for (ex.Init(reader.Shape(i),TopAbs_SOLID);ex.More(); ex.Next())
        BRepMesh_IncrementalMesh(ex.Current(),0.00020968042885164233, Standard_False, 0.52359877559829882);
}
No tags attached.
duplicate of 0024938closed bugmaster BRepMesh_IncrementalMesh hangs 
7z tess_infloop_extract.7z (32,301) 2014-09-28 10:23
https://tracker.dev.opencascade.org/
Issue History
2014-09-28 10:23nikimlNew Issue
2014-09-28 10:23nikimlAssigned To => gka
2014-09-28 10:23nikimlFile Added: tess_infloop_extract.7z
2014-09-29 17:42nikimlNote Added: 0032326
2014-09-29 17:57abvCategoryOCCT:Data Exchange => OCCT:Mesh
2014-10-16 19:45oanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=8407#r8407
2014-10-16 19:46oanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=8408#r8408
2014-10-16 19:47oanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=8409#r8409
2014-10-16 19:48oanNote Added: 0033231
2014-10-16 19:48oanAssigned Togka => bugmaster
2014-10-16 19:48oanStatusnew => feedback
2014-10-16 19:50oanRelationship addedduplicate of 0024938
2014-10-16 19:51oanTarget Version => 6.8.0
2014-10-17 14:13bugmasterAssigned Tobugmaster => apv
2014-10-20 12:02bugmasterAssigned Toapv => apn
2014-10-31 12:28gitNote Added: 0033931
2014-10-31 12:28apnNote Added: 0033932
2014-10-31 12:29apnTest case number => bugs mesh bug25281
2014-10-31 12:29apnAssigned Toapn => bugmaster
2014-10-31 12:29apnStatusfeedback => tested
2014-11-06 15:18bugmasterChangeset attached => occt master dbf0485e
2014-11-06 15:18bugmasterStatustested => verified
2014-11-06 15:18bugmasterResolutionopen => fixed
2014-11-11 12:42aivFixed in Version => 6.8.0
2014-11-11 13:03aivStatusverified => closed
2014-11-12 09:52gitNote Added: 0034301

Notes
(0032326)
nikiml   
2014-09-29 17:42   
May be this one belong s to OCCT:Mesh
(0033231)
oan   
2014-10-16 19:48   
Dear Bugmaster,

reported problem is not reproduced on current master.
Please create test case and test.
(0033931)
git   
2014-10-31 12:28   
Branch CR25281 has been created by apn.

SHA-1: e17073b3e642339a0941a74aff4988692b629f62


Detailed log of new commits:

Author: apn
Date: Fri Oct 31 12:28:02 2014 +0300

    0025281: BRepMesh_IncrementalMesh does not return
    
    Added test case bugs/mesh/bug25281
(0033932)
apn   
2014-10-31 12:28   
Problem is not reproduced on current state of master on Windows and Debian60-64 in Release and Debug modes.
Branch CR25281 was created. It contains test case:
bugs mesh bug25281 - OK
(0034301)
git   
2014-11-12 09:52   
Branch CR25281 has been deleted by inv.

SHA-1: e17073b3e642339a0941a74aff4988692b629f62