Lines Matching refs:pTri
189 bool Contains(const STri * const pTri) const;
197 void AddTriangleCheckDup(STri * const pTri);
201 void AddTriangle(STri * const pTri);
204 STri * const pTri,
457 STri *pTri; in CreateMeshList() local
485 pTri = (*ppR)->psTri[j]; in CreateMeshList()
488 pVtx = &m_pVtx[pTri->pwIdx[k]]; in CreateMeshList()
702 STri *pTri; in Output() local
706 pTri = psTri[i]; in Output()
708 _ASSERT(!pTri->bUsed); in Output()
711 _ASSERT(pOb->m_pVtx[pTri->pwIdx[j]].nTriNumFree > 0); in Output()
712 _ASSERT(pTri->psEdg[j]->nTriNumFree > 0); in Output()
714 --pOb->m_pVtx[pTri->pwIdx[j]].nTriNumFree; in Output()
715 --pTri->psEdg[j]->nTriNumFree; in Output()
717 _ASSERT(pOb->m_pVtx[pTri->pwIdx[j]].nTriNumFree >= 0); in Output()
718 _ASSERT(pTri->psEdg[j]->nTriNumFree >= 0); in Output()
721 pTri->bUsed = true; in Output()
724 memcpy(&pwOut[3*i], pTri->pwIdx, 3 * sizeof(*pTri->pwIdx)); in Output()
761 bool CBlockOption::Contains(const STri * const pTri) const in Contains()
769 if(psTri[i] == pTri) in Contains()
831 void CBlockOption::AddTriangleCheckDup(STri * const pTri) in AddTriangleCheckDup() argument
836 if(psTri[i] == pTri) in AddTriangleCheckDup()
840 psTri[nTriNum++] = pTri; in AddTriangleCheckDup()
874 void CBlockOption::AddTriangle(STri * const pTri) in AddTriangle() argument
879 psTri[nTriNum++] = pTri; in AddTriangle()
883 AddEdgeCheckDup(pTri->psEdg[i]); in AddTriangle()
895 STri * const pTri, in AddOneTriangle() argument
901 AddTriangle(pTri); in AddOneTriangle()
905 AddVertexCheckDup(&pOb->m_pVtx[pTri->pwIdx[i]]); in AddOneTriangle()
1075 STri *pTri; in AddBestTrianglesAppraise() local
1101 pTri = pVtx->psTri[j]; in AddBestTrianglesAppraise()
1104 if(pTri->bUsed || m_sOpt.Contains(pTri) || pJob->Contains(pTri)) in AddBestTrianglesAppraise()
1110 pTri->pwIdx[0] == pTriAppraise->pwIdx[0] || in AddBestTrianglesAppraise()
1111 pTri->pwIdx[0] == pTriAppraise->pwIdx[1] || in AddBestTrianglesAppraise()
1112 pTri->pwIdx[0] == pTriAppraise->pwIdx[2] || in AddBestTrianglesAppraise()
1113 m_sOpt.UsingVertex(&pOb->m_pVtx[pTri->pwIdx[0]]) in AddBestTrianglesAppraise()
1115 pTri->pwIdx[1] == pTriAppraise->pwIdx[0] || in AddBestTrianglesAppraise()
1116 pTri->pwIdx[1] == pTriAppraise->pwIdx[1] || in AddBestTrianglesAppraise()
1117 pTri->pwIdx[1] == pTriAppraise->pwIdx[2] || in AddBestTrianglesAppraise()
1118 m_sOpt.UsingVertex(&pOb->m_pVtx[pTri->pwIdx[1]]) in AddBestTrianglesAppraise()
1120 pTri->pwIdx[2] == pTriAppraise->pwIdx[0] || in AddBestTrianglesAppraise()
1121 pTri->pwIdx[2] == pTriAppraise->pwIdx[1] || in AddBestTrianglesAppraise()
1122 pTri->pwIdx[2] == pTriAppraise->pwIdx[2] || in AddBestTrianglesAppraise()
1123 m_sOpt.UsingVertex(&pOb->m_pVtx[pTri->pwIdx[2]]) in AddBestTrianglesAppraise()
1127 pJob->AddTriangle(pTri); in AddBestTrianglesAppraise()
1147 STri *pTri; in AddBestTriangles() local
1162 pTri = pVtx->psTri[j]; in AddBestTriangles()
1164 if(pTri->bUsed || m_sOpt.Contains(pTri)) in AddBestTriangles()
1168 if(!AddBestTrianglesAppraise(pJob, pOb, pTri)) in AddBestTriangles()