On Sun, Oct 19, 2014 at 11:14 PM, Gurwinder Singh Bains
<gswithba...@gmail.com> wrote:
> BRL-CAD stores database into binary format. I am trying to store it in
> text format. I have read that in binary .g file information is stored
> as Header, Title of database, Units, Objects, Matter, Combination etc.
> and in last Footer. There is g2asc which converts binary data into ASC
> but when I use command "g2asc .g_file_name .asc_file_name", it doesn't
> write Header, Footer and other contents which are in binary file.
> Is there any way to get or store our brl-cad's .g into text format? I
> have searched brlcad's directory, there are many flex and bison file
> that are used for parsing the binary file, can they help me in doing this?
>
> 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?

Under BRL-CAD_directory/src/librt/ directory there are files,
db_open.c, db_scan.c. In db_open.c It opens a file and write into it
in "w+b" mode
means it writes in binary mode. I am trying to compile it so that I am
able to write database into "w" means text mode but under
source/src/librt/ directory it gives header files error. So I go to
source/build/ directory to check if make for db_open.c is there but
error occurs. So how and where I compile these file so that I can
store database files in text mode?

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

Reply via email to