Returns the TrianglePoint UV coordinates for this Triangle as a 2-dimensional Array of u,v values (i.e [u,v values][TrianglePoint]).
// get accessor Object rtn = Triangle.UVArray; |
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
|