POV-Ray : Newsgroups : povray.newusers : tori : Re: tori Server Time
5 Sep 2024 10:32:14 EDT (-0400)
  Re: tori  
From: Mark M  Wilson
Date: 19 Jan 2001 15:34:29
Message: <3a68a4d5$1@news.povray.org>
That looks pretty good.  Now once I get my HD back up and running I can try
it!  (uggghh  -- don't ask...)
Thanks,
Mark M. Wilson


Chris Huff <chr### [at] maccom> wrote in message
news:chrishuff-E0D107.14420819012001@news.povray.org...
> In article <3a689206@news.povray.org>, "Mark M. Wilson"
> <mrm### [at] worldnetattnet> wrote:
>


>
> As long as you don't need an angle >= 180, you can just use an
> intersection or difference with two planes:
> (this macro is untested!)
> #macro TorusArc(MajorRadius, MinorRadius, ArcAngle)
> intersection {
>     torus {MajorRadius, MinorRadius}
>     plane {-z, 0}
>     plane {z, 0 rotate -y*ArcAngle}
> }
> #end
>
> union {
>     object {TorusArc(1, 0.1, 60) ...}
>     object {TorusArc(1, 0.1, 60) ...}
>     object {TorusArc(1, 0.1, 60) ...}
>     ...
> }
>
> --
> Christopher James Huff
> Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
> TAG: chr### [at] tagpovrayorg, http://tag.povray.org/
>
> <><


Post a reply to this message

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