Subdivide Question



  • 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



  • 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



  • 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!



  • 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


Log in to reply