Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 20/03/2003 at 12:05, xxxxxxxx wrote:
User Information: Cinema 4D Version: 8.100 Platform: Windows ; Language(s) : C++ ;
--------- The subject says it all. Is there a better method, or does the polygon selection's center need to be calculated by getting the object's polygon and point arrays, indexing into the polygon array from the SelectionTag's GetRange(), and then indexing into the point array from each polygon before doing the actual calculation math? Thanks, Robert
On 21/03/2003 at 02:44, xxxxxxxx wrote:
I think you have to do it the way you described. There is a 'getHelperAxis()' method in the baseObject class, but (from memory) that just tells you where the effective axis is for multiple-object selection, I don't think it works for point/edge/poly selections.
Cheers - Steve
On 21/03/2003 at 04:49, xxxxxxxx wrote:
Yes, that's the way. Since array access is O(1) I don't think it will affect the performance very much.
On 21/03/2003 at 07:56, xxxxxxxx wrote:
Okay. Not worried about performance as much as obsfucation. Get's a little messy. Thanks, Robert