POV-Ray : Newsgroups : povray.newusers : tori : Re: tori Server Time
5 Nov 2024 03:17:05 EST (-0500)
  Re: tori  
From: Chris Huff
Date: 19 Jan 2001 14:41:03
Message: <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.