POV-Ray : Newsgroups : povray.newusers : Dumb Blonde requires your help Server Time
5 Nov 2024 03:19:14 EST (-0500)
  Dumb Blonde requires your help (Message 1 to 4 of 4)  
From: JennyPage
Subject: Dumb Blonde requires your help
Date: 20 Aug 2002 17:40:10
Message: <web.3d62b6ee2ffea3e6ee5540370@news.povray.org>
Actually, I'm not that dumb!  I'm a Maths undergraduate writing a report on
heat transfer.  I need a fairly simple illustration of a tea urn
(commercial catering water boiler).

The tea urn is made of 1 layer of stainless steel and then 1 layer of
polypropylene.

I tried to draw some cylinders but they seem to have zero width.  I could
not find a way to draw cylinders with a substantial width.

Can anyone please help?

Kind regards,
Jenny Page

email: jen### [at] hotmailcom


Post a reply to this message

From: Brendan Ryan
Subject: Re: Dumb Blonde requires your help
Date: 20 Aug 2002 18:07:05
Message: <3D62BD1B.5020409@global2000.net>
> I tried to draw some cylinders but they seem to have zero width.  I could
> not find a way to draw cylinders with a substantial width.
> 

Look up difference in the povray documentation.

difference {
    cylinder
    {
       <0,0,0>,
       <0,1,0>,
       1
       pigment { color rgb <1,0,0> } //red
    }
    cylinder
    {
       <0,0.5,0>,
       <0,1.1,0>,
       0.5
       pigment { color rgb <0,0,1> } //blue
    }
}

This code would make a cylinder with a cylinderial piece cut out of it. 
  The second one is what is cut out of the first one.  You can have as 
many shapes cut out of the first shape.
If you need more help you can always ask.

Brendan


Post a reply to this message

From:
Subject: Re: Dumb Blonde requires your help
Date: 20 Aug 2002 18:10:02
Message: <3d62be3a$1@news.povray.org>
did you specify a radius? it comes right after the second coordinate

"JennyPage" <jen### [at] hotmailcom> wrote in message
news:web.3d62b6ee2ffea3e6ee5540370@news.povray.org...
> Actually, I'm not that dumb!  I'm a Maths undergraduate writing a report
on
> heat transfer.  I need a fairly simple illustration of a tea urn
> (commercial catering water boiler).
>
> The tea urn is made of 1 layer of stainless steel and then 1 layer of
> polypropylene.
>
> I tried to draw some cylinders but they seem to have zero width.  I could
> not find a way to draw cylinders with a substantial width.
>
> Can anyone please help?
>
> Kind regards,
> Jenny Page
>
> email: jen### [at] hotmailcom
>


Post a reply to this message

From: Christopher James Huff
Subject: Re: Dumb Blonde requires your help
Date: 20 Aug 2002 18:14:42
Message: <chrishuff-E3558D.17001520082002@netplex.aussie.org>
In article <web.3d62b6ee2ffea3e6ee5540370@news.povray.org>,
 "JennyPage" <jen### [at] hotmailcom> wrote:

> Actually, I'm not that dumb!  I'm a Maths undergraduate writing a report on
> heat transfer.  I need a fairly simple illustration of a tea urn
> (commercial catering water boiler).
> 
> The tea urn is made of 1 layer of stainless steel and then 1 layer of
> polypropylene.
> 
> I tried to draw some cylinders but they seem to have zero width.  I could
> not find a way to draw cylinders with a substantial width.

By "width", do you mean thickness of the cylinder wall?
Shape surfaces are infinitely thin in POV, if you are using cylinders 
with "open" or "clipped_by" to remove the end caps you will get a single 
surface instead of a thick sheet. If you want a tube with some thickness 
to the walls, you should use a CSG difference of two cylinders:

difference {
    cylinder {< 0, 0, 0>, < 0, 1, 0>, 0.5}//the main cylinder
    //Cut out the center to leave a tube
    cylinder {< 0,-0.001, 0>, < 0, 1.001, 0>, 0.4}
}

Notice that the end points are slightly outside the main cylinder, this 
is to avoid precision errors where the surfaces would coincide.

If the polypropylene is thin enough that you can't see its thickness, 
you could get away with just texturing the inside differently. In that 
case, just give the first cylinder a stainless steel texture, and the 
second cylinder a polypropylene texture.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

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