|
|
Dear POV-Team !
Great resource, great program, great ... I shut up you allready heard it
a lot. :-)
8) SciBorg
Two small errors to report:
one I've reported to beta 1 (but is still present)
the PRISM out of the insert menu doesn't work ! It should be there with
following small changes. (cubic_spline to linear_spline...)
corrected version:
------------------------------------------------------------
// extrude a closed 2-D shape along an axis
prism {
linear_sweep // or conic_sweep for tapering to a point
linear_spline // linear_spline | quadratic_spline | cubic_spline |
bezier_spline
-0.5, // height 1
0.5, // height 2
10, // number of points
// the <u,v> points
< 0.2, -1.0>, < 0.2, 0.2>, < 1.0, -0.2>, < 1.0, 0.2>, < 0.2, 1.0>,
<-0.2, 1.0>, <-1.0, 0.2>, <-1.0, -0.2>, <-0.2, 0.2>, <-0.2, -1.0>
// [open]
// [sturm]
}
------------------------------------------------------------
similar the inserted PARAMETRIC does not work, it contains a different
syntax than in doku
corrected version:
------------------------------------------------------------
// parametric object
parametric {
function{ sin(v)*sin(u) }
function{ sin(v)*cos(u) }
function{ cos(v) }
<0,0>, <2*pi,2*pi>
contained_by { box{ <-1.5,-1.5,-1.5>, <1.5,1.5,1.5> }}
accuracy 0.001
precompute 15 x,y,z // precompute normally gives faster rendering
(<=20)
// but longer parsing
pigment {rgb 1}
}
------------------------------------------------------------
which gives just a sphere (more interesting would be a py-orbital like
shape!) like
------------------------------------------------------------
// parametric object
parametric {
function{ sin(v)*sin(u)*cos(v)^2 } // x-axis
function{ cos(v)*cos(v)^2 } // y-axis
function{ sin(v)*cos(u)*cos(v)^2 } // z-axis
<0,0>, <2*pi,2*pi>
contained_by { box{ <-0.5,-1.5,-0.5>, <0.5,1.5,0.5> }}
accuracy 0.001
precompute 20 x,y,z // precompute normally gives faster rendering
(<=20)
// but longer parsing
pigment {rgb 1}
}
------------------------------------------------------------
Post a reply to this message
|
|