Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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
On 03/04/2011 at 08:12, xxxxxxxx wrote:
DUH! Sorry,, rad should have been as Real. Thanks