POV-Ray : Newsgroups : povray.newusers : creating a tube : Re: creating a tube Server Time
31 Jul 2024 00:31:33 EDT (-0400)
  Re: creating a tube  
From: Christopher James Huff
Date: 23 Apr 2003 17:30:10
Message: <cjameshuff-3BA150.17300423042003@netplex.aussie.org>
In article <web.3ea6463e139c24052b26ab750@news.povray.org>,
 "Tabea" <hio### [at] webde> wrote:


> except of a difference between two cylinders?

I'm not sure what you expect to be better. It is the most common way of 
doing it. You could generate a mesh or use a lathe, but why?




> things that are allready exist.

Well, they are well documented. Here's an example that does what you 
asked about:

#macro Tube(Start, End, IRad, ORad)
    #local Axis = vnormalize(End - Start);
    difference {
        cylinder {Start, End, ORad}
        cylinder {Start - Axis*0.001, End + Axis*0.001, IRad}
    }
#end

If you still have problems, you are going to need to be more specific.

-- 
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.