I'm trying to dynamically create a 3D object with Memblock meshes.
However, I need to be able to position the meshes inside the new 3D Object.
How do I offset/set the Position of a mesh inside of a Memblock?
Essentially I'm trying to combine several Clones of a 3D Object into a single 3D Object.
Make a forest 3D Object out of a tree 3D Object for example.
LoadObject( NewObject , "Base.obj" )
LoadObject( TreeObj , "TestTree.obj" )
FOR z = 1 TO 8
FOR x = 1 TO 8
TheMemBlock = CreateMemblockFromObjectMesh( TreeObj, 1 )
//Offset??
AddObjectMeshFromMemblock( NewObject, TheMemBlock )
DeleteMemblock(TheMemBlock)
NEXT x
NEXT z
Looks like I could use SetMeshMemblockVertexPosition( memID, vertexIndex, x, y, z ) to offset all of the vertices.
However how do I get the vertex count of any given 3D Object or Mesh?