} // private void SetDrawCellsIndexAll() public void _drawText3D_SeqCells(CTriCollector tricollector, List <int> listCellsIdx) { if (null == m_drawText3DStartCell || listCellsIdx.Count < 1) { return; } m_drawText3DStartCell.clear3DTextAll(); if (listCellsIdx.Count > 0) { Quaternion quaternionCoreText3D = new Quaternion(); Vector3 v3Position; int iSequencialNumber = 0; foreach (int iIdxTri in listCellsIdx) { if (iIdxTri < 0) { continue; } v3Position = tricollector.getTri(iIdxTri).GetCenterTri(); v3Position = v3Position + m_v3PosAdjustText3D; m_drawText3DStartCell.setNew3DText(v3Position, quaternionCoreText3D, m_iFontSizeText3D, m_colorText3D, "" + (iSequencialNumber++) + "(" + iIdxTri + ")", true); } // for (int iSeqBase = 0; iSeqBase < listBase.Count; ++iSeqBase) } } // private void _drawText3D_SeqCells()
private void SetDrawCellsIndexAll(CNAVICELL[] arrNavicells) // 셀 레벨 텍스트를 셀 위에 그린다 { if (null == m_drawText3D_Levels) { return; } m_drawText3D_Levels.clear3DTextAll(); Vector3 v3Position; Vector3 v3PosAdjust = new Vector3(0.1f, 0.01f, -0.1f); Quaternion quaterRotText3D = new Quaternion(); quaterRotText3D.eulerAngles = new Vector3(90.0f, 180.0f, 0.0f); foreach (CNAVICELL navicell in arrNavicells) { v3Position = navicell.getPos_cellCenter() + v3PosAdjust; m_drawText3D_Levels.setNew3DText(v3Position, quaterRotText3D, m_iFontSizeText_Level, Color.red, "" + navicell.leveltogoal + "(" + navicell.seqCell + ")", false); } } // private void SetDrawCellsIndexAll()