POV-Ray : Newsgroups : povray.advanced-users : Tricky object alignment problem : Re: Tricky object alignment problem Server Time
28 Jul 2024 10:14:13 EDT (-0400)
  Re: Tricky object alignment problem  
From: Orchid XP v2
Date: 27 May 2006 07:07:13
Message: <447832e1$1@news.povray.org>
>>Assuming that all 4 points are actually co-plannar, what would the *the 
>>simplest* way to fit a box{} object into the middle of the thing?
> 
> 
>   Actually it's not enough for the points to be coplanar, they must also
> form a perfect parallelogram or else 1 box will not do. If the shape is
> not a perfect parallelogram then you'll have to use at least the difference
> of two or three boxes.
> 
>   Of course you could go the easy way and close that object with
> polygons or even triangles, unless you really want it to be solid,
> in which case you'll have to either go with the boxes or use eg.
> planes.

Used for CSG --> I'd like it to be solid.

Hmm... planes is a good idea though!

(Actually, the code that generates the 4 points guarantees them to form 
a rectangle. To be specific, A and B are identical except for the Z 
coordinate, as are C and D...)


Post a reply to this message

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