|
|
I am trying to create a pillar with slightly rounded edges.
Scene text below....
However, the edges meting at the apex are not equally
curved, and those joinig the 2 prisms are not curved at all.
Can anyone help me?
TIA
global_settings{assumed_gamma 1.4}
#include "colors.inc"
camera {location <0,5,-10> look_at -y*.8 angle 12}
light_source{<-5,10,-10> colour White}
background{colour LightBlue}
#macro RSquare(p1,p2) 32, // rounded square for use with bezier_spline
<-p1,-p2>,<-p1,0>,<-p1,0>,<-p1,p2>, <-p1,p2>,<-p1,p1>,<-p1,p1>,<-p2,p1>,
<-p2,p1>,<0,p1>,<0,p1>,<p2,p1>, <p2,p1>,<p1,p1>,<p1,p1>,<p1,p2>,
<p1,p2>,<p1,0>,<p1,0>,<p1,-p2>, <p1,-p2>,<p1,-p1>, <p1,-p1>,<p2,-p1>,
<p2,-p1>,<0,-p1>,<0,-p1>,<-p2,-p1>, <-p2,-p1>,<-p1,-p1>,<-p1,-p1>,<-p1,-p2>
#end
union{
prism {conic_sweep bezier_spline 0, -1, RSquare(1, 0.8)}
prism{linear_sweep bezier_spline -1, -1.2, RSquare(1, .8)}
// sphere{y*0.2,0.3}
texture{pigment{Yellow}
finish{specular 0.4}
}
}
Post a reply to this message
|
|