Zhao, > I have read raytrace.h, nmg.h, given email list and some other info. Are we > almostly sure that > model and nmgregion are exactly useless and should be removed? And If I do > so, how about the > places (I don't know how much exactly) using them. All such places should be > done the > corresponding modification...or maybe I needn't concern about this thing > now?
The NMG primitive is based on an implementation originally designed for a stand-alone NMG CAD. That's why we have redundant structures there. The model represents the whole geometry similar to the content of a BRL-CAD *.g file and nmgregion is similar to the BRL-CAD region struct. I.e. we can reproduce the behavior of model and nmgregion with BRL-CAD capabilities. Furthermore, theses structures are totally invisible for general BRL-CAD routines. All shells of a model could be put into a single shell and the ray-trace would still look the same. And even more, there are routines which will get confused if they find more than one shell in an NMG primitive. You can look for the relevant places by removing the accompanying functions and looking who complains during the compilation. However, there could be an issue (probable solvable) with the g-asc and asc-g programs (conversion between the binary ans ASCII version of BRL-CAD database). These programs definitely look for the internal structure of the NMG primitive. Regards, daniel ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ BRL-CAD Developer mailing list brlcad-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-devel