Returns the UV coordinates for this triangle point as a 1-dimensional Array of Integer values, organized as: [u,v values]
// get accessor Object rtn = TrianglePoint.UVArray; |
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.UVArray
logmessage "p.uv: " & a(0) & "," & a(1)
next
|