On Jul 18, 2014, at 1:09 PM, Gurwinder Singh Bains wrote:
>> I suggest looking at something like the g-xxx.c or vdeck converters. The
>> first is specifically an example converter -- that should >actually work and
>> is heavily commented -- that demonstrates traversing geometry while having
>> awareness of primitive types. The >latter is an even more complicated
>> converter, but similarly is aware of primitive types and writing out object
>> data to different files (basic >usage is interactive, run "vdeck moss.g" and
>> at the vdeck> prompt, run "insert all.g" and "deck" and "quit", then look at
>> the solids and >regions files).
>
> Thanks for your reply. I am studying g-xxx.c file and trying to
> understand the code. :)
Note you can do more than just study the code. That program is actually
compiled (but not installed), so you can run it from a build directory. For
example:
cd path/to/brlcad/build/dir
make g-xxx
src/conv/g-xxx
src/conv/g-xxx -o output.xxx share/db/moss.g all.g
cat output.xxx
>From there, you can edit the source code, re-run make, and more interactively
>study what the code is doing.
Cheers!
Sean
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
BRL-CAD Developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel