## Geometry1D.Neighborhood1D

### Description

Returns an Array of indices (Integers) of the 1D neighborhood of a given 1D geometry within a given distance.

### Parameters

Parameter | Type | Description
--- | --- | ---
compIdx | Integer | Index of the component
Possible Values: | Description:
0 <= compIdx < Number of 1D geometry | The compIdx must be valid
distance | Integer | Distance to take into account

### Examples

#### VBScript Example

    'Create a cube
    CreatePrim "Cube", "MeshSurface"
    set oSelList = GetValue("SelectionList")
    set oItem = oSelList(0)
    set oGeometry = oItem.obj
    oNb1D = oGeometry.Nb1D
    set o1DGeometry = oGeometry.Geometry1D
    ' Loop on all the 1D geometry
    for i = 0 to oNb1D - 1
    o1DNeighborhood = o1DGeometry.Neighborhood1D( i, 1 )
    for j = LBound( o1DNeighborhood, 1 ) to UBound( o1DNeighborhood, 1 )
    LogMessage "Component [" & i & "] 1D neighbor : " & o1DNeighborhood(j)
    next
    next

### See Also

Geometry1D.Neighborhood0D Geometry1D.Neighborhood2D Geometry_V1.Geometry1D Geometry_V1.Nb1D SIVector3