POV-Ray : Newsgroups : povray.newusers : Prisms with rounded edges : Re: Prisms with rounded edges Server Time
29 Jul 2024 06:13:43 EDT (-0400)
  Re: Prisms with rounded edges  
From: PM 2Ring
Date: 7 Jul 2006 08:40:00
Message: <web.44ae554a6463b9dc76ba2c900@news.povray.org>
"tgl" <aub### [at] sympaticoca> wrote:
> "PM 2Ring" <nomail@nomail> wrote:
> > Have a look at this thread to see a couple of ways of making rounded prisms.
> >
> >
http://news.povray.org/povray.binaries.images/thread/%3Cweb.43847f2f53a825ce74786be00%40news.povray.org%3E/?mtop=11

>
>   Brilliant work!

Thanks, tgl!

>  (The following question has been forwarded by a member of
> the Society of the Coding Inept.)   When using the "Generalized Rounded
> Prism" macro, how is the radius of the edge controlled?

//Generalized Rounded Prism
#macro RPrism(Vtx, Sides, SH, SR)

Vtx is the 2D vertex list
Sides is the number of sides
SH is the side height
SR is the side rounding

So SR controls the radius of the edge. Makes sure SR is less than SH.

Have fun!


Post a reply to this message

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