본문으로 건너뛰기

CreateNode

public Node CreateNode(int nodeIndex, NodeKind kind, string name)

노드 생성

Parameters​

NameTypeDescription
nodeIndexint부모 노드 인덱스
kindNodeKind생성 노드의 유형
namestring생성할 노드의 이름

Returns​

TypeDescription
Node생성된 노드

Examples​

// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
// Parent Node's Index
int parentIndex = 0;

// Node Name
string name = string.Format(
"NODE #{0}"
, vizcore3d.Object3D.GetNodeCount()
);

// Create Node
VIZCore3D.NET.Data.Node node =
vizcore3d.MeshEdit.CreateNode(
parentIndex /* Parent Node's Index */
, Data.NodeKind.ASSEMBLY /* Node Kind : Assembly, Part */
, name /* Node Name */
);
}