Geometry2D.SubComponent0D

説明

指定された2Dジオメトリの0D SubComponent のインデックスのArrayInteger)を戻します。

パラメータ

パラメータ タイプ 説明
compIdx Integer コンポーネントのインデックス

指定可能な値:

説明:

0 <= compIdx < 2D コンポーネントの数 compIdx は有効である必要があります。

VBScript の例

'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

o0DSubComp = o2DComponent.SubComponent0D( i )

for j = LBound( o0DSubComp, 1 ) to UBound( o0DSubComp, 1 )

LogMessage "Component [" & i & "] 0D SubComponent : " & o0DSubComp(j) 

next

next

関連項目

Geometry2D.SubComponent1D Geometry2D.SubComponent0D2D Geometry2D Geometry_V1.Nb2D SIVector3