Memory for an object



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

    On 08/02/2003 at 09:47, xxxxxxxx wrote:

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

    ---------
    How do I find out how much memory a polygonobject takes? In Cinema 4D when I right click on a polyobject, there´s an object information that approximately tells you how much. I want this information too. Is there a (fast, not necessary but would be fine :) way to get those?
    Thanks



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

    On 08/02/2003 at 09:48, xxxxxxxx wrote:

    PS.: This is not for memory allocation, I need it in KB (guess the amount in the RAM for this object)



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

    On 08/02/2003 at 10:19, xxxxxxxx wrote:

    Hi Samir,

    I guess the biggest part of a polygon object takes the node list (array of Vector) and the polygon list (array of Polygon). Edges "exist" explicitly only when they are selected.

    So a good size estimation should be::
    <CODE> sizeData = obj->GetPointCount()*sizeof(Vector) + obj->GetPolygonCount()*sizeof(Polygon);</code>

    Then you have to add the size of the selection lists, which seem to be dynamically.

    Ciao,
    Marcus



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

    On 09/02/2003 at 01:33, xxxxxxxx wrote:

    Thanks I will try that!
    Best
    Samir


Log in to reply