본문으로 건너뛰기

IsChildObject3d

Overloads

NameDescription
IsChildObject3d(int parentIndex, int nodeIndex)현재 노드 인덱스가 지정된 부모의 자식 노드 여부 확인

IsChildObject3d(int parentIndex, int nodeIndex)

public bool IsChildObject3d(int parentIndex, int nodeIndex)

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

Parameters

NameTypeDescription
parentIndexint확인하고자 하는 부모(조상) 노드 인덱스
nodeIndexint현재 노드 인덱스

Returns

TypeDescription
bool결과: True(지정된 부모의 자식 노드) / False(지정된 부모의 자식노드가 아님)

Examples

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

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

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

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