face orientation from step/iges and holes

Hi,

I've two questions concerning the iges and step file loader. First of all
take a look at those screenshots:

http://user.augmented-reality.it/linceoVR/bug/LinceoVRScreenshot.00020.png
http://user.augmented-reality.it/linceoVR/bug/LinceoVRScreenshot.00021.png

The first one shows an iges after import. It looks as if the triangle orientation
is not consistent throughout the whole mesh. Is there a way to correct the face
orientation automatically?

The second screenshot is about the holes "generated" by the importer, you can see
that the geometries have some holes. Is there a way in OCC to close those holes?

Thank you and kind regards,

Toni

P.S.: You can see the actual code I'm using right here:
http://opensg.vrsource.org/trac/wiki/PotentialContributions
http://opensg.vrsource.org/trac/chrome/site/OpenCascade.zip

It is nothing more than an iges/step to STL converter...

bleile's picture

Sorry about the last link, it was wrong, the actual code can be found here:
http://opensg.vrsource.org/trac/attachment/wiki/PotentialContributions/i...

Cheers,

Toni