Ok, well from the tital you can pick out that this has to do with vertexs.
i've done some searching in the forum about it but that infomation isnt very helpfull.
i got a list of problems in trying to sort out.
### Problem List ###
1 -> Making To Vertex Points As One
im trying to work out how i can make to points the same. see i've got a grid which has multiple points at the same spot and im try to join them all together
2 -> Finding Vertex Points
ok, i've made progress on this one. i made a grid of say 5x5 (128sqr) tiles. problem is that i get the vertex points of the first tile but thats it and i think i've made it right but its not working. the next code box has the code.
void VertexSetup ( )
{
//int variables
int i,ii,Vc,n,ObjId,tt,MeshIds,ArrId,NArrId,a;Vc=0;
ObjId=1;MeshIds=2;n=0;ArrId=1;NArrId=1;a=500;tt=1;
//make a plane to clone
dbMakeObjectPlane(ObjId,128,128);
dbXRotateObject (ObjId , -90 );
dbColorObject (ObjId,dbRGB(0,85,0));
ObjId++;
//setup arrays
for(i = 0;i<96;i++)
{
//define the globals
GridObjectId[i]=-1;
GridMeshId[i]=-1;
GrixPointX[i]=-1;
GrixPointY[i]=-1;
GrixPointZ[i]=-1;
GridBoxPoint[i]=-1;
}
//make the plane
for(i=0;i<5;i++)
{
for(ii=0;ii<5;ii++)
{
//make the object
dbCloneObject(ObjId,1);
dbPositionObject (ObjId,i*128+(i*32),0,ii*128+(ii*32));
//dbSetObjectWireframe(ObjId,true);
ObjId++;
}
}
//make the mesh
for(i=2;i<=ObjId;i++)
{
//make the mesh
dbMakeMeshFromObject(MeshIds,i);
//start of vertex
dbLockVertexDataForMesh(MeshIds);
Vc = dbGetVertexDataVertexCount(); //get vertexs
for (n = 0;n < Vc;n++)
{
GrixPointX[ArrId] = Floor(dbGetVertexDataPositionX(n));
GrixPointY[ArrId] = Floor(dbGetVertexDataPositionY(n));
GrixPointZ[ArrId] = Floor(dbGetVertexDataPositionZ(n));
ArrId++;
}
dbUnlockVertexData();
//end of mesh making
for (n = 0;n < Vc;n++)
{
//make point objects
dbMakeObjectCube(a,25);
dbColorObject(a,dbRGB(255,255,255));
dbPositionObject(a,GrixPointX[NArrId],GrixPointY[NArrId],GrixPointZ[NArrId]);
GridBoxPoint[tt]=a;
ObjId++;NArrId++;a++;tt++;
}
MeshIds++;
}
}
so far these are the problems. it might be hard to understand but i really need help with and would be a big help if solved.
Problem Solution That Never Fails: "Build A Bridge And Get Over It"