POV-Ray : Newsgroups : povray.general : Test : Re: Test Server Time
7 Aug 2024 23:16:57 EDT (-0400)
  Re: Test  
From: Ron Parker
Date: 8 May 2001 10:50:45
Message: <slrn9fg1ua.ik2.ron.parker@fwi.com>
On Tue, 8 May 2001 16:30:29 +0200, Nekar Xenos wrote:
>>   Why all that extra unnecessary stuff which makes the signature longer?
>
>Like this? (I don't understand the use of '?' and 'B.y' though - ABX helped me
>there)
>--
>#local Q=seed(7);#local B=<-2,2,5>;#local E=<2,-2,5>;blob{threshold 1#while((E
>-B).x>.1)#local S=B;#local B=B+<rand(Q),rand(Q),rand(Q)>/20;#local B=(vlength(
>B-E)<vlength(S-E)?B:2*S-B);sphere{<B.y,-B.x,B.z>,.1,1}sphere{B,.1,1}#end
>pigment{rgb<8,16,24>}}// nekar Xenos

A few interesting excerpts from the docs:

|The default value if none is specified is threshold 1.0.

|Conditional expressions: The operand C is boolean while operands A and B 
|are any expressions. The result is of the same type as A and B.
|
|(C ? A : B)         if C then A else B

|You may use the dot operator to extract a single float component from a 
|vector. Suppose the identifier Spot was previously defined as a vector. 
|Then Spot.x is a float value that is the first component of this x, y, z 
|vector. Similarly Spot.y and Spot.z reference the 2nd and 3rd components. 

-- 
#local R=<7084844682857967,32787982,826975826580>#macro L(P)concat(#while(P)chr(
mod(P,100)),#local P=P/100;#end"")#end background{rgb 1}text{ttf L(R.x)L(R.y)0,0
translate<-.8,0,-1>}text{ttf L(R.x)L(R.z)0,0translate<-1.6,-.75,-1>}sphere{z/9e3
4/26/2001finish{reflection 1}}//ron.parker@povray.org My opinions, nobody else's


Post a reply to this message

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