
Returns an Integer value representing the index of the point in the PointCollection returned from Geometry.Points.
// 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
|