|
From: Keith W. <kw...@cs...> - 2004-06-15 17:30:19
|
On Tue, 15 Jun 2004, 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? Actually, I'm studying the online PDF "Making Cool QuickDraw 3D Applications" and it looks like the attributes array is the same length as the number of vertices, which each element being a 2D UV coord. I'll have to work on this some, it seems pretty clear now though. Thanks for the tips. ________________________________________________________________________ Keith Wiley kw...@cs... http://www.unm.edu/~keithw http://www.mp3.com/KeithWiley "Yet mark his perfect self-contentment, and hence learn his lesson, that to be self-contented is to be vile and ignorant, and that to aspire is better than to be blindly and impotently happy." -- Edwin A. Abbott, Flatland ________________________________________________________________________ |