|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Anyone know how to easily make rounded smooth edges on cubes and
cylinders?
TIA
Chuck
--
See my Free stuff page. It has compares free website provider,
and lists free internet access providers.
http://www.crosswinds.net/~robertsc/free.htm
Win98 help file loaded with hints and tips, including securing a
Win 95/98 PC in a classroom setting. VB4 help file with lots of
code and hints.
At http://www.crosswinds.net/~robertsc/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Chuck Roberts <rob### [at] accnorg> wrote:
: Anyone know how to easily make rounded smooth edges on cubes and
: cylinders?
You either use a superellipsoid or then use spheres and cylinders to
smooth the edges (there exists include files for this; someone can give
you an URL).
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Warp wrote:
>
> You either use a superellipsoid or then use spheres and cylinders to
> smooth the edges (there exists include files for this; someone can give
> you an URL).
>
There is also an isosurface function for that (requires megapov of course).
Christoph
--
Christoph Hormann <chr### [at] gmxde>
Homepage: http://www.schunter.etc.tu-bs.de/~chris/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Warp" <war### [at] tagpovrayorg> wrote in message
news:39818f08@news.povray.org...
| Chuck Roberts <rob### [at] accnorg> wrote:
| : Anyone know how to easily make rounded smooth edges on cubes and
| : cylinders?
|
| You either use a superellipsoid or then use spheres and cylinders to
| smooth the edges (there exists include files for this; someone can give
| you an URL).
The only one I knew of was in the povray links:
http://ftp.tu-clausthal.de/pub/TEXT/EXPERT/mirror/povray/povray/objects
The Rounded Box Include there and it's showing a Error:File Not Found.
Bob
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
moray has built-in rouded cubes and cylinders.
Chuck Roberts wrote:
>
> Anyone know how to easily make rounded smooth edges on cubes and
> cylinders?
> TIA
> Chuck
>
> --
> See my Free stuff page. It has compares free website provider,
> and lists free internet access providers.
> http://www.crosswinds.net/~robertsc/free.htm
> Win98 help file loaded with hints and tips, including securing a
> Win 95/98 PC in a classroom setting. VB4 help file with lots of
> code and hints.
> At http://www.crosswinds.net/~robertsc/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <3981904C.512E5AD6@schunter.etc.tu-bs.de>,
chr### [at] gmxde wrote:
> There is also an isosurface function for that (requires megapov of
> course).
You are probably just talking about an isosurface superellipsoid, which
can render faster than the superellipsoid primitive but otherwise has
the same problems.
--
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <39818D7D.17AD6F52@accn.org>, rob### [at] accnorg wrote:
> Anyone know how to easily make rounded smooth edges on cubes and
> cylinders?
One way to do this is with the superellipsoid object, as has been
mentioned. However, this method doesn't give you as good control over
the radius of the curve, and all the faces will be slightly curved and
not perfectly flat.
The usual method to get a true rounded box or cylinder is to use a CSG
union or merge or to use a macro which produces such a CSG. A rounded
box consists of 8 spheres, 12 cylinders, and 3 boxes. A rounded cylinder
consists of 2 cylinders and 2 torii, or you can just cap the ends of a
single cylinder with spheres. The locations for these are easy to figure
out for boxes and cylinders. The math for rounded cones is a bit more
complex, but still fairly simple if you know a little trigonometry.
If you use a union, and your objects are not transparent, it is slightly
faster...if you want to use transparent objects, you should usually use
merge to remove the internal surfaces.
There should be macros to do what you want here:
http://www.erols.com/vansickl/macs.htm
PS: I don't think you can get smooth edges on a sphere... :-)
--
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Chris Huff wrote:
>
>
> You are probably just talking about an isosurface superellipsoid, which
> can render faster than the superellipsoid primitive but otherwise has
> the same problems.
>
from the rbox.pov sample scene:
isosurface{
function {"rounded_box",<0.1>}
contained_by{box{<-0.4,0.6,-1>,<0.4,1.6,1>}}
pigment {rgb 1}
}
There is nothing about it in the Docu, but i think, i already used it sometime.
Christoph
--
Christoph Hormann <chr### [at] gmxde>
Homepage: http://www.schunter.etc.tu-bs.de/~chris/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
In article <39820BFB.24A8A870@schunter.etc.tu-bs.de>,
chr### [at] gmxde wrote:
> There is nothing about it in the Docu, but i think, i already used it
> sometime.
I had forgotten about this one...I never use the built-in functions.
I don't really understand the source code for it, but it looks like it
might render a real rounded box, not just a superellipsoid.
--
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Sat, 29 Jul 2000 12:54:26 -0500, Chris Huff wrote:
>In article <39820BFB.24A8A870@schunter.etc.tu-bs.de>,
>chr### [at] gmxde wrote:
>
>> There is nothing about it in the Docu, but i think, i already used it
>> sometime.
>
>I had forgotten about this one...I never use the built-in functions.
>I don't really understand the source code for it, but it looks like it
>might render a real rounded box, not just a superellipsoid.
It does. It gets the dimensions of the box from the contained_by, so it's
somewhat strange. I'm guessing it gives poor results for nonzero thresholds.
--
Ron Parker http://www2.fwi.com/~parkerr/traces.html
My opinions. Mine. Not anyone else's.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |