POV-Ray : Newsgroups : povray.newusers : fast rounded box Server Time
4 Nov 2024 21:21:19 EST (-0500)
  fast rounded box (Message 1 to 4 of 4)  
From: JWV
Subject: fast rounded box
Date: 18 May 2003 10:07:15
Message: <3ec79393$1@news.povray.org>
some help for (new) users :

I made a simple macro to create rounded boxes, so you dont't have to fool
around with slow superellipsoids. My RoundedBox renders in 1/3 (!) of the
time of a superellipsoid. There are some drawbacks, but it might be usefull.

The source can be found at p.b.s-f.

JWV


Post a reply to this message

From: Wolfgang Landauer
Subject: Re: fast rounded box
Date: 18 May 2003 12:17:12
Message: <20030518161945.1CA.0.NOFFLE@ID-35955.news.dfncis.de>
"JWV" <jwv|at|planet.nl> killed the keyboard with:

> I made a simple macro to create rounded boxes, so you dont't have to
> fool around with slow superellipsoids. My RoundedBox renders in 1/3 (!)
> of the time of a superellipsoid. There are some drawbacks, but it might
> be usefull.

have a look at "shapes.inc"

especially
Round_Box_Union(PtA, PtB, EdgeRadius),
Round_Box_Merge(PtA, PtB, EdgeRadius) and
Round_Box(PtA, PtB, EdgeRadius, UseMerge)

HTH

Wolfgang
-- 
   .-.   This is Linux Country.
   /v\   On a quiet night, you
 /(   )\ can hear Windows reboot.
  ^^ ^^  LFS-No.: 120


Post a reply to this message

From: JWV
Subject: Re: fast rounded box
Date: 18 May 2003 13:36:50
Message: <3ec7c4b2$1@news.povray.org>
> have a look at "shapes.inc"

doh!
should read the manual more...


"Wolfgang Landauer" <w.l### [at] gmxde> wrote in message
news:200### [at] ID-35955newsdfncisde...
> "JWV" <jwv|at|planet.nl> killed the keyboard with:
>
> > I made a simple macro to create rounded boxes, so you dont't have to
> > fool around with slow superellipsoids. My RoundedBox renders in 1/3 (!)
> > of the time of a superellipsoid. There are some drawbacks, but it might
> > be usefull.
>
> have a look at "shapes.inc"
>
> especially
> Round_Box_Union(PtA, PtB, EdgeRadius),
> Round_Box_Merge(PtA, PtB, EdgeRadius) and
> Round_Box(PtA, PtB, EdgeRadius, UseMerge)
>
> HTH
>
> Wolfgang
> --
>    .-.   This is Linux Country.
>    /v\   On a quiet night, you
>  /(   )\ can hear Windows reboot.
>   ^^ ^^  LFS-No.: 120


Post a reply to this message

From: Ross Litscher
Subject: Re: fast rounded box
Date: 9 Jun 2003 13:35:49
Message: <3ee4c575$1@news.povray.org>
naa, i think a rounded box macro is the second or third step in
understanding povray. the first being a checker plane with reflecting
spheres post in p.b.i.



JWV <jwv|at|planet.nl> wrote in message news:3ec7c4b2$1@news.povray.org...
> > have a look at "shapes.inc"
>
> doh!
> should read the manual more...
>
>
> "Wolfgang Landauer" <w.l### [at] gmxde> wrote in message
> news:200### [at] ID-35955newsdfncisde...
> > "JWV" <jwv|at|planet.nl> killed the keyboard with:
> >
> > > I made a simple macro to create rounded boxes, so you dont't have to
> > > fool around with slow superellipsoids. My RoundedBox renders in 1/3
(!)
> > > of the time of a superellipsoid. There are some drawbacks, but it
might
> > > be usefull.
> >
> > have a look at "shapes.inc"
> >
> > especially
> > Round_Box_Union(PtA, PtB, EdgeRadius),
> > Round_Box_Merge(PtA, PtB, EdgeRadius) and
> > Round_Box(PtA, PtB, EdgeRadius, UseMerge)
> >
> > HTH
> >
> > Wolfgang
> > --
> >    .-.   This is Linux Country.
> >    /v\   On a quiet night, you
> >  /(   )\ can hear Windows reboot.
> >   ^^ ^^  LFS-No.: 120
>
>


Post a reply to this message

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