iges import/convert

Help
2008-06-18
2013-04-22
  • Mark Forsyth

    Mark Forsyth - 2008-06-18

    I'm brand new to BRL-CAD, just got it working on Fedora8.  I'd like to see if it's able to open IGES files and save them out as something my Maya program can read.  These are IGES files from ProE Product View that crash Maya. 

    I don't see anything in the BRL-CAD interface that opens anything other than databases.  I see a command line iges-g that aborts.  I tried a couple different files, same result.  It reads:

    [root@render01 bin]# ./iges-g -n -o /iomega/part.g /iomega/848e2308x.igs
    BRL-CAD Release 7.12.2  IGES to BRL-CAD Translator
        Wed Apr 23 04:46:24 EDT 2008, Compilation 2
        morrison@u1.arl.army.mil:/usr/brlcad/rel-7.12.2
    Please direct bug reports to <bugs@brlcad.org>

    IGES FILE: /iomega/848e2308x.igs
    ProductView IGES Output                                                

    System ID: ProductView
    Version: V6.0
    Integer Bits: 32
    Max Power of ten(single precision): 38
    Max significant digits (single precision): 16
    Max Power of ten(double precision): 38
    Max significant digits (single precision): 16
    Scale: 1
    Units: 2
    Units: MM
    Line Weight Gradations: 1
    Line Width: 1
    Resolution: 0
    Maximum value: 1e+06
    IGES version: ANSI Y14.26M - 1987
    Reading Directory Section...
    Number of entities checked:
            1340

    Summary of entity types found:
           153 Composite Curve (type 102)
             1 Transformation Matrix (3X4) (type 124)
           748 Rational B-Spline Curve (type 126)
           142 Rational B-Spline Surface (type 128)
           153 Curve on a Parametric Surface (type 142)
           142 Trimmed Parametric Surface (type 144)
             1 Color Definition (type 314)
    144 Independent entities
    Looking for Name Entities...
    Assigning names to entities without names...

    Converting NURB entities:
    *** glibc detected *** ./iges-g: free(): invalid next size (fast): 0x00000000005758c0 ***
    ======= Backtrace: =========
    /lib64/libc.so.6[0x3d61672832]
    /lib64/libc.so.6(cfree+0x8c)[0x3d61675f2c]
    /usr/brlcad/rel-7.12.2/lib/libbu.so.19(bu_free+0x8b)[0x2aaaab75ad1b]
    /usr/brlcad/rel-7.12.2/lib/librt.so.19(rt_nurb_free_snurb+0x50)[0x2aaaaadc5f40]
    /usr/brlcad/rel-7.12.2/lib/librt.so.19(rt_nurb_ifree+0x94)[0x2aaaaacb8fe4]
    /usr/brlcad/rel-7.12.2/lib/librt.so.19(rt_db_free_internal+0x130)[0x2aaaaac34590]
    /usr/brlcad/rel-7.12.2/lib/librt.so.19(wdb_put_internal+0x15d)[0x2aaaaadea16d]
    /usr/brlcad/rel-7.12.2/lib/librt.so.19(wdb_export+0xcd)[0x2aaaaadea2dd]
    ./iges-g[0x40b300]
    ./iges-g[0x412abd]
    /lib64/libc.so.6(__libc_start_main+0xf4)[0x3d6161e074]
    ./iges-g[0x402f9a]
    ======= Memory map: ========
    00400000-00425000 r-xp 00000000 fd:00 1835798                            /usr/brlcad/rel-7.12.2/bin/iges-g
    00525000-00526000 rw-p 00025000 fd:00 1835798                            /usr/brlcad/rel-7.12.2/bin/iges-g
    00526000-005af000 rw-p 00526000 00:00 0                                  [heap]
    3d60400000-3d6041b000 r-xp 00000000 fd:00 11895095                       /lib64/ld-2.7.so
    3d6061a000-3d6061b000 r--p 0001a000 fd:00 11895095                       /lib64/ld-2.7.so
    3d6061b000-3d6061c000 rw-p 0001b000 fd:00 11895095                       /lib64/ld-2.7.so
    3d61600000-3d6174d000 r-xp 00000000 fd:00 11895096                       /lib64/libc-2.7.so
    3d6174d000-3d6194d000 ---p 0014d000 fd:00 11895096                       /lib64/libc-2.7.so
    3d6194d000-3d61951000 r--p 0014d000 fd:00 11895096                       /lib64/libc-2.7.so
    3d61951000-3d61952000 rw-p 00151000 fd:00 11895096                       /lib64/libc-2.7.so
    3d61952000-3d61957000 rw-p 3d61952000 00:00 0
    3d61a00000-3d61a82000 r-xp 00000000 fd:00 11895097                       /lib64/libm-2.7.so
    3d61a82000-3d61c81000 ---p 00082000 fd:00 11895097                       /lib64/libm-2.7.so
    3d61c81000-3d61c82000 r--p 00081000 fd:00 11895097                       /lib64/libm-2.7.so
    3d61c82000-3d61c83000 rw-p 00082000 fd:00 11895097                       /lib64/libm-2.7.so
    3d61e00000-3d61e02000 r-xp 00000000 fd:00 11895098                       /lib64/libdl-2.7.so
    3d61e02000-3d62002000 ---p 00002000 fd:00 11895098                       /lib64/libdl-2.7.so
    3d62002000-3d62003000 r--p 00002000 fd:00 11895098                       /lib64/libdl-2.7.so
    3d62003000-3d62004000 rw-p 00003000 fd:00 11895098                       /lib64/libdl-2.7.so
    3d62200000-3d62216000 r-xp 00000000 fd:00 11895104                       /lib64/libpthread-2.7.so
    3d62216000-3d62415000 ---p 00016000 fd:00 11895104                       /lib64/libpthread-2.7.so
    3d62415000-3d62416000 r--p 00015000 fd:00 11895104                       /lib64/libpthread-2.7.so
    3d62416000-3d62417000 rw-p 00016000 fd:00 11895104                       /lib64/libpthread-2.7.so
    3d62417000-3d6241b000 rw-p 3d62417000 00:00 0
    3d6c400000-3d6c40d000 r-xp 00000000 fd:00 11895119                       /lib64/libgcc_s-4.1.2-20070925.so.1
    3d6c40d000-3d6c60d000 ---p 0000d000 fd:00 11895119                       /lib64/libgcc_s-4.1.2-20070925.so.1
    3d6c60d000-3d6c60e000 rw-p 0000d000 fd:00 11895119                       /lib64/libgcc_s-4.1.2-20070925.so.1
    3d74c00000-3d74ce5000 r-xp 00000000 fd:00 29829178                       /usr/lib64/libstdc++.so.6.0.8
    3d74ce5000-3d74ee5000 ---p 000e5000 fd:00 29829178                       /usr/lib64/libstdc++.so.6.0.8
    3d74ee5000-3d74eeb000 r--p 000e5000 fd:00 29829178                       /usr/lib64/libstdc++.so.6.0.8
    3d74eeb000-3d74eee000 rw-p 000eb000 fd:00 29829178                       /usr/lib64/libstdc++.so.6.0.8
    3d74eee000-3d74f00000 rw-p 3d74eee000 00:00 0
    2aaaaaaab000-2aaaaaaad000 rw-p 2aaaaaaab000 00:00 0
    2aaaaaaad000-2aaaaaab6000 r-xp 00000000 fd:00 1736869                    /usr/brlcad/rel-7.12.2/lib/libwdb.so.19.0.1
    2aaaaaab6000-2aaaaabb6000 ---p 00009000 fd:00 1736869                    /usr/brlcad/rel-7.12.2/lib/libwdb.so.19.0.1
    2aaaaabb6000-2aaaaabb7000 rw-p 00009000 fd:00 1736869                    /usr/brlcad/rel-7.12.2/lib/libwdb.so.19.0.1
    2aaaaabb7000-2aaaaae5c000 r-xp 00000000 fd:00 1736959                    /usr/brlcad/rel-7.12.2/lib/librt.so.19.0.1
    2aaaaae5c000-2aaaaaf5b000 ---p 002a5000 fd:00 1736959                    /usr/brlcad/rel-7.12.2/lib/librt.so.19.0.1
    2aaaaaf5b000-2aaaaaf68000 rw-p 002a4000 fd:00 1736959                    /usr/brlcad/rel-7.12.2/lib/librt.so.19.0.1
    2aaaaaf68000-2aaaaaf99000 rw-p 2aaaaaf68000 00:00 0
    2aaaaaf99000-2aaaaafd3000 r-xp 00000000 fd:00 1736936                    /usr/brlcad/rel-7.12.2/lib/libbn.so.19.0.1
    2aaaaafd3000-2aaaab0d3000 ---p 0003a000 fd:00 1736936                    /usr/brlcad/rel-7.12.2/lib/libbn.so.19.0.1
    2aaaab0d3000-2aaaab0e5000 rw-p 0003a000 fd:00 1736936                    /usr/brlcad/rel-7.12.2/lib/libbn.so.19.0.1
    2aaaab0e5000-2aaaab0e7000 rw-p 2aaaab0e5000 00:00 0
    2aaaab0e7000-2aaaab0f5000 r-xp 00000000 fd:00 1736713                    /usr/brlcad/rel-7.12.2/lib/libregex.so.0.0.0
    2aaaab0f5000-2aaaab1f4000 ---p 0000e000 fd:00 1736713                    /usr/brlcad/rel-7.12.2/lib/libregex.so.0.0.0
    2aaaab1f4000-2aaaab1f5000 rw-p 0000d000 fd:00 1736713                    /usr/brlcad/rel-7.12.2/lib/libregex.so.0.0.0
    2aaaab1f5000-2aaaab1f6000 r-xp 00000000 fd:00 1736951                    /usr/brlcad/rel-7.12.2/lib/libsysv.so.19.0.1
    2aaaab1f6000-2aaaab2f6000 ---p 00001000 fd:00 1736951                    /usr/brlcad/rel-7.12.2/lib/libsysv.so.19.0.1
    2aaaab2f6000-2aaaab2f7000 rw-p 00001000 fd:00 1736951                    /usr/brlcad/rel-7.12.2/lib/libsysv.so.19.0.1
    2aaaab2f7000-2aaaab60e000 r-xp 00000000 fd:00 1736834                    /usr/brlcad/rel-7.12.2/lib/libopenNURBS.so.0.0.0
    2aaaab60e000-2aaaab70d000 ---p 00317000 fd:00 1736834                    /usr/brlcad/rel-7.12.2/lib/libopenNURBS.so.0.0.0
    2aaaab70d000-2aaaab723000 rw-p 00316000 fd:00 1736834                    /usr/brlcad/rel-7.12.2/lib/libopenNURBS.so.0.0.0
    2aaaab723000-2aaaab739000 rw-p 2aaaab723000 00:00 0
    2aaaab746000-2aaaab747000 rw-p 2aaaab746000 00:00 0
    2aaaab747000-2aaaab774000 r-xp 00000000 fd:00 1736719                    /usr/brlcad/rel-7.12.2/lib/libbu.so.19.0.1
    2aaaab774000-2aaaab874000 ---p 0002d000 fd:00 1736719                    /usr/brlcad/rel-7.12.2/lib/libbu.so.19.0.1
    2aaaab874000-2aaaab875000 rw-p 0002d000 fd:00 1736719                    /usr/brlcad/rel-7.12.2/lib/libbu.so.19.0.1
    2aaaab875000-2aaaab87e000 rw-p 2aaaab875000 00:00 0
    2aaaab87e000-2aaaab8a5000 r-xp 00000000 fd:00 1736851                    /usr/brlcad/rel-7.12.2/lib/libpng.so.1.2.5
    2aaaab8a5000-2aaaab9a4000 ---p 00027000 fd:00 1736851                    /usr/brlcad/rel-7.12.2/lib/libpng.so.1.2.5
    2aaaab9a4000-2aaaab9a5000 rw-p 00026000 fd:00 1736851                    /usr/brlcad/rel-7.12.2/lib/libpng.so.1.2.5
    2aaaab9a5000-2aaaab9a6000 rw-p 2aaaab9a5000 00:00 0
    2aaaab9a6000-2aaaabae2000 r-xp 00000000 fd:00 1736893                    /usr/brlcad/rel-7.12.2/lib/libtcl8.5.so
    2aaaabae2000-2aaaabbe1000 ---p 0013c000 fd:00 1736893                    /usr/brlcad/rel-7.12.2/lib/libtcl8.5.so
    2aaaabbe1000-2aaaabbf0000 rw-p 0013b000 fd:00 1736893                    /usr/brlcad/rel-7.12.2/lib/libtcl8.5.so
    2aaaabbf0000-2aaaabc05000 r-xp 00000000 fd:00 1736724                    /usr/brlcad/rel-7.12.2/lib/libz.so.1.1.4
    2aaaabc05000-2aaaabd04000 ---p 00015000 fd:00 1736724                    /usr/brlcad/rel-7.12.2/lib/libz.so.1.1.4
    2aaaabd04000-2aaaabd05000 rw-p 00014000 fd:00 1736724                    /usr/brlcad/rel-7.12.2/lib/libz.so.1.1.4
    2aaaabd05000-2aaaabd09000 rw-p 2aaaabd05000 00:00 0
    2aaaac000000-2aaaac021000 rw-p 2aaaac000000 00:00 0
    2aaaac021000-2aaab0000000 ---p 2aaaac021000 00:00 0
    7fff48182000-7fff48197000 rw-p 7ffffffea000 00:00 0                      [stack]
    7fff481fe000-7fff48200000 r-xp 7fff481fe000 00:00 0                      [vdso]
    ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
    Aborted
    [root@render01 bin]#

     
    • Sean Morrison

      Sean Morrison - 2008-06-20

      Mark,

      You did end up at the right too and trying what looks like a reasonable set of options with iges-g, but you obviously ran into some bug in the nurbs processing code.  If you can share the iges file that exposes the bug, it would help in finding and fixing whatever the problem is. (The file can be shared in private if it's FOUO/proprietary.)

      It basically crashed while writing out the geometry to a file.  I looked into the functions referenced in the stack trace, but didn't find anything remotely suspicious that might cause it to crash in the manner it's failing.  The crash is specific to the -n nurbs option, though, which is less than ideal anyways for some purposes (they're slow and no means to edit them interactively).  You can try some of the other conversion options to see how they go (iges-g with no options for help, or brlman iges-g).

      Cheers!
      Sean

       
    • Cliff Yapp

      Cliff Yapp - 2008-07-03

      Just a note - I've also hit this bug on Gentoo Linux, and have filed bug report #2009424.

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks