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

    Cap Holes

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 260 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 16/12/2009 at 19:58, xxxxxxxx wrote:

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

      ---------
      Any suggestions for how to cap holes in a polygon object? (holes may be n-gons)

      I'm looking for the equivalent of the Close Polygon Holes modeling tool.

      I tried calling that tool in a modeling command, but it is not documented, so I could not get it to work. Not even sure if it would work or not, as it expects user interaction.

      I could create a brand new n-gon and fuse it with the original object. Just not sure how to determine the correct point order for the n-gon creation. Any insight there?

      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 16/12/2009 at 21:29, xxxxxxxx wrote:

        Nevermind. I got it 🙂

        I'm using the neighbor class to find all edges that share a polygon and then melt them. The result is a cap, which I then merge back with the original object.

        Seems simple enough.

        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 16/12/2009 at 23:38, xxxxxxxx wrote:

          Actually, while this works, it is slow to do with lots of polygons. So, any better ideas?

          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 20/12/2009 at 05:30, xxxxxxxx wrote:

            If you have all the edges, can't you sort them by connection, then walk the end vertices to generate the order for creating the ngon?

            In other words, if you have AB GH CD EF BC FG DE GA sort to AB BC CD DE EF FG GA -> BCDEFGA ( or GFEDCBA)?

            I guess I must be missing some aspect of the question.

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