|
|
Christoph Boos <Chr### [at] 3-sch> wrote:
> 1) Is there an easy way to create a box with rounded (soft) edges?
Either use a superellipsoid or the Round_Box() macro from shapes.inc.
You can also create the rounded box using the box, cylinder and sphere
primitives (this is how Round_Box() does it, actually).
> 2) Is is possible to have just one of the edges rounded?
If you build your rounded box with the abovementioned primitives, the
answer is obviously yes. You can build it so that you leave one or more
of the edges sharp. (Requires a bit of planning, but shouldn't be difficult.)
> 3) same thing like 1) and 2) but with a bevel
You'll have to construct this object with other primitives.
In this case there's no unambiguous answer to which method is easier
and/or most efficient. All methods have their advantages and disadvantages
(either they are quite laborious to construct or they are rather slow to
render).
You could take a box and difference smaller boxes (or planes) from it
(if you use planes you might have to bound the resulting object by hand
in order to improve rendering speed).
You might also make it as a mesh, in which case you can better control
the vertex points of the object. A mesh should also be rather fast to
render (but you might want to specify 'hierarchy off' with such a low
triangle count).
There are probably other possible ways as well.
--
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}// - Warp -
Post a reply to this message
|
|