POV-Ray : Newsgroups : povray.general : Clipping : Re: Clipping Server Time
7 Aug 2024 21:22:06 EDT (-0400)
  Re: Clipping  
From: Peter Popov
Date: 7 Jun 2001 01:32:14
Message: <9b4uht0k2pdahl512cc1l1kigcrgcivd52@4ax.com>
On Wed, 6 Jun 2001 17:50:20 -0400, "parasonic" <par### [at] homecom>
wrote:

>Is there a way to clip a torus along its internal circle, where you would
>still have a ring, but it would be an arc of x degrees?

Like this? The arc lies in the x-z plane, starts at +x and goes
counterclockwise.

#macro Arc (Major, Minor, Degrees)
  intersection
  {
    torus { Major, Minor }
    plane { -z, 0 }
    plane { -z, 0 rotate -Degrees*y }
  }
#end

  
Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

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