POV-Ray : Newsgroups : povray.general : Trouble with a torus : Re: Trouble with a torus Server Time
6 Aug 2024 17:02:37 EDT (-0400)
  Re: Trouble with a torus  
From: Warp
Date: 14 Feb 2002 18:33:50
Message: <3c6c495d@news.povray.org>
Shay <sah### [at] simcopartscom> wrote:
: There is a simple, obdvious problem with this code, but I just can't see it.
: Why do a get a lip where the torus rests on the clipped sphere?

  Because you are putting the outer edge of the torus on the surface of
the sphere. They are not tangent.
  It means that the angle of the sphere surface normal at the intersection line
is 30 degrees but the angle of the torus surface normal is 0 degrees. Thus you
get a sharp edge there.
  Making the torus and the sphere tangent at y=0.5 requires a bit trickier
math.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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