Page 1 of 1

High Expansion Fur

Posted: Tue Jul 12, 2005 7:05 pm
by odinsdream

Code: Select all

startshape SCENE

rule SCENE{
	LINE{}
}

rule LINE {
	CIRCLE{}
	LINE {x -2 s 0.8 r 2}
	LINE { x  2 s 0.8 r -4}
}
rule LINE {
	CIRCLE{}
	LINE {x -2 s 0.8 r 6}
	LINE { x  2 s 0.8 r -8}
}
rule LINE {
	CIRCLE{}
	LINE {x -2 s 0.8 r 1}
	LINE { x  2 s 0.8 r -1}
}
rule LINE {
	CIRCLE{}
	LINE {x -2 s 0.8 r 12}
	LINE { x  2 s 0.8 r -5}
}
rule LINE {
	CIRCLE{}
	LINE {x -2 s 0.8 r 20}
	LINE { x  2 s 0.8 r -26}
}
Any way to optimize this and still get similar results?

Posted: Tue Jul 12, 2005 7:26 pm
by robo git
About the only obvious one I can see is this:

Code: Select all

startshape SCENE

rule SCENE{
   LINE{}
}

rule LINE { 
....

can be done like this:

Code: Select all

startshape LINE

rule LINE { 
....
Pretty much anything else would remove some of the detail from the image.

On the other hand, you could add a very low probability "terminating" rule to statistically speed things up, eg:

Code: Select all

rule LINE 0.05 {
   CIRCLE {}
}
(the call to CIRCLE is optional)