GetPartIndices
Overloads
| Name | Description |
|---|---|
| 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<int> GetPartIndices(List<int> index)
지정한 개체를 PART 노드 인덱스 목록으로 변환.
BODY 는 상위 PART, PART 는 자기 자신, ASSEMBLY 등은 하위 PART 로 변환하며 중복은 제거됨.
Edge 데이터와 Facet 은 PART 노드에서 조회되므로, 선택 개체를 형상 조회 대상으로 변환할 때 사용.
Parameters
| Name | Type | Description |
|---|---|---|
| index | List<int> | 개체 인덱스 목록 |
Returns
| Type | Description |
|---|---|
| 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<int> GetPartIndices(List<Node> node)
지정한 개체를 PART 노드 인덱스 목록으로 변환.
BODY 는 상위 PART, PART 는 자기 자신, ASSEMBLY 등은 하위 PART 로 변환하며 중복은 제거됨.
Parameters
| Name | Type | Description |
|---|---|---|
| node | List<Node> | 개체 목록 |
Returns
| Type | Description |
|---|---|
| List<int> | PART 노드 인덱스 목록 (입력 순서 유지) |