public void SetTriangle(OrientedTriangle tri) { var t = tri.Triangle; if (t != null) { lbTriangle.Text = t.ID.ToString(); lbV0.Text = t.P0.ToString(); lbV1.Text = t.P1.ToString(); lbV2.Text = t.P2.ToString(); lbN0.Text = t.N0.ToString(); lbN1.Text = t.N1.ToString(); lbN2.Text = t.N2.ToString(); lbS0.Text = GetSegmentString(t.GetSegment(0)); lbS1.Text = GetSegmentString(t.GetSegment(1)); lbS2.Text = GetSegmentString(t.GetSegment(2)); } else { lbTriangle.Text = "-"; lbV0.Text = "-"; lbV1.Text = "-"; lbV2.Text = "-"; lbN0.Text = "-"; lbN1.Text = "-"; lbN2.Text = "-"; lbS0.Text = "-"; lbS1.Text = "-"; lbS2.Text = "-"; } }
public void Update(OrientedTriangle otri) { renderer.SelectTriangle(otri.Triangle == null ? null : otri); this.Render(); }
public void SelectTriangle(OrientedTriangle tri) { selection = tri; }