Object3DManagerCopyNodes Method (Boolean) |
Namespace: VIZCore3D.NET.Manager
public Dictionary<int, int> CopyNodes( bool alert = false )
// VIZCore3D.NET Control private VIZCore3D.NET.VIZCore3DControl vizcore3d; private void Example() { Dictionary<int, int> items = vizcore3d.Object3D.CopyNodes(); if (items.Count == 0) { MessageBox.Show("Node is null.", "VIZCore3D.NET", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } foreach (KeyValuePair<int, int> item in items) { VIZCore3D.NET.Data.Node source = vizcore3d.Object3D.FromIndex(item.Key); VIZCore3D.NET.Data.Node target = vizcore3d.Object3D.FromIndex(item.Value); MessageBox.Show( string.Format( "{0} - {1}, {2} / {3}" , item.Key , item.Value , source.NodeName , target.NodeName ) , "VIZCore3D.NET" , MessageBoxButtons.OK , MessageBoxIcon.Information ); } }