Point.Index operator

説明

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

C#構文

// get accessor

Int32 rtn = Point.Index;

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