|
From: Frank C <li...@si...> - 2004-06-15 17:27:22
|
On 15-Jun-04, at 1:05 PM, Keith Wiley wrote: > On Tue, 15 Jun 2004, Frank C wrote: > >> You'll have to dig through the trimesh's vertexAttributeTypes until >> you >> find an array of the type kQ3AttributeTypeShadingUV, then duplicate >> that information and append that array to match the extra vertices. > > I see that the trimesh has at attribute with that type, which contains > an > array...but how do I know how long the array is? And where can I find > a > description of the contents of this array? Is it a list of UV > coordinates > for the vertices? If so, I would guess that the array is twice as > long as > the number of vertices in the object, one U and one V coordinate per > vertex. Is that right? Yup - all built-in vertexAttributeTypes must contain an entry for each vertex, and the size of each depends on the type; 2 floats for UVs, 3 floats for colours/normals etc., so the array is always typesize*numPoints. Frank. |