|
|
On Tue, 14 Mar 2000, Chris Huff wrote:
> In article
> <Pin### [at] belialrenonvus>,
> <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> }
> >
> > see I always make my boxes that big then scale the suckers to
> > whatever I'm doing, the thing is typing all those 0.5's can be tiring
> > (I get around that with cut and paste, but still if there is some
> > shortform...I'd love to know it :)
>
> You could use this:
> #declare Box = box {<-0.5,-0.5,-0.5>,<0.5,0.5,0.5> }
>
> And then make your boxes with
> object {Box
> ...
> }
Doh! I should have thought of that! :)
> Or you can leave the 0's out:
> box {<-.5,-.5,-.5>,<.5,.5,.5> }
> And to shorten it further, you can use the feature of POV that promotes
> floats to vectors when necessary:
> box {-0.5, 0.5}
> or
> box {-.5,.5}
>
Yeah...ok
> This isn't as easy to immediately understand, though, and is just as
> long as using a Box variable.
>
>
> If you really want to eliminate keypresses, try this:
> #macro Box()
> box {<-.5,-.5,-.5>,<.5,.5,.5>
> #end
>
> You would use the macro this way:
>
> Box()
> ...object stuff, textures, etc go here...
> }
>
> You could use a shorter name for the macro, but you can't eliminate the
> parentheses.
Kewl.....sorta like #define eh? but without the object{} thing... Can I do
that for CSG stuff too? I use CSG a LOT (pages of the stuff) this could
save some typing :)
> --
> Chris Huff
> e-mail: chr### [at] yahoocom
> Web page: http://chrishuff.dhs.org/
>
>
Post a reply to this message
|
|