POV-Ray : Newsgroups : povray.advanced-users : Tricky object alignment problem : Re: A solution Server Time
28 Jul 2024 16:20:52 EDT (-0400)
  Re: A solution  
From: Orchid XP v2
Date: 3 Jun 2006 15:09:56
Message: <4481de84@news.povray.org>
>>This seems to work...
>>
>>In case it way be of use to anybod else...
> 
> 
> Could you provide an example of use? I can't get it to work in the test 
> scene below. Granted, it doesn't use a parallelogram, but it looks like it 
> is meant to handle other coplanar points too. Besides, doesn't work with a 
> parallelogram either. If you really need it for parallelograms only, then I 
> can think of a simpler solution that uses a box instead of a prism.

It *is* supposed to work for any polygone. Apparently it doesn't...

Please rip out the line at the end of DrawPoly() that says

   Reorient_Trans(y, Norm)

and replace it with

   Shear_Trans(V3, V1, V2)

Let me know if that fixes the problem...


Post a reply to this message

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