display iges files

Dear all!

I would like to read in and display standard .igs, .iges files in VC++.

As I am a beginner on this field any sample code or idea are welcomed.
Many thanks in advance.

Forum supervisor's picture

Hello Antoniu,

You may visualize the model imported from IGES using XDE functionality available in Open CASCADE Technology.
In Draw Test Harness, you may try the following sequence of commands that illustrates the use of XDE:

pload DATAEXCHANGE
ReadIges D1 d:/file.igs
XShow D1
vfit
# Then click in the viewer and press 'S' to activate shading mode

We also have an Advanced XDE Sample that features a nice GUI and additional functions - for more information please consult the page http://www.opencascade.org/support/products/advsamples/ .

Best regards,
Forum supervisor

Sharjith Naramparambath's picture

Did you see the Import/Export Sample in the MFC samples provided by the installation? The Qt standard tutorial also has the Import/Export functionality for the standard exchange formats like iges and step. OCC supports iges, step, brep, csfdb and stl for import and export and vrml for export out of the box. If a simple exchange is what all you need, OCC does that and samples are provided. What the forum supervisor is referring to is the advanced (extended) data exchange capabilities that support colors etc.

chandrasekhar yammanuri's picture

IT IS DISPLAYING IN WIRE FRAME .HOW TO DISPLAY IT IN 3D SOLID MODE