If your node is an SoTransform or SoTranslation, you can downcast to that
type, and access the "translation field", which contains the XYZ coordinates.
Also note that the orientation (right-handed rotation quaternion) can be
accessed from the SoTransform::rotation field.
Here's an example of how we update the SoTransform or SoTranslation node
that's associated with a "material particle", in our simulation.
Hope this helps,
Sugarland Software, Inc.
void ParticleUpdator::handle(Subject*, Execute*)
r, r, r);
r, r, r);
>I've this small problem getting coordinates of a SoNode Object. Could u
>tell me how to get coordinates when i have SoNode object with me?
>pPickedNode = pPath->getNode(pPath->getLength()-3);
>Here I'm getting pointer to a node and I can do other operations using
>pPickedNode but i did not find a method in SoNode class that gives me
>coordinates of this pointer....
>Pl help me how should i get coordinates of pPickedNode?
>Tx in adv
> ----- Posted via NewsOne.Net: Free (anonymous) Usenet News via the Web
> http://newsone.net/ -- Free reading and anonymous posting to 60,000+ groups
> NewsOne.Net prohibits users from posting spam. If this or other posts
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 80,000 Newsgroups - 16 Different Servers! =-----