|
![](/i/fill.gif) |
"Sven Littkowski" <sve### [at] jamaica-focus com> wrote in message
news:44669dac$1@news.povray.org...
>
> I am in need of agel-alike elastic, couchy chair or seat. Seen from each
> side, it should have a rectanglish shape, like a rectangle touching with
> its small side the ground. The shape should have round corners.
You might be able to get something about the way you need it to be by using
blob having some negative strength (invisible) parts to shape a positive
strength sphere or cylinder piece, effectively framing it in and molding it
to that shape.
superellipsoid might be useful, too, as could be bicubic_patch, but if you
could try blob anyway to see if that would work okay.
Little example code, no need for camera:
#declare SeatCushion=
blob {
threshold 0.4
sphere {0,1,1}
sphere {-1*x,1,-1}
sphere {1*x,1,-1}
sphere {-1*y,1,-1}
sphere {1*y,1,-1}
sphere {-1*z,1,-1}
sphere {1*z,1,-1}
pigment {rgb 1}
scale <2,2,0.5>
}
union {
object {SeatCushion}
object {SeatCushion rotate 90*x translate <0,-1,-1>}
rotate 45*y translate <0.5,0.25,3.5>
}
light_source {<9,9,-9>,1}
Post a reply to this message
|
![](/i/fill.gif) |