POV-Ray : Newsgroups : povray.newusers : rounding off the edges Server Time
13 Nov 2024 07:24:21 EST (-0500)
  rounding off the edges (Message 1 to 6 of 6)  
From: Bill Brehm
Subject: rounding off the edges
Date: 3 Nov 2000 20:56:22
Message: <3a036cc6@news.povray.org>
Hi,

Is there a way to round off the edges of an object, either 2D or 3D, without
doing all the calculations manually?

Say I want to make a circle with a cross removed, and want the three sharp
cormers on each quadrant to have a radius no smaller than a specified value.
I know I could remove a small square from each sharp edge, then add back a
circle, but that is tedious. I'd like to say, take that object and make the
minimum radius such and such.

Thanks,

Bill

Example of the object whose edges I'd like to round:

#local StripPadThickness = 0.003 * 25.4;
#local StripFiducialDiameter = 4 * 225 / 640;
#local StripFiducialStreetWidth = 2 / 18 * StripFiducialDiameter;
#local StripFiducialClearance = 0.5;

#local StripPadTexture = texture {Gold_Metal}

// Round crosshair fiducial declaration

#local StripFiducial = difference {
  cylinder {
    <0, 0, 0>
    <0, 0, -StripPadThickness>
    StripFiducialDiameter / 2
  }
  box {
    <-StripFiducialDiameter / 2 - Tiny, StripFiducialStreetWidth /
2, -StripPadThickness - Tiny>
    <StripFiducialDiameter / 2 + Tiny, -StripFiducialStreetWidth / 2, Tiny>
  }
  box {
    <StripFiducialStreetWidth / 2, -StripFiducialDiameter / 2 -
Tiny, -StripPadThickness - Tiny>
    <-StripFiducialStreetWidth / 2, StripFiducialDiameter / 2 + Tiny, Tiny>
  }
  texture {StripPadTexture}
}


Post a reply to this message

From: Steve
Subject: Re: rounding off the edges
Date: 3 Nov 2000 22:54:41
Message: <slrn9071nq.q2u.steve@zero-pps.localdomain>
On Fri, 3 Nov 2000 18:56:22 -0700, Bill Brehm wrote:
>Hi,
>
>Is there a way to round off the edges of an object, either 2D or 3D, without
>doing all the calculations manually?
>
>Say I want to make a circle with a cross removed, and want the three sharp
>cormers on each quadrant to have a radius no smaller than a specified value.
>I know I could remove a small square from each sharp edge, then add back a
>circle, but that is tedious. I'd like to say, take that object and make the
>minimum radius such and such.

David Fontain has a small macro that'll smooth the edges on almost
anything.  You'll probably want to make your cross as a prisam, and 
use his prisam rounded edges macro (I think he's doen prisams), his web 
site's here:

 http://davidf.faricy.net/

Good luck. 


-- 
Cheers
Steve              email mailto:ste### [at] zeroppsuklinuxnet

%HAV-A-NICEDAY Error not enough coffee  0 pps. 

web http://www.zeropps.uklinux.net/

or  http://start.at/zero-pps

  3:41am  up 24 days,  6:03,  3 users,  load average: 1.02, 1.15, 1.16


Post a reply to this message

From: Tom Melly
Subject: Re: rounding off the edges
Date: 4 Nov 2000 08:17:30
Message: <3a040c6a@news.povray.org>
"Bill Brehm" <bbr### [at] netzeronet> wrote in message
news:3a036cc6@news.povray.org...

<SNIP>

Check out superellipsoids. Limited, but a quick fix for certain situations.


Post a reply to this message

From: Bill Brehm
Subject: Re: rounding off the edges
Date: 4 Nov 2000 09:43:04
Message: <3a042078$1@news.povray.org>
The web site you listed didn't work. I also looked for a link on yours but
couldn't find one. Any chance someone knows where it moved to?

Bill


"Steve" <ste### [at] zeroppsuklinuxnet> wrote in message
news:slr### [at] zero-ppslocaldomain...
> On Fri, 3 Nov 2000 18:56:22 -0700, Bill Brehm wrote:
> >Hi,
> >
> >Is there a way to round off the edges of an object, either 2D or 3D,
without
> >doing all the calculations manually?
> >
> >Say I want to make a circle with a cross removed, and want the three
sharp
> >cormers on each quadrant to have a radius no smaller than a specified
value.
> >I know I could remove a small square from each sharp edge, then add back
a
> >circle, but that is tedious. I'd like to say, take that object and make
the
> >minimum radius such and such.
>
> David Fontain has a small macro that'll smooth the edges on almost
> anything.  You'll probably want to make your cross as a prisam, and
> use his prisam rounded edges macro (I think he's doen prisams), his web
> site's here:
>
>  http://davidf.faricy.net/
>
> Good luck.
>
>
> --
> Cheers
> Steve              email mailto:ste### [at] zeroppsuklinuxnet
>
> %HAV-A-NICEDAY Error not enough coffee  0 pps.
>
> web http://www.zeropps.uklinux.net/
>
> or  http://start.at/zero-pps
>
>   3:41am  up 24 days,  6:03,  3 users,  load average: 1.02, 1.15, 1.16


Post a reply to this message

From: Steve
Subject: Re: rounding off the edges
Date: 4 Nov 2000 11:05:56
Message: <slrn908cul.rge.steve@zero-pps.localdomain>
On Sat, 4 Nov 2000 07:43:09 -0700, Bill Brehm wrote:
>The web site you listed didn't work. I also looked for a link on yours but
>couldn't find one. Any chance someone knows where it moved to?

I might have the macro here somewhere, if I have would you like me to 
email it to you?

-- 
Cheers
Steve              email mailto:ste### [at] zeroppsuklinuxnet

%HAV-A-NICEDAY Error not enough coffee  0 pps. 

web http://www.zeropps.uklinux.net/

or  http://start.at/zero-pps

  3:49pm  up 24 days, 18:11,  3 users,  load average: 1.03, 1.04, 1.01


Post a reply to this message

From: David Fontaine
Subject: Re: rounding off the edges
Date: 4 Nov 2000 22:20:51
Message: <3A04D1C9.6F02AB1E@faricy.net>
Bill Brehm wrote:

> The web site you listed didn't work. I also looked for a link on yours but
> couldn't find one. Any chance someone knows where it moved to?

It should be there, but it's been down for almost a week (as well as my email).
:((( I can't get through to the webmaster by email and i tried the phone once
but got an answering machine. :((( (The webmaster is just a friend from school
and the site is run from his house, heheh)

I'll post the macro include to p.b.s-f.

--
David Fontaine  <dav### [at] faricynet>  ICQ 55354965
My raytracing gallery:  http://davidf.faricy.net/


Post a reply to this message

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