POV-Ray : Newsgroups : povray.newusers : Re: How to transform box<0 , 1> to box<p1 , p2>? : Re: How to transform box<0 , 1> to box<p1 , p2>? Server Time
2 Nov 2024 05:19:58 EDT (-0400)
  Re: How to transform box<0 , 1> to box<p1 , p2>?  
From: incognito
Date: 22 Aug 2004 15:35:01
Message: <web.4128f459baeff42355d024bf0@news.povray.org>
Not sure if this answers the question but if you declare the box to be an
object, you can then rotate that object to the desired orientation.

Hope this helps.


"D. H. Berlin" <wee### [at] PoVStefaniede> wrote:
> I have chosen another way to solve this:
>
> #macro dabox(bd,yrot,p1)
> // bd: <width,height,deepnes>;    yrot: -> orientation;     p1: box-corner
> bottom left
>  box{0, 1 texture {boxhm}
>      scale bd
>      rotate y*yrot
>      translate p1
>  }
> #end
>
> Greetings
> Dieter


Post a reply to this message

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