Getting Point-Coordinates from CPolygon



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 19/06/2008 at 02:32, xxxxxxxx wrote:

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

    ---------
    Hi,
    I got a CPolygon which has .a, .b, .c and .d. All of these are LONG-Values. I didn't know exactly but I think, that value is something like the value of the x-, y- and z-Coordinate in Hex-system or something like that.
    Now I'm trying to get the x-Value of CPolygon _.a. How can I do that?



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 19/06/2008 at 02:56, xxxxxxxx wrote:

    a, b,c, d are indices into the point vector array.

    > \> const Vector \*padr = op->GetPointR(); \> Real xpos = padr[a].x; //the X position, a == CPolygon.a index \>

    cheers,
    Matthias


Log in to reply