|
From: Keith W. <kw...@cs...> - 2004-06-15 14:27:45
|
I don't see how I can do this with one TriMesh for the following reason. In the debugger I have observed that the TriMesh has an array of 3D points, clearly the vertices. However, these points are not a global definition which is then translated, rotated, and scaled at the time of rendering. The points store such changes, so there doesn't seem to be anyway for one TriMesh to refer to two trees that are next to each other since the points need to be in different locations. What's going on here? How do I combine them in that way? Roger Holmes wrote: > You would probably want something more along the lines of one TriMesh > for all the > brown tree trunks/branches and another for all the green foliage. > > > On Tuesday, June 15, 2004, at 06:35 am, Keith Wiley wrote: > >> >> Okay, I see. So, if in Meshwork I create a tree, then copy and paste >> it next to the original tree so I have two separate trees, with >> totally unconnected vertices, I can save the entire thing not only as >> a group (which doesn't do much) but as a single "object" even though >> it is clearly physically two separate objects. >> >> And likewise, I could take individual trees after opening them into >> the program and combine them into a single object. Right? I'll >> study the trimesh code. I guess what would be nice is to only have >> the trimesh stored once and then specify that it is simply placed in >> the world multiple times. Is that on the right track? > ________________________________________________________________________ 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 ________________________________________________________________________ |