Triangle.PolygonNodeNormalArray
 
 
 

Triangle.PolygonNodeNormalArray

Description

Returns the TrianglePoint normals for this Triangle as a 2-dimensional Array of x,y,z values. (i.e [x,y,z values][TrianglePoint])

Triangles that belong to the same polygon have the same normal values.

C# Syntax

// get accessor
Object rtn = Triangle.PolygonNodeNormalArray;

Examples

VBScript Example

set root = Application.ActiveProject.ActiveScene.Root
set obj = root.AddGeometry( "Cube", "MeshSurface" )
set triangles = obj.ActivePrimitive.Geometry.Triangles
for i=0 to triangles.count - 1
        set t = triangles(i)
        a = t.polygonnodenormalarray
        for j=LBound( a, 2 ) to UBound( a, 2 )
                Application.LogMessage "t" & i & ".p" & j & ".normal: " & a(0,j) & "," & a(1,j) & "," & a(2,j)
        next
next