|
|
"Bill DeWitt" <bde### [at] cflrrcom> wrote in message
news:3be96283$1@news.povray.org...
>
> "Ken" <tyl### [at] pacbellnet> wrote in message
> news:3BE955A6.4C3ED542@pacbell.net...
> >
> >
> > Warp wrote:
> >
> > > #macro c(X)torus{.5.1clipped_by{box{<.7.2><-.7,-.2.7>}}rotate-90*x
> translate
> > > x*X}#end #macro C(A)cylinder{A,A-y*.5.1}#end
> merge{c(.5)c(-.5)C(x)C(-x)C(0)
> > > translate z*2pigment{crackle scale.5rotate
> 90turbulence.75color_map{[.05rgb
> > > 1][.1rgb<1,.25,1>][.25rgbf 1]}}finish{ambient 1}}
> >
> > Everybody around here whines about how important it is to use proper
> > indenting yet look at that mess! When I do it people critisie me. When
> > you guys do it in your sigs it is all of a sudden ok. Talk about double
> > standards!
>
> I agree.
>
> //// New, improved and FAIR code follows ////
>
> #macro c (X)
> torus {
> 0.5, 0.1
> clipped_by {
> box {
> < 0.7, 0.2 >,
> < -0.7,-0.2, 0.7 >
> }
> }
> rotate-90*x
> translate x*X
> }
> #end
>
> #macro C (A)
> cylinder{
> A, A-y*0.5, 0.1
> }
> #end
>
> merge{
> c(0.5)
> c(-0.5)
> C(x)
> C(-x)
> C(0)
> translate z*2
> pigment{
> crackle
> scale 0.5
> rotate 90
> turbulence 0.75
> color_map {
> [ 0.05 rgb 1 ]
> [ 0.10 rgb < 1.0, 0.25, 1.0 > ]
> [ 0.25 rgbf 1 ]
> }
> }
> finish {
> ambient 1
> }
> }
>
Hmmm - and maybe add comments as well so we can understand it more easily ;o)
- Nekar
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.286 / Virus Database: 152 - Release Date: 2001/10/09
Post a reply to this message
|
|