MWS/Unity Project/Assets/LSystem/PipeModel.txt
2021-09-16 19:40:48 +02:00

25 lines
587 B
Plaintext

#ignore + - \ / ^ &
#axiom
C(1,3)F(0,1)G
#rules
C(a,b) > F(x,w) : b<3 -> C(a,b+1)
C(a,b) > F(x,w) : b>=3 -> #stochastic
p=2 C(1,0)
p=1 C(2,0)
p=0.5 C(3,0)
#stochastic end
C(a,b) < F(x,w) : b>=3 -> F(a,w)
F(x,w) < F(y,w1) : x>0 -> F(x,w1)
F(x,w) : x>0 -> F(0,w)
F(x,w) < G : x==1 -> F(0,1)[+B]\(137.5)G
F(x,w) < B : x==2 -> #stochastic
p=3 B
p=1 G
#stochastic end
F(x,w) < G : x==3 -> F(x,1)W
F(x,w) > [F(x1,w1)]F(x2,w2) -> F(x,(w1^2+w2^2)^(0.5))
F(x,w) > [F(x1,w1)][F(x2,w2)]F(x3,w3) -> F(x,(w1^2+w2^2+w3^2)^(0.5))
F(x,w) > F(x1,w1) -> F(x,w1)
F(x,w) > [B]F(x1,w1) -> F(x,w1)
#end rules