POV-Ray : Newsgroups : povray.advanced-users : Bounding Question : Re: Bounding Question Server Time
30 Jul 2024 12:32:49 EDT (-0400)
  Re: Bounding Question  
From: Ken
Date: 11 Aug 1999 05:05:29
Message: <37B13C91.54E5E730@pacbell.net>
Nieminen Mika wrote:
> 
> Ken <tyl### [at] pacbellnet> wrote:
> :  #declare Final_Shape =
> :  difference {
> :  Loop stuff
> :      object { Diff_Obj }
> :      object { Diff_Shape
> :  bounded_by {
> :      object { Diff_Shape_bound }
> :             }
> :             }
> :  #end loop stuff      }
> 
>   Sorry for whining about indentation again, but here we have an excellent
> example of a very simple structure where it's very difficult to see what
> the bounding object is bounding. Is it bounding the difference? Or the second
> object? I had to watch the code several minutes before I saw it.
> 
>   Note: I'm not saying that you should change your indentation style. I just
> liked this example.

  When scripting for my own use it would more likely have looked like this:

  #declare Final_Shape =
  difference {
  #Loop stuff
      object { Diff_Obj }
      object { Diff_Shape bounded_by{object{Diff_Shape_bound}}}
  #end }


-- 
Ken Tyler

See my 700+ Povray and 3D Rendering and Raytracing Links at:
http://home.pacbell.net/tylereng/index.html


Post a reply to this message

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