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
    • Recent
    • Tags
    • Users
    • Login
    The Maxon SDK Team is currently short staffed due to the winter holidays. No forum support is being provided between 15/12/2025 and 5/1/2026. For details see Maxon SDK 2025 Winter Holidays.

    Center of Polygon SelectionTag?

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 550 Views
    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 Offline
      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 Offline
        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 Offline
          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 Offline
            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