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

    Object transformation

    SDK Help
    0
    4
    413
    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 24/05/2003 at 11:54, xxxxxxxx wrote:

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

      ---------
      Hi,
      I write with the first psotive results on my NPR renderer. But at the moment it is only working for polygons and not for lathe, extrue and hyper nurbs objects etc. The problem is that I need all points and polygons of the object. Is there any possibility to transform this kind of objects to get the polygons and points of the object without make the "editable" because after this command everybody know that you can't change the parameters of this kind objects.
      I hope you understand my problem
      Thanks
      Cathleen

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

        You can use SendModelingCommand() to get a temporary "editable" object with MCOMMAND_CURRENTSTATETOOBJECT. There's an example in the docs.

        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 27/05/2003 at 05:07, xxxxxxxx wrote:

          Hi,
          thank you. But after this I need triangles and when I want to triangulate the objects after MCOMMAND_CURRENTSTATETOOBJECT the MCOMMAND for triangulation didn't work. Have anybody a idea?
          Thanks
          Cathleen

          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 27/05/2003 at 23:48, xxxxxxxx wrote:

            Didn't work how? This code worked:

                
                
                  BaseObject* obj = doc->GetFirstObject();
                
                
                
                
                  ModelingCommandData d1;  
                  d1.doc = doc;  
                  d1.op = obj;  
                    
                  SendModelingCommand(MCOMMAND_CURRENTSTATETOOBJECT, d1);
                
                
                
                
                  ModelingCommandData d2;  
                  d2.op = d1.result1;
                
                
                
                
                  SendModelingCommand(MCOMMAND_TRIANGULATE, d2);
                
                
                
                
                  doc->InsertObject(d2.op, NULL, NULL);
                
                
                
                
                  EventAdd();
            

            (Note that the triangulation occurs directly on d2.op, so d2.result2 is NULL.)

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