GetNodeKind
public NodeKind GetNodeKind(int entityID, int index)
인덱스에 해당하는 노드의 유형(Assembly, Part, Body)를 반환
Parameters
| Name | Type | Description |
|---|---|---|
| entityID | int | Node EntityID |
| index | int | Node Index |
Returns
| Type | Description |
|---|---|
| NodeKind | 노드 유형(Assembly, Part, Body) |
Examples
// VIZCore3DX.NET Control
private VIZCore3DX.NET.VIZCore3DXControl vizcore3dx;
public void Example()
{
// 선택된 항목이 부품(Part)일 때만 형상 정보를 조회합니다.
List<VIZCore3DX.NET.Data.Node> nodes
= vizcore3dx.Object3D.FromFilter(VIZCore3DX.NET.Data.Object3dFilter.SELECTED_TOP);
if (nodes.Count == 0) return;
VIZCore3DX.NET.Data.NodeKind kind
= vizcore3dx.Object3D.GetNodeKind(nodes[0].EntityID, nodes[0].Index);
if (kind != VIZCore3DX.NET.Data.NodeKind.PART) return;
System.Diagnostics.Debug.WriteLine(vizcore3dx.Object3D.GeometryProperty.GetVolume(nodes));
}