|
![](/i/fill.gif) |
Rune wrote:
> Hi,
>
> I have forgotten - is there ever anyone who have made a macro for creating
> rounded prisms? I currently need a macro to create rounded prisms, where the
> rounded prism will fit inside a normal prism with the same points. In other
> words, the rounding thickness should not be added to the prism, but rather
> some volume should be taken away at the edges to get the rounding.
>
> I tried to do the math myself, but it turned out to be a bit tricky for me.
>
> I have searched on google for both rounded and smooth prism, but with no
> good results as far as I can see. I just seem to remember that such a macro
> existed, but I may be mixing up things...?
Hi,
I don't think its quite what you're looking for, but in case it is: my
PointArrays macros in the object collection can convert a linear spline
to a bezier spline with rounded corners. The convex corners will lie
inside the original as you want, but the rounding of the concave corners
will not. Also, it is still just a prism, so the y oriented edges will
be round but the top and bottom faces will still have sharp edges.
If you're interested check out the PA_Linear_To_Bezier and
PA_Linear_To_Bezier_Circ (and maybe PA_Linear_To_Bezier2) macros in the
PointArrays package. An example image can be seen here:
http://news.povray.org/4856d321%40news.povray.org
Hope this helps.
--
-The Mildly Infamous Blue Herring
Post a reply to this message
|
![](/i/fill.gif) |