N-Gon Points list

  • 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.

  • 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.

  • 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.

  • 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.

Log in to reply