Geometry0D.Neighbors0D

説明

指定された 0D コンポーネントの指定の距離内にある 0D 隣接物(Geometry0D.Neighborhood0D を参照)のインデックスの ArrayInteger)を戻します。指定された距離内にある指定された 0D コンポーネントの指定されたセーフ配列です。

パラメータ

パラメータ タイプ 説明
compIdx / compIdxArray Variant コンポーネントのインデックス/コンポーネントインデックスの Array

指定可能な値:

説明:

0 <= compIdx < 0D コンポーネントの数 compIdx は有効である必要があります。
0 <= compIdxArray[i] < 0D コンポーネントの数 compIdxArray[i] は有効である必要があります。
siNeighborType siNeighborType 近接のタイプ
distance Integer 考慮に入れる距離

VBScript の例

'See the Neighborhood0D for the use with a simple index argument

set oCube = Application.ActiveProject.ActiveScene.Root.AddGeometry("Cube", "MeshSurface")

set oGeometry = oCube.obj

set o0DGeometry = oGeometry.Geometry0D

'Get the array of indices from that item

set oSubComponent = getvalue(oCube.FullName & ".pnt[6]")

aIndices = oSubComponent.SubElements

a0DNeighbors = o0DGeometry.Neighbors0D( aIndices, siAdjacent, 1 )

for j = LBound( a0DNeighbors, 1 ) to UBound( a0DNeighbors, 1 )

	LogMessage "Component [" & j & "] 0D neighbor : " & a0DNeighbors(j) 

next

関連項目

Geometry0D.Neighborhood0D Geometry0D.Neighbors1D Geometry0D.Neighbors2D Geometry0D SIVector3