Lines Matching refs:nTriNum
162 int nTriNum; // Number of triangles in the block member
669 nTriNum = pSrc->nTriNum; in Copy()
673 memcpy(psTri, pSrc->psTri, nTriNum * sizeof(*psTri)); in Copy()
685 nTriNum = 0; in Clear()
705 for(i = 0; i < nTriNum; ++i) { in Output()
728 *pnTriCnt = nTriNum; in Output()
765 i = nTriNum; in Contains()
783 return !(nVtxNum + nEdgNum + nTriNum); in IsEmpty()
793 return (m_nVtxLimit - nVtxNum) < 3 || nTriNum == m_nTriLimit; in IsFull()
835 for(i = 0; i < nTriNum; ++i) in AddTriangleCheckDup()
839 _ASSERT(nTriNum < m_nTriLimit); in AddTriangleCheckDup()
840 psTri[nTriNum++] = pTri; in AddTriangleCheckDup()
878 _ASSERT(nTriNum < m_nTriLimit); in AddTriangle()
879 psTri[nTriNum++] = pTri; in AddTriangle()
954 fWorth0 = (float)nTriNum / (float)nVtxNum; in IsBetterThan()
955 fWorth1 = (float)pCmp->nTriNum / (float)pCmp->nVtxNum; in IsBetterThan()
965 return nTriNum > pCmp->nTriNum; in IsBetterThan()
988 for(i = 0; i < pSrc->nTriNum; ++i) in Add()
1098 if(pJob->nTriNum >= (m_nTriLimit-m_sOpt.nTriNum)) in AddBestTrianglesAppraise()
1132 _ASSERT(pJob->nTriNum); in AddBestTrianglesAppraise()
1133 _ASSERT(pJob->nTriNum <= (m_nTriLimit-m_sOpt.nTriNum)); in AddBestTrianglesAppraise()
1181 } while(pJobBest && m_nTriLimit != m_sOpt.nTriNum); in AddBestTriangles()
1401 const int nTriNum, in PVRTGeometrySort() argument
1406 CObject sOb(pwIdx, nVertNum, nTriNum, nBufferVtxLimit, nBufferTriLimit); in PVRTGeometrySort()
1421 VGP590Test(&sVGPMdlBefore, pwIdx, nTriNum); in PVRTGeometrySort()
1422 …%d, Vtx: %d, vtx/tri=%f Blocks=%d\n", nTriNum, sVGPMdlBefore.nVtxCnt, (float)sVGPMdlBefore.nVtxCnt… in PVRTGeometrySort()
1425 pwIdxOut = (PVRTGEOMETRY_IDX*)malloc(nTriNum * 3 * sizeof(*pwIdxOut)); in PVRTGeometrySort()
1462 _ASSERT(nTriCnt == nBufferTriLimit || (nBufferVtxLimit - nVtxCnt) < 3 || nOutTriCnt == nTriNum); in PVRTGeometrySort()
1463 } while(nOutTriCnt < nTriNum); in PVRTGeometrySort()
1465 _ASSERT(nOutTriCnt == nTriNum); in PVRTGeometrySort()
1470 memcpy(pwIdx, pwIdxOut, nTriNum * 3 * sizeof(*pwIdx)); in PVRTGeometrySort()
1473 …eTriListPVR() In: Tri: %d, Vtx: %d, vtx/tri=%f\n", nTriNum, nVertNum, (float)nVertNum / (float)nTr… in PVRTGeometrySort()
1477 VGP590Test(&sVGPMdlAfter, pwIdx, nTriNum); in PVRTGeometrySort()
1478 … %d, Vtx: %d, vtx/tri=%f Blocks=%d\n", nTriNum, sVGPMdlAfter.nVtxCnt, (float)sVGPMdlAfter.nVtxCnt … in PVRTGeometrySort()
1493 SortVertices(pVtxData, pwIdx, nStride, nVertNum, nTriNum*3); in PVRTGeometrySort()