I want to visualize a STL geometry along with other OCC shapes.
Currently, I archive this by loading the STL via RWStl::ReadFile and then attaching it as a triangulation to a TopoDS_Shape using the UpdateFace method.
This generally works. But my STL geometry usually contains sharp edges and since the rendering algorithm uses averaged point normals, these edges look very ugly (see attachment).
I guess, I could solve this by splitting the triangulation at the sharp edges. But I find this rather cumbersome to implement. Is there already some elegant solution to this problem available?
I'm very thankful for any hint.