POV-Ray : Newsgroups : povray.general : Automatic breaking of edges? : Re: Automatic breaking of edges? Server Time
30 Jul 2024 10:23:55 EDT (-0400)
  Re: Automatic breaking of edges?  
From: Alain
Date: 14 Mar 2009 14:01:11
Message: <49bbf0e7$1@news.povray.org>
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

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