Page 1 of 1

Vertex : better managing [Solved Cf Get/SetMeshData() ]

Posted: Sat Jul 13, 2013 11:02 pm
by Olliv
I appreciate faces' available handling in a mesh.
Get the same availability about vertex could be a great step.

Statements example :

Code: Select all

GetVertexPosition(Index.I, *Buffer)
GetVertexColor(Index.I, *Buffer)
GetVertexNormal(Index.I, *Buffer)
GetVertexUV(Index.I, *Buffer)
GetVertex(Index.I, *Buffer) ; All features
SetVertexPosition(Index.I, *Buffer)
SetVertexColor(Index.I, *Buffer)
SetVertexNormal(Index.I, *Buffer)
SetVertexUV(Index.I, *Buffer)
SetVertex(Index.I, *Buffer) ; All features
UpdateMesh(Mesh.I)
UpdateSubMesh(SubMesh.I) ; If technically able

Re: Vertex : better managing

Posted: Sun Jul 14, 2013 11:58 am
by Fred
Get/SetMeshData() is the way to go, it would be to slow to do it in individual commands.