Point.Index operator

説明

Geometry.Pointsから戻されるPointCollection内のポイントのインデックスを表すInteger値を戻します。

VBScript の例

set oRoot = application.activeproject.activescene.root
set oObj = oRoot.addgeometry( "Cube", "MeshSurface" )
set oGeometry = oObj.activeprimitive.geometry
' print the index and position of each point
for each oPoint in oGeometry.Points
        logmessage "Point[" & oPoint.Index & "] = " & _
                oPoint.Position.x & ", " & _ 
                oPoint.Position.y & ", " & _ 
                oPoint.Position.z 
next