
-
Recent Posts
Recent Comments
Archives
Categories
Meta
The original source code is available here.
Add below code to function before the call for recursive function
//Leaf
if((depth >= 0)and(depth <= 2)) {
insert Group {
// transforms: bind Transform.rotate(angle+adj, 0, 0),
content: [Ellipse {
centerX: 0, centerY:-depth*segmentLength-9
radiusX: 5, radiusY: 9
fill: Color.GREEN
},
Ellipse {
centerX: 0, centerY:-depth*segmentLength-9
radiusX: 9, radiusY: 3
fill: Color.GREEN
},
] } into g.content;
}
// Add Colors
var col=Color.ORANGE;
if(Math.random()>.5){
col=Color.ORANGE;
}else{
col=Color.RED;
}
if((depth >= 0)and(depth <= 1)) {
insert Group {
// transforms: bind Transform.rotate(angle+adj, 0, 0),
content: Circle {
centerX: 0, centerY: -depth*segmentLength
radius: 5
fill: col}
} into g.content;
}
Yafaray is a great rendering engine and try utilizing the freedom of its XML format with the programming and specially people in research fields of Shape related Optimizations can use this great Rendering Engine to give a final look to your surface and scene

I made in my college days…..
Network Hacking
d=absolute distance between points given by![]()
R=Radius of the Circle,
Theta=Required Angle.
Theta=2*sin-1(d/2*R)
/* For cartesian coordinate system, enter parametric equation
/* in terms of t (which will vary from 0 to 1) for x, y and z
/* For example: for a circle in x-y plane, centered at origin
/* and radius = 4, the parametric equations will be:
/* x = 4 * cos ( t * 360 )
/* y = 4 * sin ( t * 360 )
/* z = 0
/*——————————————————————-
/* z = 30*Sin(t*720*2/2)
x = (40*t + 70*Cos(t*720*17))
y = (40*t + 70*sin(t*720*17))
z = (x*cos(t*180))

Another
x = (40*t + 70*Cos(t*720*17))
y = (40*t + 70*sin(t*720*17))
z = (y*sin(t*180))

Another
x = (40*t + 70*Cos(t*720*50))
y = (40*t + 70*sin(t*720*50))
z = (y*sin(t*360))

Another
x = (40*exp(3*t) + 70*Cos(t*720*50))
y = (40*exp(3*t) + 70*sin(t*720*50))
z = (500*sin(t*180))

Another
deg=360*100
x = 13*cos(t*deg)- 13*sin(3/13* t*deg)
y = 13*cos(t*deg)- z*sin(3/13* t*deg)
z=100*t

Another
deg=360*100
x = z*cos(t*deg)+ 13*sin(3/13* t*deg)
y = z*cos(t*deg)- 13*sin(3/13* t*deg)
z=100*t

More
deg=360*100
x = 13*cos(t*deg)+ z*sin(3/13* t*deg)
y = 13*cos(t*deg)- z*sin(3/13* t*deg)
z=100*t
More
deg=360*500
x = 13*cos(t*deg)+ z*sin(3/13* t*deg)
y = 13*cos(t*deg)- 10*sin(3/13* t*deg)
z=100*t
More
deg=360*500
x = 13*cos(t*deg)+ z*sin(3/13* t*deg)
y = z*cos(t*deg)+ 10*sin(3/13* t*deg)
z=100*t

Special Curve, Observe the sharp BENDS
deg=360*500
x = z*cos(t*deg)+ 8*cos(3/13* t*deg)
y = 8*sin(t*deg)+ z*sin(3/13* t*deg)
z=100*t

More
deg=360*500
x = 8*cos(t*deg)+ z*cos(3/13* t*deg)
y = z*sin(t*deg)+ 8*sin(3/13* t*deg)
z=100*t
Convert eqn of circle to spiral….
x=r*Sin(theta)
y=r*Cos(theta)
to
for(i in [0..1])
x=i*r*Sin(theta)
y=i*r*Cos(theta)
I will try to add more..