How can I control accuracy with .iges to .stl

I use saveSTL() to convert .iges to .stl,
but I can't control the accuracy of the stl model.

Is there any parameter available to improve the accuracy?

Or I should use other function?

Shing Liu's picture

Hi Shawn Chen,

I think you can use IGESControl_Reader to get the TopoDS_Shape from *.iges file,
then use StlAPI_Writer to save the TopoDS_Shape to *.stl, and you can set the
mesh accuracy by the theDeflection of the StlAPI_Writer.