|
|
I came up with this:
#declare block =
prism {
linear_sweep
linear_spline
-1, // sweep the following shape from here ...
1, // ... up through here
9, // the number of points making up the shape ...
<-0.8,-1>, <0.8,-1>,<1,-0.8>, <1,0.8>, <0.8,1>, <-0.8,1>,<-1,0.8>,
<-1, -0.8>, <-0.8,-1>
pigment { rgb y}
}
intersection {
object { block }
object { block rotate 90*z scale <1,0.999,1>}
object { block rotate 90*x scale <1,1,0.999>}
}
(without the scaling it gets bad surfaces, I forget the proper term for it)
Is this the shape you're looking for?
Josh English
eng### [at] spiritonecom
http://www.spiritone.com/~english
Mitchell Waite wrote:
>
> Friends:
>
> I would like to put a 45 degree bevel on the edges of my box. I thought of
> using 4 planes to cut the edges but the material does not look correct when
> its rendered. Plus that is not very elegant. Is there a simple trick to
> doing this?
>
> thanks
>
> Mitch
Post a reply to this message
|
|