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

    Point Retrieval

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 174 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 14/09/2009 at 17:11, xxxxxxxx wrote:

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

      ---------
      How do I get the location of the point that has an index 1 higher than objPoly->GetPointW()->x;

      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 14/09/2009 at 17:19, xxxxxxxx wrote:

        Not sure that I follow. GetPointW/R() returns a Vector* array with number of elements GetPointCount(). So, to index into the array, you do something like this:

        Vector* vadr = objPoly->GetPointW();
        if (!vadr) return FALSE;
        LONG vcnt = objPoly->GetPointCount();
        for (LONG j = 0L; j != vcnt; ++j)
        {
           GePrint("objPoly Vector["+LongToString(j)+"] = "+RealToString(vadr[j].x)+", "+RealToString(vadr[j].y)+", "+RealToString(vadr[j].z));
        }

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