I am developping a 3d viewer based on OpenGL and OpenCascade. I can display with OpenGL parts loaded with OpenCascade. I mesh independently each edge and each face with BRepMesh::Mesh(shape, deflectionAngle).
By default the deflection angle is set to 1.0 for faces and 0.1 for edges.
I want to use a more appropriate deflection angle for each face and edge that would be based on the underlying geometry.
I don't know how to compute this. Maybe with the bounding box ? How this is done with the OpenCascade AIS toolkit ? How would you do that ?
Thanks a lot.