POV-Ray : Newsgroups : povray.advanced-users : Closing brace bug ? : Re: Closing brace bug ? Server Time
2 Nov 2024 11:23:43 EDT (-0400)
  Re: Closing brace bug ?  
From: Ken
Date: 15 Oct 1999 12:14:35
Message: <380752A0.BBD4C09@pacbell.net>
Ron Parker wrote:
> 
> On Fri, 15 Oct 1999 08:56:37 -0700, Ken wrote:
> > Actually the code was intentionaly left as it was to illustrate the
> >problem. What I am confused about though is why the coincident surface
> >problem is manifesting itself on the surface areas of the sphere that
> >are in no way in contact with any of the csg operation.
> 
> Because the whole thing is part of the csg operation.  Taking out the
> irrelevant parts, you're left with this, which is obviously wrong:
> 
> difference {
>   sphere   {<0,0,0>, 1 pigment { rgb 1 }}
>   sphere   {<0,0,0>, 1 pigment { rgb 1 }}
>   sphere   {<0,0,0>, 1 pigment { rgb 1 }}
>   :
>   :
> }

I understand now. Because part of the operation is within the loop with
a count of 12 I am getting 12 copies of the sphere rather than the 1
I had assumed.

 These programming loops are confusing as hell sometimes "#%@!!!

-- 
Ken Tyler -  1100+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

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