Following are my immediate next tasks: 1. Make user to upload file (g file). 2. Display names of entities of file on browser.
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. Step 1 is completed. For step 2, I planned as: I will add an event in JavaScript such that when file upload is complete, a function from JavaScript will execute compiled C program which will take uploaded file as argument and display names of entities on browser through CGI. Suggest if there is any more effective way to do above task. Further plans are: The names of entities displayed on browser will be clickable. 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. Because we use OBJ files to display entities on browser. OBJ file can be exported only for a single particular entity from g file and not for whole database. 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. Limitation of this approach is that g file may contain large no of entities, and it may take lot of time to create OBJ file for each entity. -- Harmanpreet Singh Blog: http://singhharman.wordpress.com/ ------------------------------------------------------------------------------ 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
