TrianglePoint.PositionArray

TrianglePoint.PositionArray

説明

このトライアングルポイントの位置を、Integer値の 1DArray([x,y,z 値])として戻します。

C#構文

// get accessor

Object rtn = TrianglePoint.PositionArray;

VBScript の例

set root = application.activeproject.activescene.root

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

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

for each p in triangle.Points

	a = p.PositionArray

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

next