Page 1 of 1

triangle3df

Posted: Sat Dec 30, 2006 6:01 pm
by Joe Red
I couldn't find the answer to my question in the beginners topic, so I have to ask it here too. The question is that if I'we got a triangle3df triangle, how can I acces the coords of the verts of it.

I hope I was understandable, and my question wasn't too newbish

Joe

Posted: Sat Dec 30, 2006 6:14 pm
by Acki
Why you just don't have a look into the reference (Irrlicht help) !?!?!?! :roll:
Look for triangle3d and you'll get all you need !!!
Also the 3 vertices (pointA, pointB and pointC) !!!

The reference is really a magical file !!! :lol:

Posted: Sat Dec 30, 2006 8:16 pm
by bitplane
triangle3df = triangle3d<f32>, not triangle3d<S3DVertex>, so you can't get texture coords without searching for the triangle within the mesh

Posted: Sat Dec 30, 2006 8:38 pm
by Joe Red
I don't need the texture coords, just the coords of the triangle's verts in the 3d universe.

Posted: Sat Dec 30, 2006 10:24 pm
by Acki
Maybe you should learn how to use the API reference !?!?! :roll:

This is the online version:http://irrlicht.sourceforge.net/docu/cl ... gle3d.html
it's also included to the sdk !!!
And it's really all you need... ;)