Triangle.UVArray

説明

この Triangle の TrianglePoint UV 座標を、x,y,z 値の 2D Array([u,v values][TrianglePoint])として戻します。

VBScript の例

set root = Application.ActiveProject.ActiveScene.Root
set obj = root.AddGeometry( "Cube", "MeshSurface" )
set triangles = obj.ActivePrimitive.Geometry.Triangles
for i=0 to triangles.count - 1
        set t = triangles(i)
        a = t.uvarray
        for j=LBound( a, 2 ) to UBound( a, 2 )
                Application.LogMessage "t" & i & ".p" & j & ".uv: " & a(0,j) & "," & a(1,j)
        next
next