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 o1DSubComp = o2DComponent.SubComponent1D( i ) for j = LBound( o1DSubComp, 1 ) to UBound( o1DSubComp, 1 ) LogMessage "Component [" & i & "] 1D SubComponent : " & o1DSubComp(j) next next |