Kalpit,

Implementing the missing functions for centroid, volume and surface in
librt for the primitives can be highly non-trivial.  How about
implementing the "rtweight methodology" etc. fall-backs for every
element in librt where an analytic solution is missing?  After doing
so you only had to add the appropriate table functions to Object in
the C++ interface.

However, you should be careful with your algorithm.  It shouldn't
change the elements selected with rt_gettree().  This would cause a
dangerous side effect.


Regards,
    Daniel



2015-03-21 12:32 GMT+01:00 Kalpit Thakkar <ceasy...@gmail.com>:
> Hello Sean!
> I figured it would be better to get your comments on the doc itself. So,
> here is the Google Doc link :
>
> https://docs.google.com/document/d/1RgUDxU3x3IC1r9lba49IlKP9-wJ2PCgAbcwlj7wTlTo/edit?usp=sharing
>
> With Regards,
> Kalpit Thakkar

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to