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

    Issues with Len()

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 204 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 03/04/2011 at 07:53, xxxxxxxx wrote:

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

      ---------
      I am trying to use the Len() function in the R12 SDK and I keep getting these errors...

        
      error C2665: 'LVector::LVector' : none of the 5 overloads could convert all the argument types  
      1>        c:\program files\maxon\cinema 4d r12 demo\resource\_api\ge_lvector.h(12) : could be 'LVector::LVector(LReal,LReal,LReal)'  
      1>        while trying to match the argument list '(const LVector, LReal, LReal)'  
      1>c:\program files\maxon\cinema 4d r12 demo\plugins\universal manipulator\source	ool\universalmanipulator.cpp(290) : error C3767: 'Len': candidate function(s) not accessible  
      1>        could be the friend function at 'c:\program files\maxon\cinema 4d r12 demo\resource\_api\ge_vector.h(181)' : 'Len'  [may be found via argument-dependent lookup]  
      1>        or the friend function at       'c:\program files\maxon\cinema 4d r12 demo\resource\_api\ge_lvector.h(183)' : 'Len'  [may be found via argument-dependent lookup]  
      

      Here's how I am using Len();

        
      LReal    rad2 =    toolSize * Len(ScreenToWorld(Vector(ctr.x + rad * 0.5, ctr.y, ctr.z), bd, proj)-ScreenToWorld(ctr, bd, proj));  
          
        
      

      ScreenToWorld returns an LVector, ctr is also an LVector as is rad..    🙂

      Anyone know why I would be getting this error?

      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 03/04/2011 at 08:12, xxxxxxxx wrote:

        DUH!  Sorry,,   rad should have been as Real.  🙂   Thanks

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