Fri, 09/27/2024 - 05:57
I am using OCCT version 7.6.1, and after reading the STEP file, the displayed model is incorrect; it changes from a set of line segments to a polyline. I have tried setting read_precision_mode and read_precision_val, but it still doesn't work. How should I configure it to display correctly?
Attachments:
Fri, 09/27/2024 - 20:29
I think that the issue comes from invalid STEP file - it puts a sequence of unconnected segments (EDGEs) into a single WIRE. If you'll display vertices on top of edges you'll see that the geometry doesn't match. Cannot say if this comes from STEP file itself, or STEP reader does something wrong - you may try to dig deeper.
BRepMesh algorithm tries to 'connect' misaligned TopoDS_Edge's in TopoDS_Wire and creates tessellation that you see on the screen.
You may disable implicit meshing AIS_InteractiveContext::DefaultDrawer()->SetAutoTriangulation() to see original edges, but this wouldn't heal the model.