|
![](/i/fill.gif) |
In article <3A5F7F3F.9C5A896C@unforgettable.com>,
inq### [at] unforgettable com wrote:
> I've considered changing the grass clumps from unioned cones to meshes
> to save memory so that I can make them more complex and use more of
> them.. but since triangle elements can't be rotated inside a mesh
> statement, I'll have to write a new grass generator from scratch, and I
> haven't bothered yet.
The vrotate() or (if you are using MegaPOV) vtransform() functions
should be helpful here...you could put it in a macro, something like:
#macro TransTri(A, B, C, Trans)
triangle {
vtransform(A, Trans),
vtransform(B, Trans),
vtransform(C, Trans)
}
#end
mesh {
...
TransTri(pointA, pointB, pointC, transform {TRANSFORMATIONS})
--
Christopher James Huff
Personal: chr### [at] mac com, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tag povray org, http://tag.povray.org/
<><
Post a reply to this message
|
![](/i/fill.gif) |