PolygonNode.Normal
 
 
 

PolygonNode.Normal operator

Description

Returns a SIVector3 containing the normal of the PolygonNode.

C# Syntax

// get accessor
Object PolygonNode.get_Normal( Boolean& out_pbValid );

Examples

VBScript Example

set oObject = Application.ActiveProject.ActiveScene.Root.AddGeometry("Cube","MeshSurface")
set oPolygonMesh = oObject.ActivePrimitive.Geometry
set oPolygonFace = oPolygonMesh.Polygons(0)
set oPolygonNode = oPolygonFace.Nodes(0)
set oNormal = oPolygonNode.Normal
logmessage "Normal: " & " x = " & oNormal.x & " y = " & oNormal.y & " z = " & oNormal.z