Click or drag to resize

Object3DManagerIsChildObject3d Method

현재 노드 인덱스가 지정된 부모의 자식 노드 여부 확인

Namespace:  VIZCore3DX.NET.Manager
Assembly:  VIZCore3DX.NET (in VIZCore3DX.NET.dll) Version: 1.0.25.326 (1.0.25.326)
Syntax
C#
public bool IsChildObject3d(
	int entityID,
	int parentIndex,
	int nodeIndex
)

Parameters

entityID
Type: SystemInt32
확인하고자 하는 노드 entityID
parentIndex
Type: SystemInt32
확인하고자 하는 부모(조상) 노드 인덱스
nodeIndex
Type: SystemInt32
현재 노드 인덱스

Return Value

Type: Boolean
결과: True(지정된 부모의 자식 노드) / False(지정된 부모의 자식노드가 아님)
Examples
C#
// VIZCore3DX.NET Control
private VIZCore3DX.NET.VIZCore3DXControl vizcore3dx;

private void Example()
{
    int parentIndex = 4;
    int childIndex = 100;

    bool result = vizcore3dx.Object3D.IsChildObject3d(parentIndex, childIndex);

    if (result == true)
        System.Console.WriteLine("Index is a child.");
    else
        System.Console.WriteLine("Index is not a child.");
}
See Also