Triangle.Index
 
 
 

Triangle.Index

Description

Returns the index of this Triangle in its geometry as an Integer.

C# Syntax

// get accessor
Int32 rtn = Triangle.Index;

Examples

VBScript Example

set root = Application.ActiveProject.ActiveScene.Root
set obj = root.AddGeometry( "Cube", "MeshSurface" )
set geometry = obj.ActivePrimitive.Geometry
set triangle = geometry.Triangles(0)
Application.LogMessage triangle.name & "'s index = " & triangle.index

See Also

TriangleCollection TrianglePoint TrianglePointCollection Geometry