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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    DrawPolygonObject() and intersections

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 359 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 22/09/2006 at 01:05, xxxxxxxx wrote:

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

      ---------
      Most likely noone knows how to do this, but I'll ask anyway while doing my experiments (GeRayCollider).

      For my tool plugin, I draw polygon objects to the views for ToolData::Draw() using BaseDraw::DrawPolygonObject(). These represent visual controls exactly like those used by Cinema 4D's Move/Scale/Rotate tools.

      These polygon objects *obviously* donot exist in the document (as they are visual controls drawn into the view).

      The question arises: how would I detect if the cursor is over one of these polygon objects in any view projection in order to highlight it?

      Good question, heh?

      1000 points to the genius who can provide a method before I respond back with mine. 🙂

      Thanks,

      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 22/09/2006 at 02:32, xxxxxxxx wrote:

        Beat ya! 😉 1000 points to Gryffindor.

        Yes, GeRayCollider will work. Can't do 'op->GetMg()' as the op is not in the document, so I just need to use the matrix used for op->SetMg(). Cool!

        Thanks,

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