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

    DrawPolygonObject() and intersections

    SDK Help
    0
    2
    60
    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 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
        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