본문으로 건너뛰기

GetPartIndices

Overloads​

NameDescription
GetPartIndices(List<int> index)지정한 개체를 PART 노드 인덱스 목록으로 변환.
BODY 는 상위 PART, PART 는 자기 자신, ASSEMBLY 등은 하위 PART 로 변환하며 중복은 제거됨.
Edge 데이터와 Facet 은 PART 노드에서 조회되므로, 선택 개체를 형상 조회 대상으로 변환할 때 사용.
GetPartIndices(List<Node> node)지정한 개체를 PART 노드 인덱스 목록으로 변환.
BODY 는 상위 PART, PART 는 자기 자신, ASSEMBLY 등은 하위 PART 로 변환하며 중복은 제거됨.

GetPartIndices(List<int> index)​

public List&lt;int&gt; GetPartIndices(List&lt;int&gt; index)

지정한 개체를 PART 노드 인덱스 목록으로 변환.
BODY 는 상위 PART, PART 는 자기 자신, ASSEMBLY 등은 하위 PART 로 변환하며 중복은 제거됨.
Edge 데이터와 Facet 은 PART 노드에서 조회되므로, 선택 개체를 형상 조회 대상으로 변환할 때 사용.

Parameters​

NameTypeDescription
indexList<int>개체 인덱스 목록

Returns​

TypeDescription
List<int>PART 노드 인덱스 목록 (입력 순서 유지)

Examples​

private void Example()
{
List<VIZCore3D.NET.Data.Node> selected = vizcore3d.Object3D.FromFilter(VIZCore3D.NET.Data.Object3dFilter.SELECTED_TOP);
List<int> index = new List<int>();
foreach (VIZCore3D.NET.Data.Node node in selected)
index.Add(node.Index);

List<int> parts = vizcore3d.Object3D.GetPartIndices(index);
}

GetPartIndices(List<Node> node)​

public List&lt;int&gt; GetPartIndices(List&lt;Node&gt; node)

지정한 개체를 PART 노드 인덱스 목록으로 변환.
BODY 는 상위 PART, PART 는 자기 자신, ASSEMBLY 등은 하위 PART 로 변환하며 중복은 제거됨.

Parameters​

NameTypeDescription
nodeList<Node>개체 목록

Returns​

TypeDescription
List<int>PART 노드 인덱스 목록 (입력 순서 유지)