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

    Request GePrint(more_datatypes!)

    SDK Help
    0
    2
    219
    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 18/08/2005 at 06:30, xxxxxxxx wrote:

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

      ---------
      Dear the lovely people at Maxon.

      Please, please include some more datatypes to be used with GePrint!

      As you know, GePrint(), only supports the String datatype.

      It would be useful if you could include the ability to print more datatypes as standard. I find it annoying having to include my own GePrint routines for every project I start work on.

      For Example

        
      String VectorToString(Vector v)  
      {  
           return "[" + RealToString(v.x) + "," + RealToString(v.y) + "," + RealToString(v.z) + "]";  
      }  
        
      String MatrixToString(Matrix m)  
      {  
           String res;  
           res = "OFF: " + VectorToString(m.off) + GeGetLineEnd() +   
                  "V1:" + VectorToString(m.v1) + GeGetLineEnd() +   
                  "V2:" + VectorToString(m.v2) + GeGetLineEnd() +   
                  "V3:" + VectorToString(m.v3) + GeGetLineEnd();  
           return res;  
      }  
      void GePrint(Matrix m)  
      {  
           GePrint(MatrixToString(m));  
      }  
      void GePrint(Vector v)  
      {  
           GePrint(VectorToString(v));  
      }  
      

      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 18/08/2005 at 09:46, xxxxxxxx wrote:

        Hey, I have those too (nearly identical)! 🙂

        I use a static class called Support (.cpp and .h) to include helper functions like these which is included with my projects. In my case, it's more like Support::GePrint(), so it's not automatic polymorphism, but that doesn't bother me as long as I can print.

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