POV-Ray : Newsgroups : povray.general : Suggestion for new object : Re: Suggestion for new object Server Time
13 Aug 2024 19:19:44 EDT (-0400)
  Re: Suggestion for new object  
From: PoD
Date: 6 Jul 1998 17:08:28
Message: <35A12EB5.7BF2@merlin.net.au>
Dan Connelly wrote:
> 
> This is pretty trivial with #macro, union, and polygon.
> 
> for example (not debugged)
> 
> #macro metabox(P0, P1, P2, P3, P4, P5, P6, P7)
>   union {
>     polygon {5, P0, P1, P2, P3, P0}
>     polygon {5, P4, P5, P6, P7, P4}
>     polygon {5, P0, P1, P5, P4, P0}
>     polygon {5, P1, P2, P6, P5, P1}
>     polygon {5, P2, P3, P7, P6, P3}
>     polygon {5, P3, P0, P4, P7, P3}
>   }
> #end
> 
> Mikael Gustafsson wrote:
> >
> > Sorry for a second post but the last sentence was a bit confusing.
> >
> > With POV-Ray 3.1 I think it would be possible to incorporate a new object.
> > Well, here's my two cents on the subject. The current box is probably one of
> > the most used objects in POV, but it has some drawbacks. The current syntax
> > only allows boxes with 90 degree corners. But if POV inwoked a new object
> > that lets the user define all eight corners of the box, it would among other
> > things help creating #while loops that have flat areas as complex matrix
> > transformations that are required with the current boxes coule be avoided.
> >
> > Mikael Gustafsson
> > mik### [at] nettifi
> 
> --
> http://www.flash.net/~djconnel/

But that can't be CSGd.


Post a reply to this message

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