Click or drag to resize

MeshEditManagerCreateNode Method

노드 생성

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public Node CreateNode(
	int nodeIndex,
	NodeKind kind,
	string name
)

Parameters

nodeIndex
Type: SystemInt32
부모 노드 인덱스
kind
Type: VIZCore3D.NET.DataNodeKind
생성 노드의 유형
name
Type: SystemString
생성할 노드의 이름

Return Value

Type: Node
생성된 노드
Examples
C#
// 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 */
            );
}
See Also