|
![](/i/fill.gif) |
joe nous illumina en ce 2009-03-13 23:56 -->
> As a machinist, when we make a part, we are often asked to "break" edges with a
> certain radius. This makes edges somewhat smoother without altering the shape
> to a large degree. Say if I made a 1" cube out of steel, each edge might have
> a .030 radius. No longer sharp edges but yet still a 1" cube. If I create a
> box in povray the edges are very sharp. Can a radius be applied automatically
> to edges? It is very tedious to create radius edges in code even for a simple
> shape.
>
>
If you look into the various include files from the distribution, you'll find
"shapes.inc".
That include contains several macro based shapes, including a round_box that
should fit the bill quite nicely, and faster than the isosurface solution.
You should also take a look to the object collection. It contains the code to
create various shapes with rounded edges.
--
Alain
-------------------------------------------------
You know you've been raytracing too long when you wonder why you ever collected
those 200 megs worth of paint and image manipulation programs now rusting
somewhere on your hard drive.
Ken Tyler
Post a reply to this message
|
![](/i/fill.gif) |