POV-Ray : Newsgroups : povray.general : Half a cylinder (with open ends) : Re: Half a cylinder (with open ends) Server Time
29 Jul 2024 14:18:26 EDT (-0400)
  Re: Half a cylinder (with open ends)  
From: peter puzzelaar
Date: 28 Jul 2012 16:45:00
Message: <web.50144ef2c440f47947437ba70@news.povray.org>
"Chaanakya" <nomail@nomail> wrote:
> Hey guys!
>
> I was trying to create half of a hollow cylinder (both ends open).  I tried
> using CSG with an intersection, and that gave me a half a hollow cylinder, but
> I'd like to not have a plane on the end.  That is, I'd like essentially a curved
> plane (the side of the cylinder without the endcaps).  Is there some
> transformation I could use on, for example, a box to achieve this?
>
> Thanks in advance!
>
> - Chaanakya

The object cylinder also comes with the (optional) attribute "open".
When "open" is added, the cylinder will have the caps removed.
Hence this way, no csg needs to be used, and your code will be a tiny bit
simplified.

Peter.


Post a reply to this message

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