triangle3df

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Joe Red
Posts: 9
Joined: Tue Oct 31, 2006 11:10 am

triangle3df

Post 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
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post 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:
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

triangle3df = triangle3d<f32>, not triangle3d<S3DVertex>, so you can't get texture coords without searching for the triangle within the mesh
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Joe Red
Posts: 9
Joined: Tue Oct 31, 2006 11:10 am

Post by Joe Red »

I don't need the texture coords, just the coords of the triangle's verts in the 3d universe.
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post 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... ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Post Reply