Orientation of the objects is not proper in exported IGES file

I'm writing a prm for converting STEP to IGES, convertion but the conversion is not proper, some of the parts orientation in IGES file are not proper.

Below is the code, please suggest me if any changes are to be made in the code snipper below:

IGESControl_Writer ICW(Interface_Static::CVal("XSTEP.iges.unit"),1);
for (Standard_Integer i=1;i {
ICW.AddShape (shape.Value(i));
Standard_Integer result = ICW.Write(cOutputFilename);

bhandarism's picture
f.viallet's picture

Do you had find solution? because i have the same problem of orientation.
I compare iges file after exporting (one face with difference orientation) and the 2 files have no difference.