Hi, Iulian,<br><br>Opencascade internally assumes that OCC models are measured in millimeters, so if the model is given in unit M (meter), it'll be changed to 1000times larger and uses MM(millimeter) in OCC. I am now checking on the code, and see if we can do something on it.<br>
<br>Jane<br><br><div class="gmail_quote">On Wed, Jan 18, 2012 at 9:14 AM, Iulian Grindeanu <span dir="ltr"><<a href="mailto:iulian@mcs.anl.gov">iulian@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div><div style="font-size:12pt;font-family:Times New Roman">Hi Jane,<br>Dan Le found this problem with respect to igs reader:<br>Please see the attached files.<br>testgeom.cc is a version of CGM/itaps/testgeom.cc file, which also prints the coordinates of all the vertices from the model.<br>
iges format is supported by OCC and Acis/cubit engines.<br>Still, the coordinates of the vertices are 1000 larger when occ is used.<br>So if you run this test<br>testgeom cduct.igs<br>in Cubit based cgm or<br>testgeom_occ cduct.igs <br>
in OCC based cgm,<br>you get different results (1000 times bigger in occ case). It seems that in cubit case, we do a conversion to sat format, first.<br><br>ITAPS GEOMETRY INTERFACE TEST PROGRAM:<br><br> gLoad: Reading STEP/IGES file '/home/iulian/tmp/test_lorenzo/cduct.igs'...<br>
Model conversion succeeded: /tmp/CBT.Hoo5yc.sat<br>Read 6 ACIS Entities from the input file<br><br><br>Constructed 6 Volumes: 1 to 6<br>Model contents: <br>vertices: 24<br>edges: 24<br>faces: 6<br>regions: 6<br>vertex index 0 : 0 0 0<br>
vertex index 1 : 0 1 0<br>vertex index 2 : 10.5 15 0<br>vertex index 3 : 11.5 15 0<br>...<br><br> testgeom_occ cduct.igs <br>Geometry engine set to: OpenCascade 6.3<br><br><br>ITAPS GEOMETRY INTERFACE TEST PROGRAM:<br><br>
gLoad: Total number of loaded entities : 78.<br><br>Constructed 6 Volumes: 1 to 6<br>Model contents: <br>vertices: 24<br>edges: 24<br>faces: 6<br>regions: 6<br>vertex index 0 : 0 0 0<br>vertex index 1 : 0 1000 0<br>vertex index 2 : 10500 15000 0<br>
vertex index 3 : 11500 15000 0<br>...<br><br><br><br>Can you please tell me what we should do to get similar results ?<br><br>Thanks,<br>Iulian<br><br></div></div></blockquote></div><br>