Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    Memory for an object

    SDK Help
    0
    4
    464
    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
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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)

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • H
            Helper
            last edited by

            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

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