Beispiel #1
0
        private void mt5Control_OnSelectedVertexChanged(object sender, Vertex e)
        {
            TreeNode node = treeView_MeshNodes.SelectedNode;

            if (node == null || node.Level == 0)
            {
                return;
            }
            ModelNode modelNode = (ModelNode)node.Tag;

            ShenmueDKSharp.Matrix4 matrix = modelNode.GetTransformMatrix();
            Vertex vert = new Vertex(e);

            vert.Position = ShenmueDKSharp.Vector3.TransformPosition(vert.Position, matrix);
            view3D.SetSelectedVertex(vert);
        }