POV-Ray : Newsgroups : povray.general : changing a box from one end to the other, is it possible? Server Time
16 Nov 2024 07:13:44 EST (-0500)
  changing a box from one end to the other, is it possible? (Message 1 to 3 of 3)  
From: Robin Johansen
Subject: changing a box from one end to the other, is it possible?
Date: 27 Feb 2004 18:57:16
Message: <403fd95c@news.povray.org>
Is it possible to change to box (with four corners in one end) to have only
two corners in the other end?

And how do I do it?


Post a reply to this message

From: John VanSickle
Subject: Re: changing a box from one end to the other, is it possible?
Date: 27 Feb 2004 21:09:38
Message: <403FF85F.49C07FD2@hotmail.com>
Robin Johansen wrote:
> 
> Is it possible to change to box (with four corners in one end) to have
> only two corners in the other end?
> 
> And how do I do it?

It's called the prism object.  Read up on it in the docs.

Regards,
John


Post a reply to this message

From: Warp
Subject: Re: changing a box from one end to the other, is it possible?
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.