DiscussionsIssue archiveOther usage issues

Archived discussion

IGES reading problem using OCAF.

Other usage issuesFri, 10/23/2009 - 04:295 replies

Browse this forum
QuestionAuthor

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

Discussion

5 archived replies

Posts are displayed in their archived order.

01Commenter-1

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

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

02Author

Hi Roman,

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

-Ding

03Author

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.

04Commenter-2

Hi Author,

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....

05Author

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