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

    How toAdd Points to Polygon

    SDK Help
    0
    3
    351
    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
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 11/09/2003 at 06:43, xxxxxxxx wrote:

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

      ---------
      Hi
      I thought this would be simple to do, but after 2 hours at trying and searching, I give up.
      All I want to do is simply add a point to a polygon object. Basically the same as using the AddPoints command.
      Could someone please explain to me how this is done
      Thanks

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 15/09/2003 at 22:44, xxxxxxxx wrote:

        do somthing like this

            
            
            
            
            point_cnt=ToPoint(op)->GetPointCount();
            
            
            
            
            poly_count=ToPoly(op)->GetPolygonCount() :
            
            
            
            
            ToPoly(op)->ResizeObject( poly_count, point_cnt+1 );
            
            
            
            
            now your object has 1 more point than it had before.
            
            
            
            
            you have to get the pointer to  points **after** you resized/ same for polys if they changed.
            
            
            
            
              
            
            
            
            
             
            
            
            
            
             
            
            
            
            
             
            
            
            
            
             
            
            
            
            
             
            
            
            
        

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 20/09/2003 at 16:36, xxxxxxxx wrote:

          Thank you, that was exactly what i was after

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