|
|
"Lt. Kettch" wrote:
>
> I am trying to put two cylinders together, but the red over laps onto
> the gray(90) and vice-verca. How do I crop the over lapping parts with
> out leaving a big hole in the finished item? BTW the gray that sticks
> out the back of the red doesn't matter.
Here is one possible way to do it:
camera {location < 0, 0, -2 >look_at 0}
light_source{<0,0,-10>rgb 1}
#declare Cy1 = cylinder{ x*-1,x*0,.25 pigment{red 1}}
#declare Cy2 = cylinder{ x* 0,x*1,.25 pigment{blue 1}}
intersection {
object {Cy1}
plane { x,-.125 translate y*-.25 rotate 22.5*z pigment {red 1}}
rotate 22.5*-z translate<.125,0,0>
}
intersection {
object {Cy2}
plane { x,.125 translate y*-.25 inverse rotate 22.5*-z pigment {blue 1}}
rotate 22.5*z translate x*-.125
}
--
Ken Tyler - 1300+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/
Post a reply to this message
Attachments:
Download 'test1.jpg' (5 KB)
Preview of image 'test1.jpg'
|
|