IGES file from Rhino will not import

Hi,

I have an IGES file exported from Rhino (www.rhino3d.com) which will not import into CasCade 3.0 stable version. I am only using the runtime version so I can't find where the problem is. If anyone has a debug version and has time to try it, please could they? I have pasted it here, but I'm sure this will mess up the layout and so if anyone would prefer for me to mail it to them, just let me know at cfd@oceanfree.net

Thanks,

Neil

S 1 1H,,1H;,, G 1 29HF:\Validation\Iowa\sphere.igs, G 2 26HRhinoceros ( May 23 2000 ),31HTrout Lake IGES 012 May 23 2000, G 3 32,38,6,308,15, G 4 , G 5 1.0D0,0,,1,0.01D0,13H001201.150700, G 6 0.01D0, G 7 16.67150100937594D0, G 8 , G 9 , G 10 10,0,13H001201.150700; G 11

314 1 0 0 0 0 0 000000200D 1

314 0 1 1 0 0 0 COLOR 0D 2

314 2 0 0 0 0 0 000000200D 3

314 0 2 1 0 0 0 COLOR 0D 4

314 3 0 0 0 0 0 000000200D 5

314 0 4 1 0 0 0 COLOR 0D 6

314 4 0 0 0 0 0 000000200D 7

314 0 4 1 0 0 0 COLOR 0D 8

314 5 0 0 0 0 0 000000200D 9

314 0 1 1 0 0 0 COLOR 0D 10

314 6 0 0 0 0 0 000000200D 11

314 0 8 1 0 0 0 COLOR 0D 12

406 7 0 0 1 0 0 000000300D 13

406 0 -1 1 3 0 0LEVELDEF 0D 14

406 8 0 0 2 0 0 000000300D 15

406 0 -3 1 3 0 0LEVELDEF 0D 16

406 9 0 0 3 0 0 000000300D 17

406 0 -5 1 3 0 0LEVELDEF 0D 18

406 10 0 0 4 0 0 000000300D 19

406 0 -7 1 3 0 0LEVELDEF 0D 20

406 11 0 0 5 0 0 000000300D 21

406 0 -9 1 3 0 0LEVELDEF 0D 22

406 12 0 0 6 0 0 000000300D 23

406 0 -11 1 3 0 0LEVELDEF 0D 24

128 13 0 0 1 0 0 000000000D 25

128 0 -1 64 0 0 0 TrimSrf 0D 26 314,0.0,0.0,0.0,20HRGB( 0, 0, 0 ); 0000001P 1 314,100.0,0.0,0.0,20HRGB( 255, 0, 0 ); 0000003P 2 314,49.01961,14.90196,80.39216,20HRGB( 125, 38, 205 ); 0000005P 3 314,0.0,0.0,100.0,20HRGB( 0, 0, 255 ); 0000007P 4 314,0.0,49.80392,0.0,20HRGB( 0, 127, 0 ); 0000009P 5 314,100.0,100.0,100.0,20HRGB( 255, 255, 255 ); 0000011P 6 406,2,1,7HDefault; 0000013P 7 406,2,2,8HLayer 01; 0000015P 8 406,2,3,8HLayer 02; 0000017P 9 406,2,4,8HLayer 03; 0000019P 10 406,2,5,8HLayer 04; 0000021P 11 406,2,6,8HLayer 05; 0000023P 12 128,8,4,2,2,1,0,0,0,0,0.0D0,0.0D0,0.0D0,10.35468545647922D0, 0000025P 13 10.35468545647922D0,20.70937091295844D0,20.70937091295844D0, 0000025P 14 31.06405636943767D0,31.06405636943767D0,41.41874182591688D0, 0000025P 15 41.41874182591688D0,41.41874182591688D0,0.0D0,0.0D0,0.0D0, 0000025P 16 10.35468545647922D0,10.35468545647922D0,20.70937091295845D0, 0000025P 17 20.70937091295845D0,20.70937091295845D0,1.0D0, 0000025P 18 0.7071067811865476D0,1.0D0,0.7071067811865475D0,1.0D0, 0000025P 19 0.7071067811865475D0,1.0D0,0.7071067811865475D0,1.0D0, 0000025P 20 0.7071067811865477D0,0.5000000000000001D0,0.7071067811865477D0, 0000025P 21 0.5000000000000001D0,0.7071067811865477D0,0.5000000000000001D0, 0000025P 22 0.7071067811865477D0,0.5000000000000001D0,0.7071067811865477D0, 0000025P 23 1.0D0,0.7071067811865476D0,1.0D0,0.7071067811865475D0,1.0D0, 0000025P 24 0.7071067811865475D0,1.0D0,0.7071067811865475D0,1.0D0, 0000025P 25 0.7071067811865475D0,0.5D0,0.7071067811865475D0, 0000025P 26 0.4999999999999999D0,0.7071067811865475D0,0.4999999999999999D0, 0000025P 27 0.7071067811865475D0,0.4999999999999999D0,0.7071067811865475D0, 0000025P 28 1.0D0,0.7071067811865476D0,1.0D0,0.7071067811865475D0,1.0D0, 0000025P 29 0.7071067811865475D0,1.0D0,0.7071067811865475D0,1.0D0, 0000025P 30 -9.906976744186046D0,-5.116279069767442D0,6.764524265189895D0, 0000025P 31 -9.906976744186046D0,-5.116279069767442D0,6.764524265189894D0, 0000025P 32 -9.906976744186046D0,-5.116279069767442D0,6.764524265189895D0, 0000025P 33 -9.906976744186046D0,-5.116279069767442D0,6.764524265189894D0, 0000025P 34 -9.906976744186046D0,-5.116279069767442D0,6.764524265189895D0, 0000025P 35 -9.906976744186046D0,-5.116279069767442D0,6.764524265189894D0, 0000025P 36 -9.906976744186046D0,-5.116279069767442D0,6.764524265189895D0, 0000025P 37 -9.906976744186046D0,-5.116279069767442D0,6.764524265189894D0, 0000025P 38 -9.906976744186046D0,-5.116279069767442D0,6.764524265189895D0, 0000025P 39 -3.142452478996152D0,-5.116279069767442D0,6.764524265189895D0, 0000025P 40 -3.142452478996152D0,-11.88080333495734D0,6.764524265189895D0, 0000025P 41 -9.906976744186045D0,-11.88080333495734D0,6.764524265189895D0, 0000025P 42 -16.67150100937594D0,-11.88080333495734D0,6.764524265189895D0, 0000025P 43 -16.67150100937594D0,-5.116279069767443D0,6.764524265189895D0, 0000025P 44 -16.67150100937594D0,1.648245195422451D0,6.764524265189895D0, 0000025P 45 -9.906976744186046D0,1.648245195422451D0,6.764524265189895D0, 0000025P 46 -3.142452478996153D0,1.648245195422452D0,6.764524265189895D0, 0000025P 47 -3.142452478996152D0,-5.116279069767442D0,6.764524265189895D0, 0000025P 48 -3.142452478996152D0,-5.116279069767442D0,0.0D0, 0000025P 49 -3.142452478996151D0,-11.88080333495734D0,0.0D0, 0000025P 50 -9.906976744186045D0,-11.88080333495734D0,0.0D0, 0000025P 51 -16.67150100937594D0,-11.88080333495734D0,0.0D0, 0000025P 52 -16.67150100937594D0,-5.116279069767443D0,0.0D0, 0000025P 53 -16.67150100937594D0,1.648245195422451D0,0.0D0, 0000025P 54 -9.906976744186046D0,1.648245195422451D0,0.0D0, 0000025P 55 -3.142452478996153D0,1.648245195422452D0,0.0D0, 0000025P 56 -3.142452478996152D0,-5.116279069767442D0,0.0D0, 0000025P 57 -3.142452478996152D0,-5.116279069767442D0,-6.764524265189896D0, 0000025P 58 -3.142452478996152D0,-11.88080333495734D0,-6.764524265189896D0, 0000025P 59 -9.906976744186045D0,-11.88080333495734D0,-6.764524265189896D0, 0000025P 60 -16.67150100937594D0,-11.88080333495734D0,-6.764524265189896D0, 0000025P 61 -16.67150100937594D0,-5.116279069767443D0,-6.764524265189896D0, 0000025P 62 -16.67150100937594D0,1.648245195422451D0,-6.764524265189896D0, 0000025P 63 -9.906976744186046D0,1.648245195422451D0,-6.764524265189896D0, 0000025P 64 -3.142452478996153D0,1.648245195422452D0,-6.764524265189896D0, 0000025P 65 -3.142452478996152D0,-5.116279069767442D0,-6.764524265189896D0, 0000025P 66 -9.906976744186046D0,-5.116279069767442D0,-6.764524265189895D0, 0000025P 67 -9.906976744186046D0,-5.116279069767442D0,-6.764524265189894D0, 0000025P 68 -9.906976744186046D0,-5.116279069767442D0,-6.764524265189895D0, 0000025P 69 -9.906976744186046D0,-5.116279069767442D0,-6.764524265189894D0, 0000025P 70 -9.906976744186046D0,-5.116279069767442D0,-6.764524265189895D0, 0000025P 71 -9.906976744186046D0,-5.116279069767442D0,-6.764524265189894D0, 0000025P 72 -9.906976744186046D0,-5.116279069767442D0,-6.764524265189895D0, 0000025P 73 -9.906976744186046D0,-5.116279069767442D0,-6.764524265189894D0, 0000025P 74 -9.906976744186046D0,-5.116279069767442D0,-6.764524265189895D0, 0000025P 75 0.0D0,41.41874182591688D0,0.0D0,20.70937091295845D0; 0000025P 76 S0000001G0000011D0000026P0000076 T 1

Christian CAILLET's picture

You're right by being not sure ... To send an IGES file through this forum causes blanks to be .. compressed, if you want, hence loosing the tabulation, which is required by IGES. (in addition, a little IGES file produces a rather big mail)

So, if you send me the file, I'll manage to check it

...

Christian CAILLET's picture

Hi Neil,

I found some issues in this file already, however I can't be sure of all, unless you send me the file directly : through the forum, all blancs and line returns are compacted or lost, so it's a mess to "reconstruct" the file : IGES is very sensitive to questions of tabulations and so on.

Problems already seen and confirmed are the following, but they don't stop conversion, they only produce warnings :

- In Header, no indication of Unit - Millimeters are assumed

- Descriptions of Color Entities, they are the "20HRGB( ... )" : not correctly described, the ';' should be exactly 20 characters after the 'H' of' '20H' , it is located before this limit, so these entities are read in error

However, this shouldn't prevent you to read and convert the file : so did I, and obtain a closed face which looks like a sphere (while it is coded as b-spline)

I think that something else to be checked in blanks or tabs : when "reconstructing" the file, I had to remove a blank in the Header, but to be sure I need to see the original file. Before removing this blank, I got no result at all.

So, to have a more accurate view, could you send me the original file by direct mail, also the error messages you got. Thank you in advance, this will help.

Christian CAILLET's picture

After more investigations, the problems relies in MISSING Unit Flag (and Name) in file header. Other issues previously mentioned can be forgotten, they don't apply to original file.

This problem is now fixed in current development version , it concerns the source IGESData_GlobalSection.cxx, while delivered versions C30 and C31 have the problem. This modified source can be used in former versions, there is no other change in it.

Patrik's picture

Hello, where can I get the updated file? I can find it in the CVS tree via web access and have no other possibility.

Regards, Patrik Müller

Christian CAILLET's picture

Right : in CVS tree, IGESData_GlobalSection.cxx exists in 2 versions, 1.1 (starting one) and 1.2, which brings the correction in the current development version. The issue relating to Rhino's file happened on certified version 3.0, not the current state of development. Note that default units are in fact assumed to be inches, according to IGES standard.