SegmentCollection.NormalArray

SegmentCollection.NormalArray operator

説明

法線を 2DArray として戻します。x,y,z 値は最初の次元に含まれます。

C#構文

// get accessor

Object rtn = SegmentCollection.NormalArray;

VBScript の例

set oRoot = Application.ActiveProject.ActiveScene.Root

set oObj = oRoot.AddGeometry( "Cube", "MeshSurface" )

set oGeometry = oObj.ActivePrimitive.Geometry

' Offset all x positions 

aNormals = oGeometry.Segments.NormalArray

for i = LBound(aNormals, 2) to UBound(aNormals, 2)

	LogMessage "normal[" & i & "] =" & aNormals(0,i) & "," & aNormals(1,i) & "," & aNormals(2,i)

next