본문으로 건너뛰기

CopyNodes

Overloads

NameDescription
CopyNodes(bool alert)선택된 노드 복사
CopyNodes(List<Node> node, bool alert)지정된 노드 복사
CopyNodes(List<int> index, bool alert)지정된 노드 복사

CopyNodes(bool alert)

public Dictionary&lt;int, int&gt; CopyNodes(bool alert)

선택된 노드 복사

Parameters

NameTypeDescription
alertbool사용자 확인 메시지 출력 여부

Returns

TypeDescription
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&lt;int, int&gt; CopyNodes(List&lt;Node&gt; node, bool alert)

지정된 노드 복사

Parameters

NameTypeDescription
nodeList<Node>노드 목록
alertbool사용자 확인 메시지 출력 여부

Returns

TypeDescription
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&lt;int, int&gt; CopyNodes(List&lt;int&gt; index, bool alert)

지정된 노드 복사

Parameters

NameTypeDescription
indexList<int>노드 인덱스
alertbool사용자 확인 메시지 출력 여부

Returns

TypeDescription
Dictionary<int, int>복사된 노드 인덱스 - KEY : Selected Node Index, VALUE : New Node Index