Geometry.Points から戻される PointCollection 内のポイントのインデックスを表す Integer 値を戻します。
// get accessor Int32 rtn = Point.Index; |
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 |