TrianglePointCollection.IndexArray

Description

Returns the triangle point indices of this collection as a 1-dimensional Array of Integer values.

C# Syntax

// get accessor

Object rtn = TrianglePointCollection.IndexArray;

Examples

VBScript Example

set root = application.activeproject.activescene.root

set obj = root.addgeometry( "Cube", "MeshSurface" )

set triangle = obj.activeprimitive.geometry.Triangles(0)

set Points = triangle.Points

a = triangle.points.indexarray

for i = LBound(a,1) to UBound(a,1)

	logmessage "p.index = " & a(i)

next