POV-Ray : Newsgroups : povray.general : Dumb Cube, the megapatch way Server Time
10 Aug 2024 15:22:53 EDT (-0400)
  Dumb Cube, the megapatch way (Message 1 to 4 of 4)  
From: Simon de Vet
Subject: Dumb Cube, the megapatch way
Date: 18 Dec 1999 15:30:16
Message: <385BEF15.38346E0D@istar.ca>
I present, for your enjoyment, the single dumbest method of creating a
rounded cube.

isosurface {
  function {
z*z*z*z*z*z*z*z*z*z*z*z*z*z*z*z*z*z*z*z*z*z*z*z*z*z*z*z*z*z*z*z +

y*y*y*y*y*y*y*y*y*y*y*y*y*y*y*y*y*y*y*y*y*y*y*y*y*y*y*y*y*y*y*y +

x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x }
  threshold 100000000000

[etc..]
                }


(Do isosurfaces support the pow(A,B) function? I tried, and it didn't
work)


Post a reply to this message

From: Chris Huff
Subject: Re: Dumb Cube, the megapatch way
Date: 18 Dec 1999 15:37:15
Message: <chrishuff_99-C5AF74.15375218121999@news.povray.org>
In article <385BEF15.38346E0D@istar.ca>, sde### [at] istarca wrote:

> (Do isosurfaces support the pow(A,B) function? I tried, and it didn't
> work)

They support the ^ operator, which does the same thing(use A^B instead 
of pow(A,B)). I thought they supported the pow() function, but they 
don't seem to anymore, and I can't find anywhere in my scenes where I 
used that function. I like the ^ operator better, though, I even wrote a 
little patch which allows it in ordinary expressions.

-- 
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

From: Simon de Vet
Subject: Re: Dumb Cube, the megapatch way
Date: 18 Dec 1999 15:49:02
Message: <385BF37B.5C0BC35C@istar.ca>
Chris Huff wrote:

> In article <385BEF15.38346E0D@istar.ca>, sde### [at] istarca wrote:
>
> > (Do isosurfaces support the pow(A,B) function? I tried, and it didn't
> > work)
>
> They support the ^ operator, which does the same thing(use A^B instead
> of pow(A,B)). I thought they supported the pow() function, but they
> don't seem to anymore, and I can't find anywhere in my scenes where I
> used that function. I like the ^ operator better, though, I even wrote a
> little patch which allows it in ordinary expressions.

Yeah.. but my technique is dumber :)


Post a reply to this message

From: Ken
Subject: Re: Dumb Cube, the megapatch way
Date: 18 Dec 1999 16:18:35
Message: <385BF7D2.26C07E70@pacbell.net>
Simon de Vet wrote:
> 
> I present, for your enjoyment, the single dumbest method of creating a
> rounded cube.

Dumb is as dumb does...


This gives a little larger corner/edge radius -

 isosurface {
   function { sin(x^30)+sin(y^30)+sin(z^30) }
   threshold 1
            }


-- 
Wishing you Seasons Greetings, A Merry Christmas, and A Happy New Year !

Ken Tyler -  1200+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

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