TraceGeometry, API wrong

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

On 24/07/2011 at 09:03, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   12 
Platform:   Windows  ;   
Language(s) :   C.O.F.F.E.E  ;

---------
Hy there,

I tried the syntax from the R12 API:

int TraceGeometry(Ray ray, int lhit, vector p, vector n)_<_h4_>_This is not working, there is a parameter missing. Which one ?

I figured out, that the following call will be executed:
id = vd->TraceGeometry(ray,10000,0, &pout, &nout);

But it is just guessing...

Thank you,
maxx

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

On 24/07/2011 at 09:05, xxxxxxxx wrote:

max distance to trace would probably be the second parameter.

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

On 24/07/2011 at 09:10, xxxxxxxx wrote:

Are you getting an error?

Yeah in c++ SDK 2nd argument is max distance.

~Shawn

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

On 24/07/2011 at 09:44, xxxxxxxx wrote:

Hy Shawn,

yes, when using the given syntax of the API the message is "too few parameters". When using the guessed syntax, I get at least a 1 back, which implies something worked ;)

I'll use that parameter as the max-distance, I'll have to check if I am able to get it working correctly like that.

Cheers,
maxx