PointCollection.NormalArray operator

説明

2D Arrayとして法線を戻します(最初の次元には X,y,z 値が含まれます)。

C#構文

// get accessor

Object rtn = PointCollection.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.Points.NormalArray

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

		logmessage "normal[" & i & "] =" & _

			aNormals(0,i) & _

			"," & aNormals(1,i) & _

			"," & aNormals(2,i)

next