Geometry1D.Neighbors1D

説明

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

パラメータ

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

指定可能な値:

説明:

0 <= compIdx < 1D コンポーネントの数 compIdx は有効である必要があります。
0 <= compIdxArray[i] < 1D コンポーネントの数 compIdxArray[i] は有効である必要があります。
siNeighborType siNeighborType 近接のタイプ

指定可能な値:

説明:

siAdjacent / siGrow 隣接(adjacent)またはグロー(grown)近接を選択します。現在のところ、siAdjacentモードと siGrowモードではまったく同じインデックスが戻されます。
distance Integer 考慮に入れる距離

VBScript の例

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

set oGeometry = oCube.obj

set o1DGeometry = oGeometry.Geometry1D

'Get the array of indices from that item

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

aIndices = oSubComponent.SubElements

a1DNeighbors = o1DGeometry.Neighbors1D( aIndices, siAdjacent, 1 )

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

	LogMessage "Component [" & j & "] 1D neighbor : " & a1DNeighbors(j) 

next

関連項目

Geometry1D.Neighborhood1D Geometry1D.Neighbors0D Geometry1D.Neighbors2D Geometry0D SIVector3