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

    N-Gon Points list

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 1.1k 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

      On 06/06/2018 at 02:03, xxxxxxxx wrote:

      I have got a simple polygon existing of only one N-Gon.
      In Python I would like to get the list of points in the same order as they are in the Structure-tab as shown in the picture.
      I work in Release 18 so I can apparently not use the GetNGonTranslationMap.
      Any help or hint much appreciated.
      For 1 polygon I can do it by hand, but I have got 1500 to work through.

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

        On 07/06/2018 at 01:49, xxxxxxxx wrote:

        Hi and Welcome to the Plugin Cafe!

        I'm afraid there's no way to obtain Ngon information in R18 with the Python API.
        PolygonObject.GetNGonTranslationMap() was missing and PolygonObject.GetNgonEdgesCompact() was broken.

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

          On 07/06/2018 at 02:41, xxxxxxxx wrote:

          Sorry, PolygonObject.GetNgonEdgesCompact() was never broken and can help obtaining N-gons points in association with Neighbor.GetPolyInfo().
          Various code snippets related to N-gons were posted in this topic.

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

            On 07/06/2018 at 09:08, xxxxxxxx wrote:

            Thanks for showing me the way. My search in the Forum did not lead me to the topic you referred.

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