Currently, I have C program that take name of g file as command line
argument and display the list of names of entities contained in that
file.
You didn't need to write a program. MGED can and should be used directly for this:
mged -c file.g tops 2>&1
mged -c file.g ls 2>&1
mged -c file.g tree object 2>&1
When user clicks on an entity name, a command called 'g-obj' will execute
at backend and produce corresponding OBJ file and that OBJ file will
be finally used in ThreeJS to visualize geometry. All this can be
handled by 'onclick' event of _javascript_.
Just be prepared for g-obj to sometimes not complete successfully. You'll need to have some minimal code to detect this case.
So, I planned that as the user clicks entity name,
the corresponding OBJ file is produced and shown on browser.
Or
Alternatively, we can make OBJ files for all entities as soon as g
file is uploaded.
I suggest on-demand for now. Preloading or caching can be implemented later if needed.
Cheers!
Sean
------------------------------------------------------------------------------ Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________ BRL-CAD Developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/brlcad-devel
