Nb0D2D (Geometry2D)
Description
Returns the number (Integer) of 0D2D SubComponent of a given 2D geometry within a given distance.
Parameters
|
Parameter |
Type |
Description |
|
compIdx |
Index of the component Possible Values: • 0 <= compIdx < Number of 2D Component: The compIdx must be valid |
Examples
VBScript Example
'Create a cube CreatePrim "Cube", "MeshSurface" set oSelList = GetValue("SelectionList") set oItem = oSelList(0) set oGeometry = oItem.obj oNb2D = oGeometry.Nb2D set o2DComponent = oGeometry.Geometry2D ' Loop on all the 2D Component for i = 0 to oNb2D - 1 oNb0D2DSubComp = o2DComponent.Nb0D2D( i ) LogMessage "Component [" & i & "] has " & oNb0D2DSubComp& " 0D2D SubComponent(s)" next
See Also
|
|
|
|
Autodesk Softimage v7.5