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

    Check how many edges connected to point

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 317 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 08/12/2015 at 10:54, xxxxxxxx wrote:

      What I want to do is check how many edges is connected to a point and delete the points that only has two edges connected to it. Hope it makes sense😊

      Thanks

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

        On 08/12/2015 at 13:05, xxxxxxxx wrote:

        You can look at this in a different way.
        If a point is only connected by two edges, this means those two edges are from the same polygon (right?).
        There is this Neighbor.GetPointPolys(pnt) function to get the polygons sharing a point.
        So, if the returned list only contains a single polygon, you have your point to be deleted.

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

          On 09/12/2015 at 01:29, xxxxxxxx wrote:

          Hello,

          as C4DS pointed out, you can use the Neighbor class to get useful information for such tasks.

          Best wishes,
          Sebastian

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