POV-Ray : Newsgroups : povray.general : best way to make a beveled cube Server Time
6 Aug 2024 19:24:56 EDT (-0400)
  best way to make a beveled cube (Message 1 to 8 of 8)  
From: Mitchell Waite
Subject: best way to make a beveled cube
Date: 17 Jan 2002 18:46:40
Message: <3c476260@news.povray.org>
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

From: Josh English
Subject: Re: best way to make a beveled cube
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

From: Mitchell Waite
Subject: Re: best way to make a beveled cube
Date: 17 Jan 2002 19:33:10
Message: <3c476d46@news.povray.org>
Very nice. Thanks.
"Josh English" <eng### [at] spiritonecom> wrote in message
news: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

From: John VanSickle
Subject: Re: best way to make a beveled cube
Date: 18 Jan 2002 01:49:36
Message: <3C47C6A8.84791A34@hotmail.com>
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.

One of the Thoroughly Useful Macros at

  http://enphilistor.users4.50megs.com/macs.htm

will bevel boxes for you.

-- 
ICQ: 46085459


Post a reply to this message

From: Mitchell Waite
Subject: Re: best way to make a beveled cube
Date: 18 Jan 2002 11:05:29
Message: <3c4847c9@news.povray.org>
Thanks for that tip John. I tried to download the macs.zip file and got this
message:

Forbidden
Remote Host: [216.15.42.61]

You do not have permission to access
http://enphilistor.users4.50megs.com/macs.zip
Data files must be stored on the same site they are linked from.

Thank you for using 50megs





"John VanSickle" <evi### [at] hotmailcom> wrote in message
news:3C47C6A8.84791A34@hotmail.com...
> 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.
>
> One of the Thoroughly Useful Macros at
>
>   http://enphilistor.users4.50megs.com/macs.htm
>
> will bevel boxes for you.
>
> --
> ICQ: 46085459


Post a reply to this message

From: John VanSickle
Subject: Re: best way to make a beveled cube
Date: 19 Jan 2002 08:52:25
Message: <3C497B46.EA12108C@hotmail.com>
Mitchell Waite wrote:
> 
> Thanks for that tip John. I tried to download the macs.zip file and
> got this message:
> 
> Forbidden
> Remote Host: [216.15.42.61]
> 
> You do not have permission to access
> http://enphilistor.users4.50megs.com/macs.zip
> Data files must be stored on the same site they are linked from.
> 
> Thank you for using 50megs

I've noted that this problem occurs when the user tries to directly
download the file, instead of clicking on the link in the page I gave
earlier in the thread.  For some reason, 50megs thinks you're trying to
do this.

Regards,
John
-- 
ICQ: 46085459


Post a reply to this message

From: Peter Popov
Subject: Re: best way to make a beveled cube
Date: 19 Jan 2002 13:09:37
Message: <2cdj4u0ncnlkik1f5aean7a6l7svhf5da0@4ax.com>
On Fri, 18 Jan 2002 08:07:18 -0800, "Mitchell Waite"
<mit### [at] dnaicom> wrote:

>Thanks for that tip John. I tried to download the macs.zip file and got this
>message:

The server denies access if the referrer is no within the same domain.
Go to John's site and follow the link to the download page, it'll work
then.


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

From: Shay
Subject: Re: best way to make a beveled cube
Date: 20 Jan 2002 19:32:52
Message: <3c4b61b4@news.povray.org>
I wrote a little macro and posted it to povray.binaries.scene-files. It just
makes a beveled mesh box. Also a second macro that bevels a box by
subtracting cylinders. Hope this helps.  -Shay


Post a reply to this message

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