Fri, 10/23/2009 - 04:29
Forums:
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
Fri, 10/23/2009 - 08:33
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
Fri, 10/23/2009 - 10:08
Hi Roman,
Thank you so much for your reply. The iges file has been sent to your mailbox. Any suggestion is welcome.
-Ding
Tue, 10/27/2009 - 12:09
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.
Fri, 08/23/2013 - 16:07
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....
Sat, 08/24/2013 - 05:18
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