POV-Ray : Newsgroups : povray.programming : Creating a hemisphere with tori? : Re: Creating a hemisphere with tori? Server Time
29 Jul 2024 04:22:30 EDT (-0400)
  Re: Creating a hemisphere with tori?  
From: Robert H  Morrison
Date: 22 Aug 1998 08:31:19
Message: <01bdcdc0$88e70ba0$40563fc3@hitex_mo.hitex.de>
PoD <pod### [at] merlinnetau> schrieb im Beitrag <35D### [at] merlinnetau>...
> Daniel Sullivan wrote:
> > 
> > Hi there-
> > 
> > I'm trying to create a 'screen' for my povray bong using tori.
> > At the same time I'm trying learn how to use povrays programming
> > directives so I do'nt have to write so many lines of code.
> > I'm including the code I've already written so you can see what I'm
> > attempting to do.
> > 
> > [SNIP]
> > 
> > sig### [at] hotmailcom
> > http://www.geocities.com/SoHo/1006
> 
> [SNIP]
> 
> #declare a = .1 #while(a < 1)
> 	object{b_ring scale cos(asin(a)) translate y*a }
> 	#declare a = a+.1 #end
> 

Wouldn't:

	#declare a = 0.1

	#while( a < 1 )
		object{ b_ring scale 1 - a translate y * a }
		#declare a = a + 0.1
	#end

be a lot easier to read (and understand)?
-- 
Best regards,
 _ __                      _    ,   _ _ _
' )  )     /         _/_  ' )  /   ' ) ) )
 /--' ____/___/> __  /     /--/     / / / __,_  __  o _   ______
/  \_(_) /_) (__/ (_<__   /  ( o   / ' (_(_) (_/ (_<_/_)_(_) / <_

Robert H. Morrison                      Tel:   +49 721 9628 167
Software Development, Basis Team        FAX:   +49 721 9628 261
Hitex-Systementwicklung GmbH            Email: RMorrison@hitex.de


Post a reply to this message

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