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

    TraceGeometry, API wrong

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 361 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 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 Offline
        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 Offline
          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 Offline
            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