CopyNodes
Overloads
| Name | Description |
|---|---|
| CopyNodes(List<Node> node) | 지정된 노드 복사 |
| CopyNodes(List<int> index) | 지정된 노드 복사 |
| CopyNodes() | 선택된 노드 복사 |
CopyNodes(List<Node> node)
public Dictionary<int, int> CopyNodes(List<Node> node)
지정된 노드 복사
Parameters
| Name | Type | Description |
|---|---|---|
| node | List<Node> | 노드 목록 |
Returns
| Type | Description |
|---|---|
| Dictionary<int, int> | 복사된 노드 인덱스 - KEY : Source Node Index, VALUE : New Node Index |
Examples
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
List<VIZCore3D.NET.Data.Node> selectedItems =
vizcore3d.Object3D.FromFilter(VIZCore3D.NET.Data.Object3dFilter.SELECTED_PART);
Dictionary<int, int> items = vizcore3d.Structure.CopyNodes(selectedItems);
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
);
}
}
CopyNodes(List<int> index)
public Dictionary<int, int> CopyNodes(List<int> index)
지정된 노드 복사
Parameters
| Name | Type | Description |
|---|---|---|
| index | List<int> | 노드 인덱스 |
Returns
| Type | Description |
|---|---|
| Dictionary<int, int> | 복사된 노드 인덱스 - KEY : Source Node Index, VALUE : New Node Index |
CopyNodes()
public Dictionary<int, int> CopyNodes()
선택된 노드 복사
Returns
| Type | Description |
|---|---|
| Dictionary<int, int> | 복사된 노드 인덱스 - KEY : Selected Node Index, VALUE : New Node Index |