|
![](/i/fill.gif) |
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] netti fi
--
http://www.flash.net/~djconnel/
Post a reply to this message
|
![](/i/fill.gif) |