On Thu, Oct 30, 2014 at 7:04 PM, Tom Browder <tom.brow...@gmail.com> wrote: > On Sun, Oct 19, 2014 at 12:44 PM, Gurwinder Singh Bains > <gswithba...@gmail.com> wrote: >> BRL-CAD stores database into binary format. I am trying to store it in >> text format. <snip> >> Which function( location ) is used for reading binary data and store >> them into memory? How can I read data and then store all the binary >> information into text form without doing any conversion? > > Gurwinder, I'm not sure why you want to convert to text, but there is > a program I wrote on one of the dev branches which, if I remember > correctly, will do at least part of what you wish. > > >From sourceforge, check out the "attr-extension-mods" branch, build > it, and try the "admin-db" program. Comments welcome.
Thanks for this. It Helps me to know more about database. I got following <quote> Found 12 objects: free space: 1 named : 10 other : 1 1 objects have one or more attributes. Object DLI[0] types (the main category: defined in H[1] Flags): 0 (APPLICATION_DATA_OBJECT) : 10 1 (HEADER_OBJECT) : 1 2 (FREE_STORAGE) : 1 Object major types: 0 (RESERVED) : 2 1 (BRLCAD) : 9 2 (ATTRIBUTE_ONLY) : 1 Object minor types: 0 (RESERVED) : 3 1 (TOR) : 4 3 (ELL) : 5 </quote> [0]: What is DLI here stands for? [1]: H flags. Can we also able get how these flags are written in database file? There are some files named as db_open.c, db_scan.c etc in source/src/librt/ directory of BRL-CAD. In db_open.c, it writes database in "w+b"( binary ) mode. I am trying it to build after changing into "w"( text ) mode. Can it helps? Thanks Gurwinder Singh Bains http://gurwindersinghbains93.wordpress.com ------------------------------------------------------------------------------ _______________________________________________ BRL-CAD Developer mailing list brlcad-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-devel