POV-Ray : Newsgroups : povray.general : Duplicate ? : Re: Duplicate ? Server Time
5 Aug 2024 10:21:52 EDT (-0400)
  Re: Duplicate ?  
From: Christopher James Huff
Date: 25 Nov 2002 13:26:49
Message: <chrishuff-BCD637.13242125112002@netplex.aussie.org>
In article <Xns### [at] 204213191226>,
 "Rafal 'Raf256' Maj" <raf### [at] raf256com> wrote:

> as I alread told, I know it, but it needs quite un-comfortable work around.
> I must repleace

A simple macro would make things easier:

#macro Tri(PA, PB, PC, Trans)
    #local TransFn = function {transform {Trans}}
    triangle {
        TransFn(PA.x, PA.y, PA.z),
        TransFn(PB.x, PB.y, PB.z),
        TransFn(PC.x, PC.y, PC.z)
    }
#end

mesh {
    #declare BladeTrans = transform {...}
    Tri(A, B, C, BladeTrans)
    Tri(A, B, C, BladeTrans)
    Tri(A, B, C, BladeTrans)
...
}

Again, no need for a new feature, you just don't know how to use the 
existing features properly.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.