Lines Matching refs:pMesh
132 SMesh * const pMesh,
215 const SMesh * const pMesh);
239 SMesh * const pMesh,
543 SMesh * const pMesh, in SplitMesh() argument
554 pTmp = pMesh->ppVtx[i]; // Keep a record of the old vtx that's already here in SplitMesh()
556 pMesh->ppVtx[i] = ppVtx[i]; // Move the new vtx into place in SplitMesh()
560 ppVtx[i]->ppMeshPos = &pMesh->ppVtx[i]; // Tell the new vtx where it is now in SplitMesh()
562 _ASSERT(pMesh->ppVtx[i]->nTriNumFree); in SplitMesh()
566 sNew.ppVtx = pMesh->ppVtx; in SplitMesh()
569 pMesh->ppVtx = &pMesh->ppVtx[nVtxNum]; in SplitMesh()
570 pMesh->nVtxNum -= nVtxNum; in SplitMesh()
571 if(pMesh->nVtxNum < m_nVtxLimit) { in SplitMesh()
572 ResizeMesh(pMesh->nVtxNum, pMesh->ppVtx); in SplitMesh()
998 const SMesh * const pMesh) in Add() argument
1003 for(i = 0; i < pMesh->nVtxNum; ++i) { in Add()
1004 pVtx = pMesh->ppVtx[i]; in Add()
1193 SMesh * const pMesh, in FillFrom() argument
1211 pOb->SplitMesh(pMesh, m_sOpt.nVtxNum, m_sOpt.psVtx); // Split the sub-mesh into its own mesh in FillFrom()
1227 SMesh *pMesh; in Fill() local
1233 pMesh = &pOb->m_vMeshLg.back(); in Fill()
1238 for(i = 0; i < pMesh->nVtxNum; ++i) { in Fill()
1239 pVtx = pMesh->ppVtx[i]; in Fill()
1242 if(FillFrom(pMesh, pVtx, pOb)) in Fill()
1249 for(i = 0; i < pMesh->nVtxNum; ++i) { in Fill()
1250 pVtx = pMesh->ppVtx[i]; in Fill()
1253 if(FillFrom(pMesh, pVtx, pOb)) in Fill()
1284 pMesh = &pOb->m_pvMesh[i].back(); in Fill()
1285 m_sOptBest.Add(pMesh); in Fill()
1301 pMesh = &pOb->m_pvMesh[i].back(); in Fill()
1303 _ASSERT(pMesh->ppVtx[0]->nTriNumFree); in Fill()
1304 _ASSERT(!m_sOpt.UsingVertex(pMesh->ppVtx[0])); in Fill()
1306 m_sOpt.AddVertex(pMesh->ppVtx[0]); in Fill()
1443 SMesh *pMesh; in PVRTGeometrySort() local
1445 pMesh = &sOb.m_pvMesh[nMeshToResize].back(); in PVRTGeometrySort()
1446 sOb.ResizeMesh(pMesh->nVtxNum, pMesh->ppVtx); in PVRTGeometrySort()