MantisBT
Mantis Bug Tracker Workflow

View Revisions: Issue #25281 All Revisions ] Back to Issue ]
Summary 0025281: BRepMesh_IncrementalMesh does not return
Revision 2014-10-16 19:47 by oan
Steps To Reproduce ###########################################################################
# 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);
}
Revision 2014-10-16 19:46 by oan
Steps To Reproduce ###########################################################################
# 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
chrono r reset
chrono r start
incmesh a_1 0.0002 1
chrono r stop
chrono r show




###########################################################################
# 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);
}
Revision 2014-10-16 19:45 by oan
Steps To Reproduce ###########################################################################
# 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 given one - acceptable for test
chrono r reset
chrono r start
incmesh a_1 0.0002 1
chrono r stop
chrono r show




###########################################################################
# 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);
}
Revision 2014-09-28 10:23 by nikiml
Steps To Reproduce 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);
}




Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker