private void _OnImported(object sender, RoutedEventArgs e) { var meshData = Tests.TestImport(); _mesh = MeshUtil.ConvertTo(meshData); MeshData = MeshUtil.ConvertTo(_mesh); }
private void _glPanel3D_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { var downP = _glPanel3D.GetPosition(); var rets = _glPanel3D.HitTest(downP); if (rets.Count() > 0) { var first = rets.First(); if (first.Mesh.Type == MeshType.Triangle) { var t = (TriangleMesh)first.Mesh; _mesh.DeleteVertex(t.Index1); MeshData = MeshUtil.ConvertTo(_mesh); } } }