i wanna glue one mesh to another, and always
getVertexCount(...) got this same results...
doesnt work this or what?
both meshbuffer are these same types, from file format B3D.
Code: Select all
if(first->getMeshBufferCount() != 1) return false;
if(minor->getMeshBufferCount() != 1) return false;
IMeshBuffer *mbFirst = first->getMeshBuffer(0);
IMeshBuffer *mbMinor = minor->getMeshBuffer(0);
if(mbFirst->getVertexType() != mbMinor->getVertexType()) return false;
printf("%d %d\n",mbFirst->getVertexCount(),mbMinor->getVertexCount());
// --> result 500,100
mbFirst->append(mbMinor->getVertices(),
mbMinor->getVertexCount(),
mbMinor->getIndices(),
mbMinor->getIndexCount());
printf("%d %d\n",mbFirst->getVertexCount(),mbMinor->getVertexCount());
// --> result 500,100 still this same
but version with:
append(vertices,vertnum,indices,indnum) its not.
this method is bugged or what?