TrianglePointCollection.PositionArray

TrianglePointCollection.PositionArray

説明

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

C#構文

// get accessor

Object rtn = TrianglePointCollection.PositionArray;

VBScript の例

set root = application.activeproject.activescene.root

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

set triangle = obj.activeprimitive.geometry.Triangles(0)

set Points = triangle.Points

a = triangle.points.positionarray

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

	logmessage "p.position = " & a(0,i) & "," & a(1,i) & "," & a(2,i)

next