POV-Ray : Newsgroups : povray.advanced-users : Automised visualization of a 'hasn't to be square' room : Re: Automised visualization of a 'hasn't to be square' room Server Time
29 Jul 2024 20:26:14 EDT (-0400)
  Re: Automised visualization of a 'hasn't to be square' room  
From: Remco Poelstra
Date: 26 Dec 2000 08:36:32
Message: <3A49F06B.3040003@home.nl>
Chris Huff wrote:

> You shouldn't need to use "inverse". Just make sure that a point in the 
> room is "inside" all of the planes, and intersect them all together.
> What is the data you have to work with? Axis-aligned planes and 
> transformations? Plane normal and distance? Vertices?
> You could start with something like this as a base:
> 
> #declare CeilingTrans = transform {...}
> #declare FloorTrans = transform {...}
> #declare LeftWallTrans = transform {...}
> #declare RightWallTrans = transform {...}
> #declare FarWallTrans = transform {...}
> #declare NearWallTrans = transform {...}
> 
> intersection {
>     plane {y, 0 transform CeilingTrans translate y}
>     plane {-y, 0 transform FloorTrans translate -y}
>     plane {x, 0 transform LeftWallTrans translate x}
>     plane {-x, 0 transform RightWallTrans translate -x}
>     plane {z, 0 transform FarWallTrans translate z}
>     plane {-z, 0 transform NearWallTrans translate -z}
> }
> This should give you an axis-aligned cube where you can adjust each wall 
> individually.
> 

Great! Looks like I'm going to use something based on this one.

Thanks for the help,

Remco Poelstra


Post a reply to this message

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