Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Center of Polygon SelectionTag?

    SDK Help
    0
    4
    542
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        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

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          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.

          1 Reply Last reply Reply Quote 0
          • H
            Helper
            last edited by

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            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

            1 Reply Last reply Reply Quote 0
            • First post
              Last post