public void ComputeLines(object parameter) { MeshPoints.DrawRawLines(); MeshPoints.DrawMeshLines(); MeshPointsControl.lblRawLinesInfo.Text = "Raw Lines: " + meshPoints.RawLines.Count; MeshPointsControl.lblMeshLinesInfo.Text = "Mesh Lines: " + meshPoints.MeshLines.Count; }
private void ComputeLines_OnClick(object sender, RoutedEventArgs e) { if ((meshPoints.Points != null) && (meshPoints.Points.Count > 0)) { //meshPoints.DrawRawLines(); meshPoints.DrawMeshLines(); UpdateGraphics(); } else { MessageBox.Show("Load points!", "Warning!"); } }