POV-Ray : Newsgroups : povray.general : Feature request: 'Open' cylinder with inner radius. : Re: Feature request: 'Open' cylinder with inner radius. Server Time
9 Aug 2024 09:03:08 EDT (-0400)
  Re: Feature request: 'Open' cylinder with inner radius.  
From: John VanSickle
Date: 10 Aug 2000 07:46:07
Message: <39929600.6D89019C@erols.com>
Warp wrote:
> 
> Alan <man### [at] freeukcom> wrote:
> : Would it be possible to create a command that's a cross between
> : cylinder and disc so that I can specify an inner radius for an
> : 'open' cylinder without going CSG?

> You can easily make a #macro for this.

#macro Macaroni(Start,End,OuterRad,InnerRad)
  #local vA=vnormalize(End-Start);
  difference {
    cylinder { Start,End,OuterRad }
    cylinder { Start-vA,End+vA,InnerRad }
  }
#end

Regards,
John


Post a reply to this message

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