you can set just one vertex, of course.
If you want to change just one position, you just point to the index in the
vertexdata, and use set vertexdata position()
set vertexdata position 12,0,15,0
that would set the vertex at position 12 in the
vertexdata to the coordinates 0,15,0
do not confuse indexdata and vertexdata.
Indexdata is a list of 3 vertexes that make up a triangle.
If you change the indexdata, you change the triangles, not the vertex. So, say you have three vertexes,
0,0,0
0,0,1
1,0,1
this makes a righthand drawn triangle
in the vertexdata the first coordinate is index 0
the second is 1
the third is 1
in the index data, there would only be one index and it would be 0
the data for the index of 0 would be 0,1,2
because 0 is the first coordinate in the vertexdata
1 is the second one
2 is the third one
if you change the indexdata to say, 0,1,1 it won't draw anything, because those coordinates can't make a triangle
Can I give you a tip, something I've been doing that really helps me out?
When I make a mesh, and I want to see what is going on, I use the save mesh command to write an .x file. then, I just open the file to see what the heck is going on.
Sprinkle these save meshes before and after you modify a mesh, and you can see your changes. Just remember to save the file names different, because unlike all the other file stuff, you can rewrite over an existing .x file.