POV-Ray : Newsgroups : povray.general : Wanted: Elastic Gel Chair : Re: Wanted: Elastic Gel Chair Server Time
1 Aug 2024 02:14:44 EDT (-0400)
  Re: Wanted: Elastic Gel Chair  
From: Bob H
Date: 15 May 2006 14:37:01
Message: <4468ca4d$1@news.povray.org>
"Sven Littkowski" <sve### [at] jamaica-focuscom> 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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.