TrianglePointCollection.ColorArray

Description

Returns the triangle point color coordinates of this collection as a 2-dimensional Array of r,g,b,a values for every TrianglePoint, organized as: [r,g,b,a values][TrianglePoint]

C# Syntax

// get accessor
Object rtn = TrianglePointCollection.ColorArray;

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.colorarray
for i = LBound(a,2) to UBound(a,2)
	logmessage "p.color = " & a(0,i) & "," & a(1,i) & "," & a(2,i) & "," & a(3,i)
next