This macro will find the center of mass of an arbitrary object, capable 
of dealing with any type of object that pov can render. This macro has 
an efficiency of O(k*n^2), instead of the 'naive' approach of O(n^3).
Further explanation of how this macro works can be found in the comments 
in the code, and in the p.general thread 
http://news.povray.org/povray.general/thread/%3C4aa18d71%241%40news.povray.org%3E/
CShake
 
 Post a reply to this message 
 
Attachments: 
Download 'us-ascii' (5 KB)
 
  
 |