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
    • Register
    • Login

    Extrude does not work

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 233 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 23/11/2005 at 02:43, xxxxxxxx wrote:

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

      ---------
      Hi there,
      i've got a problem here. I'm trying to extrude all polygons of a PolygonObject:

        
           //Select all  
           ModelingCommandData cd1;  
           cd1.doc = GetActiveDocument();  
           cd1.op = pObj;  
           cd1.mode = MODIFY_POLYGONSELECTION;  
           if (!SendModelingCommand(MCOMMAND_SELECTALL, cd1)) GePrint("could not select all");  
        
           //Extrude  
           BaseContainer bc;  
           bc.SetReal(MDATA_EXTRUDE_OFFSET, 2.0);  
        
           ModelingCommandData cd;  
           cd.doc = GetActiveDocument();  
           cd.op = pObj;  
           cd.bc = &bc;  
        
           if (!SendModelingCommand(ID_MODELING_EXTRUDE_TOOL, cd)) GePrint("could not extrude");  
      

      am i missing something? the SendModelingCommand() for extrude returns false, but if i replace MDATA_EXTRUDE_OFFSET with MDATA_EXTRUDEINNER_OFFSET and ID_MODELING_EXTRUDE_TOOL with ID_MODELING_EXTRUDE_INNER_TOOL an inner extrude is done.
      do i have to do something special for extrude (whereas inner extrude is workin with the "same" code)

      thanks in advance,

      affa

      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 24/11/2005 at 02:13, xxxxxxxx wrote:

        got it:
             cd.mode = MODIFY_POLYGONSELECTION;
        is needed... but why isn't this needed for an inner extrude? anyway... it's working 🙂

        greetings,

        affa

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