예제 #1
0
        private void _OnImported(object sender, RoutedEventArgs e)
        {
            var meshData = Tests.TestImport();

            _mesh    = MeshUtil.ConvertTo(meshData);
            MeshData = MeshUtil.ConvertTo(_mesh);
        }
예제 #2
0
        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);
                }
            }
        }