manipulate single vertex of node

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
knightoflight
Posts: 199
Joined: Sun Aug 24, 2003 5:47 pm
Location: Germany

manipulate single vertex of node

Post by knightoflight »

sorry if its simple, but i cant find: how can i manipulate a single vertex of a node ?
I know that if i have the mesh i get with ->getMeshBuffer(0)->getVertices, but how to get the to the mesh ?
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

You will have to modify the mesh, you cannot get a mesh from a node. That's because some scene nodes do not have meshes.
knightoflight
Posts: 199
Joined: Sun Aug 24, 2003 5:47 pm
Location: Germany

Post by knightoflight »

okay, yes it works - but i have to remember mesh<->node
If i could get the pointer to mesh from node (if the node has a mesh, if not then 0 or -1) it would be nice, maybe for a later version ?
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

maybe.. Or an access method for the mesh if it is a IMeshSceneNode or IAnimatedMeshScene node would be ok too.
Post Reply