|
|
|
|
|
|
| |
| |
|
|
From: Alan
Subject: Feature request: 'Open' cylinder with inner radius.
Date: 10 Aug 2000 06:55:38
Message: <39928a2a@news.povray.org>
|
|
|
| |
| |
|
|
Hello, all.
Doing a lot of CSG work has prompted this request. Whenever I require an
'open' cylinder that has some thickness to it's 'walls', I need to do a CSG
construct, e.g.:
difference {
cylinder {y*-1 y*1 1}
cylinder {y*-2 y*2 0.5}
texture {i_can't_believe_its_not_butter}
}
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?
Many thanks,
Alan.
Post a reply to this message
|
|
| |
| |
|
|
From: Warp
Subject: Re: Feature request: 'Open' cylinder with inner radius.
Date: 10 Aug 2000 06:59:46
Message: <39928b21@news.povray.org>
|
|
|
| |
| |
|
|
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.
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
|
| |
| |
|
|
From: John VanSickle
Subject: Re: Feature request: 'Open' cylinder with inner radius.
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
|
|
| |
| |
|
|
From: Alan
Subject: Re: Feature request: 'Open' cylinder with inner radius.
Date: 10 Aug 2000 08:26:32
Message: <39929f78@news.povray.org>
|
|
|
| |
| |
|
|
Thanks for the macro, John! Just me being lazy, really.
Alan.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |