Hi
 
Thanks Sean for the info.  That was exactly what I was looking for.  The 
BRLCAD_DLL preprocessor also worked. Here is some code that prints the tops of 
the geometry (I think).
 

 

void printBrlCadTops(char *gFileName)

{

    struct rt_i *rtip;  

    struct directory *dp;     

    char idbuf[RT_BUFSIZE] = {0};         

 

    if( (rtip=rt_dirbuild(gFileName, idbuf, sizeof(idbuf))) != RTI_NULL ) 

    {

       db_update_nref(rtip->rti_dbip, &rt_uniresource);

       FOR_ALL_DIRECTORY_START(dp, rtip->rti_dbip) 

         {

               if ((dp->d_nref == 0) && (dp->d_major_type == 
DB5_MAJORTYPE_BRLCAD))

                    fprintf(stderr, "%s\n", dp->d_namep);

         }FOR_ALL_DIRECTORY_END;

       rt_free_rti(rtip);

      }

}

 

 

Thanks again.

 

 Steve

 

 


------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
BRL-CAD Developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to