Archived issue #0033501

Mesh - BRepMesh_IncrementalMesh produces incorrect mesh from STEP model

CommunityOCCT:Meshnew2 public notes

Search issues

Description

BRepMesh_IncrementalMesh class may produce a corrupted triangulation for particular features; regardless of the parameters.

For the attached file, the source model and a generated mesh have significant differences in one feature (spiral surface); see also the attached screenshots.

Steps to reproduce

Sample code (STL output format as an example; also applicable to other mesh formats):
STEPControl_Reader reader;
reader.ReadFile(argv[1]);
reader.TransferRoots();
const auto stepShape = reader.OneShape();

BRepMesh_IncrementalMesh mesh(stepShape, 0.1);
const auto& meshShape = mesh.Shape();

StlAPI_Writer myStlWriter;
myStlWriter.Write(meshShape, argv[2]);

Public activity

2 archived notes

Participants are labeled by their role within this record.

01Commenter 1
Dear Commenter 2
Please attache screenshots and files.
02Author
Sorry, the files haven't been attached for unknown reason.
Attachment 3 (STP) (1,303,071 bytes)   
Attachment 1 (PNG) (71,963 bytes)   
Attachment 2 (PNG) (63,268 bytes)