POV-Ray : Newsgroups : povray.general : inclined Prism ? : Re: inclined Prism ? Server Time
11 Aug 2024 07:19:26 EDT (-0400)
  Re: inclined Prism ?  
From: Margus Ramst
Date: 24 Aug 1999 20:09:40
Message: <37C33439.EE780E0@peak.edu.ee>
You can shear the prism with a matrix transformation. Something like:

matrix < 1, 1, 0,
         0, 1, 0,
         0, 0, 1,
         0, 0, 0 >

Margus

eric wrote:
> 
> How to make an incline prism with POVray ?
> 
> I can find in User's guide how to make a prism with a base in a plan, and
> going 'upward' (i.e if the base is in x,z plan, the moving axis of the prism
> is along the y vector.
> 
> Buit how can I do a prism inclined like the Pise tower ? (with, for instance
> a moving vector incline with 20 degrees to an axis..).
> 
> Is my only choice is to use a mesh or a straight prism cut by 'inclined
> boxes' ? That would be very long and tedious compared to my simple polygonal
> base and prism shape...
> 
> I could use SPatch, but I need a rigorous definition of the polygonal base,
> and in SPatch I can't define coordinates other than by moving the cursor and
> counting the grid marks....
> 
> Thanks you for your help.


Post a reply to this message

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