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

    Subdivide Question

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 386 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 25/09/2012 at 17:03, xxxxxxxx wrote:

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

      ---------
      Hey everyone,

      I am using

        
      ModelingCommandData mcd2;  
      BaseContainer bc2;  
      bc2.SetBool(MDATA_SUBDIVIDE_HYPER, FALSE);   
      bc2.SetReal(MDATA_SUBDIVIDE_SUB, 1);  
      bc2.SetReal(MDATA_SUBDIVIDE_ANGLE, pi);  
      mcd2.bc = &bc2;  
      mcd2.op = obj;  
      mcd2.mode = MODELINGCOMMANDMODE_ALL;  
      mcd2.doc = doc;  
          
      if(SendModelingCommand(MCOMMAND_SUBDIVIDE, mcd2)){}   
      

      I was wondering if it is possible to access the new points that were created as a result of this?
      I don't want to original points that already existed,  just the new ones that were created.  Is this possible?

      Thanks,

      Shawn

      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 25/09/2012 at 17:17, xxxxxxxx wrote:

        Howdy,

        I believe most of the time when new points are added like that, they're simply added to the end of the points array. For example if the original cube has 8 points { indices 0 through 7}, the first new point after subdividing would be at index 8.

        You can test that in Cinema 4D by subdividing a cube and looking in the Structure Manager. You'll notice that the first 8 points are still at the original cube's corners.

        Adios,
        Cactus Dan

        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 25/09/2012 at 17:28, xxxxxxxx wrote:

          YES!  Awesome .. thanks Dan!

          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 25/09/2012 at 17:34, xxxxxxxx wrote:

            Howdy,

            You're welcome. 😉

            There are some tools that don't simply add new points to the end. I've encountered that before but I can't remember which tools they were.

            Adios,
            Cactus Dan

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