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

    Get all neighboring polys

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 262 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 09/02/2009 at 17:03, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10.1 
      Platform:   Windows  ; Mac  ;  
      Language(s) :     C++  ;

      ---------
      Hi,

      I already had a look at the Neighbor class, but didn't quite find what I was looking for...

      I'm trying to get the neighbor polygons of a given polygon. Finally, I want to make a function that starts with a polygon and selects a random neighboar polygon. Then again a random neighbor of that poly, and so on...

      Any tipps? Thanks in advance 🙂

      Greetings,
      Jack

      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 09/02/2009 at 19:52, xxxxxxxx wrote:

        The easiest solution besides the Neighbor class would be to check the other polygons for one matching vertex index. If there is one, see if there is a matching vertex index on either side of it.

        I would think that Neighbor.GetEdgePolys() would be best. Pass in each edge in turn to get all of the neighbors. Pass in a random edge to get random neighbors

        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 10/02/2009 at 04:15, xxxxxxxx wrote:

          That seems like a good approach.
          Thanks Robert, I'll try that 🙂

          Cheers,
          Jack

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