DiscussionsIssue archiveData Exchange and Application Framework

Archived discussion

How to avoid loss of precision when reading large igs/step models

Data Exchange and Application FrameworkThu, 03/14/2024 - 05:563 replies

Browse this forum
QuestionAuthor

When I use IGESCAFControl_Reader or IGESControl_Reader to load a larger model and display it through AIS_InteractiveContext (or convert it to glb model), the circle of the original model will become a quadrilateral, the curve will become a straight line, I would like to ask if there is a solution to solve the problems?

Discussion

3 archived replies

Posts are displayed in their archived order.

01Author

Add a supplement, Even if the model is not very large, but there are both large and small circles in the model and the diameter of the big circle is 20 times the diameter of the small circle, the default Deflection is preset according to the big circle, how to bind the preset value of this Deflection to the small circle

02Commenter-1

Small circles are tessellated following required linear deflection (IMeshTools_Parameters::Deflection), so you might need to tune this parameter, if quality doesn't look well to you.

Angular deflection (IMeshTools_Parameters::Angle) might help displaying small features in more detail, but there is also a IMeshTools_Parameters::MinSize parameter that you might want to tune as well. MinSize is deduced from linear deflection by default and prevents BRepMesh to generate too small triangles.

03Author

thx,firstly it works. The default parameter may be related to the size of the model, it may be sufficient for most mesh displays. but by Changing the Deflection and Angle will make the whole model much larger. dose occ has API for detail (arc) mesh optimization?