Geometry1D.StartSubComponent0D

説明

指定された 1D ジオメトリの最初の 0D SubComponent のインデックスを Integer として戻します。

パラメータ

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

指定可能な値:

説明:

0 <= compIdx < 1D ジオメトリの数 compIdx は有効である必要があります。

VBScript の例

'Create a cube

CreatePrim "Cube", "MeshSurface"

set oSelList = GetValue("SelectionList")

set oItem = oSelList(0)

set oGeometry = oItem.obj

oNb1D = oGeometry.Nb1D

set o1DGeometry = oGeometry.Geometry1D

' Loop on all the 1D geometry

for i = 0 to oNb1D - 1

oStart0DIdx = o1DGeometry.StartSubComponent0D( i )

oEnd0DIdx = o1DGeometry.EndSubComponent0D( i )

LogMessage "Component [" & i & "] 0D start SubComponent : " & oStart0DIdx

LogMessage "Component [" & i & "] 0D end SubComponent   : " & oEnd0DIdx

next

関連項目

Geometry1D.EndSubComponent0D Geometry_V1.Geometry1D Geometry_V1.Nb1D SIVector3