//determine when on the model it was selected public void Select(Polygon ply) { //based on the polygon passed in, we need to identify which segment of the model this belongs to m_seltype = eSelType.eWhole; // mark it whole for (int c = psi_base; c < pei_base; c++) { if (ply == m_lstpolys[c]) { m_seltype = eSelType.eBase; } } for (int c = psi_tip; c < pei_tip; c++) { if (ply == m_lstpolys[c]) { m_seltype = eSelType.eTip; } } for (int c = 0; c < m_lstpolys.Count; c++) { m_lstpolys[c].m_color = Color.Yellow; } }
public Support() { tag = Object3d.OBJ_SUPPORT; // tag for support m_supporting = null; this.Name = "Support_" + supcnt.ToString(); supcnt++; mSC = UVDLPApp.Instance().m_supportconfig.Clone(); // start off by cloing the app's defaults SubType = eSubType.eBase; m_seltype = eSelType.eWhole; }
//determine when on the model it was selected public void Select(Polygon ply) { //based on the polygon passed in, we need to identify which segment of the model this belongs to m_seltype = eSelType.eWhole; // mark it whole for (int c = psi_base; c < pei_base; c++) { if(ply == m_lstpolys[c]) { m_seltype = eSelType.eBase; } } for (int c = psi_tip; c < pei_tip; c++) { if (ply == m_lstpolys[c]) { m_seltype = eSelType.eTip; } } for (int c = 0; c < m_lstpolys.Count; c++) { m_lstpolys[c].m_color = Color.Yellow; } }
private int s5i; // top of the head #endregion Fields #region Constructors public Support() { tag = Object3d.OBJ_SUPPORT; // tag for support m_supporting = null; this.Name = "Support_" + supcnt.ToString(); supcnt++; mSC = UVDLPApp.Instance().m_supportconfig.Clone(); // start off by cloing the app's defaults SubType = eSubType.eBase; m_seltype = eSelType.eWhole; }