Geometry2D.Nb0D2D

説明

指定された 2D ジオメトリの指定された距離内にある 0D2D SubComponent の数(Integer)を戻します。

パラメータ

パラメータ タイプ 説明
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

oNb0D2DSubComp = o2DComponent.Nb0D2D( i )

LogMessage "Component [" & i & "] has " & oNb0D2DSubComp& " 0D2D SubComponent(s)"

next

関連項目

Geometry2D.SubComponent0D2D Geometry2D.SubComponent0D2DNormal Geometry2D Geometry_V1.Nb2D SIVector3