TriangleCollection.PositionArray

TriangleCollection.PositionArray

説明

このトライアングルコレクションのTrianglePoint位置を、各トライアングルの各TrianglePointの x,y,z 値の 3DArray([x,y,z values][TrianglePoint][Triangle])として戻します。

C#構文

// get accessor

Object rtn = TriangleCollection.PositionArray;

VBScript の例

set root = Application.ActiveProject.ActiveScene.Root

set obj = root.AddGeometry( "Cube", "MeshSurface" )

a = obj.ActivePrimitive.Geometry.Triangles.positionarray

for i=LBound( a, 3 ) to UBound( a, 3 )

	for j=LBound( a, 2 ) to UBound( a, 2 )

		Application.LogMessage "t" & i & ".p" & j & ".position: " & a(0,j,i) & "," & a(1,j,i) & "," & a(2,j,i)

	next

next