POV-Ray : Newsgroups : povray.advanced-users : Curved, hollow cylinders : Re: Curved, hollow cylinders Server Time
8 Jul 2024 20:03:36 EDT (-0400)
  Re: Curved, hollow cylinders  
From: Chris B
Date: 18 Aug 2007 07:25:16
Message: <46c6d71c$1@news.povray.org>
"tgl" <aub### [at] sympaticoca> wrote in message 
news:web.46c669e8a3c5c29266be0b530@news.povray.org...
> Advanced users
> Is there a reasonably easy way to outline an irregular and curved 2D shape
> with hollow cylinders?
> Thanx
> tgl
>

Hi Aubrey,
I think that the difficultly very much depends on how you want to define the 
irregular, curved 2D shape that you start from.

If you've got a succession of points on the curve you can make a spline, or 
if your starting point is a spline, then you should be able to use 
Spline_Trans to translate a succession of objects to points on the spline. 
This could get a bit fiddly if you want to avoid gaps and overlaps.

If you start with any form of 'extruded' object based on your irregular 2D 
shape then you could use successive calls to the Trace function to identify 
a set of positions around the perimeter. This could be the easiest way if 
your starting point is a vector graphic defined in InkScape which can export 
POV-Ray prism objects. If the 2D shape is roughly circular you could start 
each trace at the centre and sweep around in a circle with each successive 
trace, identifying points where your cylinders will be placed. The tricky 
bit here is avoiding 'blind' spots, where part of the perimeter is masked by 
another part of the perimeter (and still fiddly if you want to avoid gaps 
and overlaps).

Regards,
Chris B.


Post a reply to this message

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