POV-Ray : Newsgroups : povray.general : While we are talking about changes : Re: While we are talking about changes Server Time
10 Aug 2024 11:27:54 EDT (-0400)
  Re: While we are talking about changes  
From: Ken
Date: 14 Mar 2000 19:22:43
Message: <38CED846.32BBF0E5@pacbell.net>
cre### [at] belialrenonvus wrote:
> Good!:) btw since we're kinda on the subject, how can I shorten the
> box {<-0.5,-0.5,-0.5>,<0.5,0.5,0.5> }

Some typical shorthand primitives:

box {<-0.5,-0.5,-0.5>,<0.5,0.5,0.5> }

box{-.5,.5) // a unit box at the origin


sphere {<0,0,0>,1 }

sphere{0,1) // a unit sphere at the origin


cylinder {<-.5, 0, 0>, <.5, 0, 0>, 1 }

cylinder{x*-.5,x*.5,1} // 1 unit long in the x direction with a dia of 1


cone {<0, -.5, 0>, 1, <0, .5, 0>, 0 }

cone{y*-.5,1,y*.5,0} // 1 unit high with a base of 1 and a point of zero
                     // centered at the origin



-- 
Ken Tyler -  1300+ 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.