Lines Matching refs:nT

228 	for(nCurr = 0; nCurr < psMesh->nT; nCurr++) {  in FindOrCreateTriangle()
242 psMesh->pT[psMesh->nT].wE0 = wE0; in FindOrCreateTriangle()
243 psMesh->pT[psMesh->nT].wE1 = wE1; in FindOrCreateTriangle()
244 psMesh->pT[psMesh->nT].wE2 = wE2; in FindOrCreateTriangle()
254 psMesh->pT[psMesh->nT].w[0] = psE0->wV1; in FindOrCreateTriangle()
256 psMesh->pT[psMesh->nT].w[0] = psE0->wV0; in FindOrCreateTriangle()
259 psMesh->pT[psMesh->nT].w[1] = psE1->wV1; in FindOrCreateTriangle()
261 psMesh->pT[psMesh->nT].w[1] = psE1->wV0; in FindOrCreateTriangle()
264 psMesh->pT[psMesh->nT].w[2] = psE2->wV1; in FindOrCreateTriangle()
266 psMesh->pT[psMesh->nT].w[2] = psE2->wV0; in FindOrCreateTriangle()
269 CrossProduct(&psMesh->pT[psMesh->nT].vNormal, pv0, pv1, pv2); in FindOrCreateTriangle()
272 psMesh->pT[psMesh->nT].nWinding = 0; in FindOrCreateTriangle()
273 if(memcmp(&psMesh->pV[psE0->wV0], pv0, sizeof(*pv0)) == 0) psMesh->pT[psMesh->nT].nWinding |= 0x01; in FindOrCreateTriangle()
274 if(memcmp(&psMesh->pV[psE1->wV0], pv1, sizeof(*pv1)) == 0) psMesh->pT[psMesh->nT].nWinding |= 0x02; in FindOrCreateTriangle()
275 if(memcmp(&psMesh->pV[psE2->wV0], pv2, sizeof(*pv2)) == 0) psMesh->pT[psMesh->nT].nWinding |= 0x04; in FindOrCreateTriangle()
277 psMesh->nT++; in FindOrCreateTriangle()
322 _ASSERT(psMesh->nT == nNumFaces); in PVRTShadowVolMeshCreateMesh()
326 _RPT2(_CRT_WARN, "Unique triangles: %d (from %d)\n", psMesh->nT, nNumFaces); in PVRTShadowVolMeshCreateMesh()
333 psMesh->pT = (PVRTShadowVolMTriangle*)realloc(psMesh->pT, psMesh->nT * sizeof(*psMesh->pT)); in PVRTShadowVolMeshCreateMesh()
349 for(nTri = 0; nTri < psMesh->nT; nTri++) { in PVRTShadowVolMeshCreateMesh()
402 _ASSERT(psMesh->nT); in PVRTShadowVolMeshInitMesh()
507 _ASSERT(psMesh->nT); in PVRTShadowVolMeshInitVol()
509 …_RPT1(_CRT_WARN, "ShadowMeshInitVol() %5lu byte IB\n", psMesh->nT * 2 * 3 * sizeof(unsigned short)… in PVRTShadowVolMeshInitVol()
515 psVol->nIdxCntMax = psMesh->nT * 2 * 3; in PVRTShadowVolMeshInitVol()
519 sIdxBuferDesc.ByteWidth = psMesh->nT * 2 * 3 * sizeof(unsigned short); in PVRTShadowVolMeshInitVol()
538 …pContext->pglExt->glBufferDataARB(GL_ARRAY_BUFFER_ARB, psMesh->nT * 2 * 3 * sizeof(unsigned short)… in PVRTShadowVolMeshInitVol()
542 psVol->piib = (unsigned short*)malloc(psMesh->nT * 2 * 3 * sizeof(unsigned short)); in PVRTShadowVolMeshInitVol()
689 for(nCurr = 0; nCurr < psMesh->nT; ++nCurr) in PVRTShadowVolSilhouetteProjectedBuild()