POV-Ray : Newsgroups : povray.general : Tubes from Cartesian Coordinates Server Time
5 Nov 2024 18:25:45 EST (-0500)
  Tubes from Cartesian Coordinates (Message 1 to 4 of 4)  
From: Eric Brown
Subject: Tubes from Cartesian Coordinates
Date: 11 Nov 2006 10:45:00
Message: <web.4555eed76688167d21e40f9f0@news.povray.org>
I wish to make a "tube" which follows along a set of cartesian coordinates
which I input:

{x1,y1,z1},
{x2,y2,z1},
....
{xN,yN,zN}

and the tube radius.

In general, the "tube" does not obey a quadratic polynomial, but it could
easily be represented by a cubic-spline.  I though about making a bunch of
cylinders, but this might introduce texture that shows the granularity of
my step size.

Does anyone have a solution?

Thanks!
Eric


Post a reply to this message

From: Alain
Subject: Re: Tubes from Cartesian Coordinates
Date: 11 Nov 2006 11:10:15
Message: <4555f5e7@news.povray.org>
Eric Brown nous apporta ses lumieres en ce 11/11/2006 10:40:
> I wish to make a "tube" which follows along a set of cartesian coordinates
> which I input:

> {x1,y1,z1},
> {x2,y2,z1},
> ....
> {xN,yN,zN}

> and the tube radius.

> In general, the "tube" does not obey a quadratic polynomial, but it could
> easily be represented by a cubic-spline.  I though about making a bunch of
> cylinders, but this might introduce texture that shows the granularity of
> my step size.

> Does anyone have a solution?

> Thanks!
> Eric


Using a collection of cylinders, it's best to put spheres at the junctions, they 
help to hide the angling.
A sphere_sweep can be a solution. Point format is <x,y,z>,Rad. Be wary that it 
tend to show some artefacts in some cases and can be slow for large sweeps, 
those showing large, broad curves. This is due of the often huge bounding box. 
In that case, splitting the sweep into several sub-sweeps in an union can 
greatly improve performances.

-- 
Alain
-------------------------------------------------
A true friend is someone who reaches for your hand and touches your heart.


Post a reply to this message

From: Tor Olav Kristensen
Subject: Re: Tubes from Cartesian Coordinates
Date: 11 Nov 2006 12:18:21
Message: <455605dd$1@news.povray.org>
Eric Brown wrote:
> I wish to make a "tube" which follows along a set of cartesian coordinates
> which I input:
> 
> {x1,y1,z1},
> {x2,y2,z1},
> ....
> {xN,yN,zN}
> 
> and the tube radius.
> 
> In general, the "tube" does not obey a quadratic polynomial, but it could
> easily be represented by a cubic-spline.  I though about making a bunch of
> cylinders, but this might introduce texture that shows the granularity of
> my step size.
> 
> Does anyone have a solution?

sphere_sweep as Alain suggested or a mesh made with NURBS or
other splines possibly combined with some Frenet Frame macros.

-- 
Tor Olav
http://subcube.com


Post a reply to this message

From: Andycadd
Subject: Re: Tubes from Cartesian Coordinates
Date: 12 Nov 2006 12:20:00
Message: <web.45575790ba30640cfedbe4b90@news.povray.org>
"Eric Brown" <nomail@nomail> wrote:
> I wish to make a "tube" which follows along a set of cartesian coordinates
> which I input:
>
> {x1,y1,z1},
> {x2,y2,z1},
> ....
> {xN,yN,zN}
>
> and the tube radius.
>
> In general, the "tube" does not obey a quadratic polynomial, but it could
> easily be represented by a cubic-spline.  I though about making a bunch of
> cylinders, but this might introduce texture that shows the granularity of
> my step size.
>
> Does anyone have a solution?
>
> Thanks!
> Eric

do you want the segments to "spline" curve or can they be straight?

are the inputs in a file to start with?


Post a reply to this message

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