POV-Ray : Newsgroups : povray.general : best way to make a beveled cube : Re: best way to make a beveled cube Server Time
6 Aug 2024 21:40:21 EDT (-0400)
  Re: best way to make a beveled cube  
From: Josh English
Date: 17 Jan 2002 19:22:10
Message: <3C476AB3.5C31A29B@spiritone.com>
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

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