このトライアングルコレクションの TrianglePoint UV 座標を、各Triangleの各 TrianglePoint についてu,v値の 3D Array([u,v values][TrianglePoint])として戻します。
// get accessor Object rtn = TriangleCollection.UVArray; |
set root = Application.ActiveProject.ActiveScene.Root set obj = root.AddGeometry( "Cube", "MeshSurface" ) a = obj.ActivePrimitive.Geometry.Triangles.uvarray for i=LBound( a, 3 ) to UBound( a, 3 ) for j=LBound( a, 2 ) to UBound( a, 2 ) Application.LogMessage "t" & i & ".p" & j & ".uv: " & a(0,j,i) & "," & a(1,j,i) next next |