Maxon Developers
    • Downloads
      • All Downloads
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
      • Cinema 4D Python Examples
      • Cinema 4D C++ Examples
      • Project Tool
      • SDK Database
    • Documentation
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
    • Forum
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Forums
      • Overview
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • News & Information
      • Downloads
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Register
    • Login

    TraceGeometry, API wrong

    SDK Help
    0
    4
    70
    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 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

      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 24/07/2011 at 09:05, xxxxxxxx wrote:

        max distance to trace would probably be the second parameter.

        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 24/07/2011 at 09:10, xxxxxxxx wrote:

          Are you getting an error?

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

          ~Shawn

          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 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

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