|
|
Tim
I think I'd look into intersections, such as
intersection{
cylinder{
<0,1,0>,
<0,-1,0> 0.75
}
sphere{
<0,0,0>,1
scale <1.25,1.25,1>
}
pigment{
gradient y
color_map{
[0.0 color Orange]
[0.25 color White]
[0.5 color Green]
[0.75 color White]
[1.0 color Orange]
}scale 0.25
}
rotate z*90
}
you can do some really interesting things with intersections, and
don't forget that you can scale an object aswell, as in my
example above, I've intersected a sphere and a cylinder, but
scaled the sphere uneavenly, which gives the finished object this
unusual shape. I am of the mind that anything can be done with
CSG though a few extra key words to enhance the scaling and
bending of objects would help.
TigerHawk wrote:
>
> About a week ago I started creating a toilet model in pov-ray (yes,
> I know it's been done, but I wanted my own toilet :) via a text editor.
> I did not want to use a modeller because I'd be able to move things
> around better (I suppose I could make peices of it in a modeller, but
> the scaling may be off, etc. Besides, I like CSG). The problem I have
> encountered is the smoothing of the edges. Now, I know I can use a
> superellipsoid for the tank and tank lid, but what about the seat and
> the top of the base? Using cylinders and such makes the edges very sharp
> (OUCH!) and I am wondering how might one go about smoothing them
> out? Superellipsoinds can't do rounded cylinder shapes (or can they?) so
> I am kind of stuck
>
> I thought about using CSG of the difference of a square and the side of
> a cylinder, and using that and differencing that with another object,
> but that would only make a mold for a straight-edge.
>
> Any ideas?
>
> Tim Soderstrom
> TigerHawk
> Tig### [at] SticNet
--
Cheers
Steve email: mailto:sjl### [at] ndirectcouk
%HAV-A-NICEDAY Error not enough coffee. 0 PPS
web: http://www.ndirect.co.uk/~sjlen/
or: http://start.at/zero-pps
Post a reply to this message
|
|