POV-Ray : Newsgroups : povray.general : inclined Prism ? : Re: inclined Prism ? Server Time
11 Aug 2024 07:10:14 EDT (-0400)
  Re: inclined Prism ?  
From: Ken
Date: 25 Aug 1999 17:20:13
Message: <37C45DD8.2D7F817C@pacbell.net>
eric wrote:
> 
> I need bevelled prisms...
> To explain what I mean:If you have a regular cube, it's a kind of prism with
> orthogonal edges. If I rotate it, it still have orthogonal edges.
> What I need is an extrusion  with non-orthogonal to base vector. (See my
> beautiful picture.. I need (2), and not (1) ..)
> Perhaps there is a simple way to achieve this lkind of frame... ?
> 
> Of course, I could use CSG Differences to cut a regular prism with a rotated
> cube to obtain a bevelled prism.. but well, it would be very fastidious in
> my case...
> 
> Chris Huff wrote in message <37C327F8.F7FE8E00@compuserve.com>...
> >What is wrong with simply rotating the prism?
> >

A rotational sheering operation make this a snap:

camera{location<-0.75,0,-3> look_at 0}
light_source{<-100,10,-200>rgb 1}

     box { -.5,.5 
           rotate 20*-z
           scale<1,.5,1>
           rotate 10*z
 pigment { rgb 1 }
         }

-- 
Ken Tyler

See my 850+ Povray and 3D Rendering and Raytracing Links at:
http://home.pacbell.net/tylereng/index.html


Post a reply to this message

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