Taking into account the suggestions of Sean and Rai, I implemented
basic support of "Geometry Viewer".

Please check here: http://202.164.53.122/~harman/geometry_viewer/upload.html

Upload BRL-CAD database file to see entities on browser. Currently, as
suggested by Rai, it displays first 5 entities of file.

After clicking "submit" if you get blue screen and three (Red, Green,
Blue) mutually perpendicular lines, it is an indication that your file
uploaded successfully. If you are still unable to see any model, try
to zoom in and / or out with scroll of your mouse.

I tested this application with sample database files that are shipped
with BRL-CAD source code, it worked perfectly with all but it took
larger time for files that have large number of entities such as
havoc.g and sphflake.g but it finally visualized the models.

It failed only for erroneous model files like pic.g.

Source code is available at GitHub: https://github.com/harman052/geometry_viewer

Here are some screenshots:
http://202.164.53.122/~harman/images/sgi.jpg
http://202.164.53.122/~harman/images/toyjeep.png
http://202.164.53.122/~harman/images/truck.png
http://202.164.53.122/~harman/images/sphflake.png
-- 
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

Reply via email to