IGES reading problem using OCAF.

Hi All,

I have two APIs to read iges file, one uses IGESControl_Reader, another uses IGESCAFControl_Reader. Today I try to compare the loading results between these two APIs. I find ocaf reading has 636 compound shapes (contain 7098 faces), but another has 318 compound shapes(3549 faces). In fact, for most of my testing iges files, these two APIs have the same results. I load this file to SolidWorks and Hypermesh, both of them have 3549 faces. So it seems as if the OCAF reading has some problem.
Does anyone find the same problem? Any suggestion is welcome.

-Ding

Roman Lygin's picture

Hi Ding,
I would be interested to have a look at it. Could you send me the zipped file (roman dot lygin at gmail dot com) please ?
Thank you,
Roman

---
opencascade.blogspot.com - the Open CASCADE blog
www.cadexchanger.com - CAD Exchanger, your 3D data translator

Cauchy Ding's picture

Hi Roman,

Thank you so much for your reply. The iges file has been sent to your mailbox. Any suggestion is welcome.

-Ding

Cauchy Ding's picture

Thank you so much for your help. That's really my bug. I replace GetShapes by GetFreeShapes in XCAFDoc_ShapeTool and it works well now. Thank you.

Anup's picture

Hi Cauchy Ding,

Can you just giv me idea on how u created API for reading IGES, Even my task is same and i am new to OCC. so Please Help....

Cauchy Ding's picture

Hi Anup,

I strongly suggest you read several help (.pdf) files firstly. It's really simple and intuitive.
You can also search IGESCAFControl_Reader in this forum. It contains lots of similar codes to describe the IGES reading.

Ding