Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    Changing Points for existing Polys

    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 25/05/2003 at 09:13, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.100 
      Platform:   Windows  ;   
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      I´m pretty new at programming coffee, and I´ve been trying for some time now to change the point-allocation for existing polygons (eg. polygon 0: points 0, 1, 2, 0; change it to polygon 0: points 5, 6, 7, 5; just like it is displayed in the structure manager). How do I set this information? (I looked both into the "Create a polyobject using C.O.F.F.E.E." and "Simple Polygon Problem" threads, but unfortunately I could not figure out how to do this).

      Any help would be appreciated.

      MikeI

      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 26/05/2003 at 01:03, xxxxxxxx wrote:

            
            
            var p = obj->GetPolygon(0);  
            p.a = 5; // Perhaps this should be -> instead of .  
            p.b = 6;  
            p.c = 7;  
            p.d = 5;  
            obj->SetPolygon(0, p);  
            obj->Message(MSG_UPDATE);
        
        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 26/05/2003 at 01:22, xxxxxxxx wrote:

          Thanks, that did the job, now it works like a charm. I had some similar code in my plugin, but like your first version I used p.a to set the polygons, but you need to use p->a to get it working.

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