---------- Initial Header -----------
>From : [EMAIL PROTECTED]
To : [email protected]
Cc :
Date : Wed, 01 Feb 2006 16:35:44 +0100
Subject : Re: [Opensg-users] Intersect questions
Ok, but I've wrapped my nodes in C++ classes. I need to find which of my own
objects was hit.
I think my techniques of writing the ID of the object into the model could work
but I don't want to fill the whole scenegraph...
I suppose I could fill just the geometry nodes... Is this OK?
Esimio prof. Antonio Lioy
> Hello Antonio,
>
> I have my model directly set under the scene root which is a GroupNode. So I
> compare the parent of the hidden node until it is the scene root.
>
> if(m_intersectAct->didHit()) {
> hiddenObj = m_intersectAct->getHitObject();
> while(hiddenObj->getParent() != m_scene) {
> hiddenObj = hiddenObj->getParent();
> }
> }
>
> So hiddenObj is now the object directly under root.
>
> --
> Love&Peace...
> Christian Kanthak
> University of Bremen
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
>
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users