POV-Ray : Newsgroups : povray.general : changing a box from one end to the other, is it possible? : Re: changing a box from one end to the other, is it possible? Server Time
3 Aug 2024 12:19:46 EDT (-0400)
  Re: changing a box from one end to the other, is it possible?  
From: Warp
Date: 1 Mar 2004 11:21:57
Message: <40436325@news.povray.org>
Robin Johansen <kri### [at] onlineno> wrote:
> Is it possible to change to box (with four corners in one end) to have only
> two corners in the other end?

  Do you mean if you can scale any box-shaped object to appear as a prism
like you describe, or if you can create a shape with 5 faces like you
describe?
  In the first case the answer is no: You can't scale an object in such
non-uniform way.
  In the second case there are quite many possible solutions. I'm a bit
busy right now so I don't have the time to write some pov-code, but I'm
sure someone else will be willing to help with that. :)

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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