DrawPolygonObject() and intersections



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



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


Log in to reply