Returns the number (Integer) of 0D2D SubComponent of a given 2D geometry within a given distance.
Parameter | Type | Description | ||||
---|---|---|---|---|---|---|
compIdx | Integer | Index of the component
|
'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 |