Neighborhood2D (Geometry0D)
Description
Returns an Array of indices (Integers) of the 2D neighborhood of a given 0D component within a given distance.
Parameters
|
Parameter |
Type |
Description |
|
compIdx |
Index of the component Possible Values: • 0 <= compIdx < Number of 0D Component: The compIdx must be valid |
|
|
distance |
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
oNb0D = oGeometry.Nb0D
set o0DGeometry = oGeometry.Geometry0D
' Loop on all the 0D Component
for i = 0 to oNb0D - 1
o2DNeighborhood = o0DGeometry.Neighborhood2D( i, 1 )
for j = LBound( o2DNeighborhood, 1 ) to UBound( o2DNeighborhood, 1 )
LogMessage "Component [" & i & "] 2D neighbor : " & o2DNeighborhood(j)
next
next
See Also
|
|
|
|
SOFTIMAGE|XSI v6.01