CopyNodes
Overloads
| Name | Description |
|---|---|
| CopyNodes(bool alert) | 선택된 노드 복사 |
| CopyNodes(List<Node> node, bool alert) | 지정된 노드 복사 |
| CopyNodes(List<int> index, bool alert) | 지정된 노드 복사 |
CopyNodes(bool alert)
public Dictionary<int, int> CopyNodes(bool alert)
선택된 노드 복사
Parameters
| Name | Type | Description |
|---|---|---|
| alert | bool | 사용자 확인 메시지 출력 여부 |
Returns
| Type | Description |
|---|---|
| Dictionary<int, int> | 복사된 노드 인덱스 - KEY : Selected Node Index, VALUE : New Node Index |
Examples
// 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
);
}
}
CopyNodes(List<Node> node, bool alert)
public Dictionary<int, int> CopyNodes(List<Node> node, bool alert)
지정된 노드 복사
Parameters
| Name | Type | Description |
|---|---|---|
| node | List<Node> | 노드 목록 |
| alert | bool | 사용자 확인 메시지 출력 여부 |
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.Object3D.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, bool alert)
public Dictionary<int, int> CopyNodes(List<int> index, bool alert)
지정된 노드 복사
Parameters
| Name | Type | Description |
|---|---|---|
| index | List<int> | 노드 인덱스 |
| alert | bool | 사용자 확인 메시지 출력 여부 |
Returns
| Type | Description |
|---|---|
| Dictionary<int, int> | 복사된 노드 인덱스 - KEY : Selected Node Index, VALUE : New Node Index |