POV-Ray : Newsgroups : povray.binaries.images : Windows 2000 Flow Chart in 3D Server Time
3 Oct 2024 04:55:43 EDT (-0400)
  Windows 2000 Flow Chart in 3D (Message 11 to 19 of 19)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Hartmut Wagener
Subject: Re: Windows 2000 Flow Chart in 3D
Date: 1 Mar 2000 17:33:42
Message: <38bd9ac6$2@news.povray.org>

for a place meant for all (internet) that only works with windows and

pov-picture ....  -_)

Hartmut

Mike White schrieb in Nachricht <38bcceee@news.povray.org>...
>This image was created as a god awfully huge 3d maze (50x50x50) but once it
>was born, it was a perfect representation of what programmers see looking
at
>MS code.:)
>
>
>
>


Post a reply to this message

From: Chris Spencer
Subject: Re: Windows 2000 Flow Chart in 3D
Date: 1 Mar 2000 18:17:57
Message: <38bda525@news.povray.org>
Solved this one in two minutes;)

-Chris-

Mike White <mik### [at] salesdatasolutionscom> wrote in message
news:38bcceee@news.povray.org...
> This image was created as a god awfully huge 3d maze (50x50x50) but once
it
> was born, it was a perfect representation of what programmers see looking
at
> MS code.:)
>
>
>
>


Post a reply to this message

From: Steve
Subject: Re: Windows 2000 Flow Chart in 3D
Date: 1 Mar 2000 20:08:53
Message: <slrn8brdpi.ps.sjlen@zero-pps.localdomain>
On Wed, 1 Mar 2000 00:03:11 -0800, Mike White wrote:
>This image was created as a god awfully huge 3d maze (50x50x50) but once it
>was born, it was a perfect representation of what programmers see looking at
>MS code.:)
>
Nice work, gonna tell us how ya did it?


-- 
Cheers
Steve              email mailto:sjl### [at] ndirectcouk

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

web http://www.ndirect.co.uk/~sjlen/

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

 12:17am  up  5:22,  3 users,  load average: 1.00, 1.00, 1.00


Post a reply to this message

From: Mike White
Subject: Re: Windows 2000 Flow Chart in 3D
Date: 1 Mar 2000 20:37:48
Message: <38bdc5ec@news.povray.org>
This might be of more interest to you.

const
  Size = 25;
  DirBits : array[0..5] of byte = ($01,$02,$04,$08,$10,$20);
  Dx : array[0..5] of integer = (0,1,0,-1,0,0);
  Dy : array[0..5] of integer = (1,0,-1,0,0,0);
  Dz : array[0..5] of integer = (0,0,0,0,1,-1);
  Db : array[0..5] of integer = (2,3,0,1,5,4);

var
  Maze : array[-Size..Size,-Size..Size,-Size..Size] of byte;
  x, y, z, nx, ny, nz, l : integer;
  n, d : integer;
  f : textfile;
begin
  Randomize;
  fillchar(Maze,sizeof(Maze),0);
  l := Size*2+1;
  l := l * l * l; // Number of nodes left to visit
  x := random(Size*2+1)-Size;
  y := random(Size*2+1)-Size;
  z := random(Size*2+1)-Size;
  dec(l);
  while l > 0 do
  begin
    d := 0;
    while d <> $3F do   // $3F = All directions tried, and no unvisited
nodes as neighbors.
    begin
      n := random(6);      // Pick a random direction
      d := d or DirBits[n];
      nx := x + Dx[n];
      ny := y + Dy[n];
      nz := z + Dz[n];
      if (abs(nx) <= Size) and (abs(ny) <= Size) and (abs(nz) <= Size) then
      begin
        if Maze[nx,ny,nz] = 0 then     // 0 = Unvisited Node
        begin
          Maze[x,y,z] := Maze[x,y,z] or DirBits[n];
          Maze[nx,ny,nz] := Maze[nx,ny,nz] or DirBits[Db[n]];
          dec(l); x := nx; y := ny; z := nz; d := 0;
        end;
      end;
    end;
    if l > 0 then // If we get here, we ran into a "dead end"
    begin
      x := random(Size*2+1)-Size;
      y := random(Size*2+1)-Size;
      z := random(Size*2+1)-Size;
      while Maze[x,y,z] = 0 do  //  We need to branch off of a node we have
already visited
      begin
        x := random(Size*2+1)-Size;
        y := random(Size*2+1)-Size;
        z := random(Size*2+1)-Size;
      end;
      d := 0;
    end;
  end;
  assignfile(f,'c:\cflag\maze.inc'); rewrite(f);
  writeln(f,'union {');
  for z := -Size to Size do
  for y := -Size to Size do
  for x := -Size to Size do
  begin
    writeln(f,'  sphere { <',x*2,',',y*2,',',z*2,'>, 0.2 }'); // sphere is
the elbow
    for n := 0 to 5 do
    begin
      if (Maze[x,y,z] and DirBits[n]) > 0 then
        writeln(f,'  cylinder{ <',x*2,',',y*2,',',z*2,'>,
<',x*2+Dx[n],',',y*2+Dy[n],',',z*2+Dz[n],'>, 0.2 open}');
        // cylinder is 1/2 of the "pipe"
    end;
  end;
  writeln(f,'  texture { pigment { color rgb <1.0,0.6,0.0> } }');
  writeln(f,'}');
  closefile(f);
end;

Steve <sjl### [at] ndirectcouk> wrote in message
news:slr### [at] zero-ppslocaldomain...
> On Wed, 1 Mar 2000 00:03:11 -0800, Mike White wrote:
> >This image was created as a god awfully huge 3d maze (50x50x50) but once
it
> >was born, it was a perfect representation of what programmers see looking
at
> >MS code.:)
> >
> Nice work, gonna tell us how ya did it?
>
>
> --
> Cheers
> Steve              email mailto:sjl### [at] ndirectcouk
>
> %HAV-A-NICEDAY Error not enough coffee  0 pps.
>
> web http://www.ndirect.co.uk/~sjlen/
>
> or  http://start.at/zero-pps
>
>  12:17am  up  5:22,  3 users,  load average: 1.00, 1.00, 1.00


Post a reply to this message

From: Robert Chaffe
Subject: Re: Windows 2000 Flow Chart in 3D
Date: 1 Mar 2000 22:42:38
Message: <38bde32e@news.povray.org>
Very nice.

I was understandably curious about the methodology as well.
It isn't a POV macro.  What is that?  Pascal?
Whatever it is, it's a bit more compact than my macros!

I should probably rewrite my maze generating macro in a faster
programming language.

rc


Post a reply to this message

From: David Fontaine
Subject: Re: Windows 2000 Flow Chart in 3D
Date: 1 Mar 2000 23:02:07
Message: <38BDE712.1EBDB15C@faricy.net>
Mike White wrote:

> This image was created as a god awfully huge 3d maze (50x50x50) but once it
> was born, it was a perfect representation of what programmers see looking at
> MS code.:)

Tee hee :-)
Waah! You took my horribly unoriginal idea! Now what was the chance of that
happening?
I challenge you to a game of 4-D tic-tac-toe!

--
___     ______________________________________________________
 | \     |_                 <dav### [at] faricynet> <ICQ 55354965>
 |_/avid |ontaine               http://www.faricy.net/~davidf/

"Sitting on a cornflake, waiting for the van to come" -Beatles


Post a reply to this message

From: mr art
Subject: Re: Windows 2000 Flow Chart in 3D
Date: 1 Mar 2000 23:14:25
Message: <38BDEAAF.FE50D2D6@gci.net>
This does look allot like pascal.

Robert Chaffe wrote:
> 
> Very nice.
> 
> I was understandably curious about the methodology as well.
> It isn't a POV macro.  What is that?  Pascal?
> Whatever it is, it's a bit more compact than my macros!
> 
> I should probably rewrite my maze generating macro in a faster
> programming language.
> 
> rc

-- 
Mr. Art

"Often the appearance of reality is more important 
than the reality of the appearance."
Bill DeWitt 2000


Post a reply to this message

From: Mike White
Subject: Re: Windows 2000 Flow Chart in 3D
Date: 1 Mar 2000 23:29:57
Message: <38bdee45@news.povray.org>
Delphi, Pascal..   Same thing unless you want to split hairs.

I could have done it in C, but that's not my "native" language :)



Robert Chaffe <a0003738@airmail.net> wrote in message
news:38bde32e@news.povray.org...
> Very nice.
>
> I was understandably curious about the methodology as well.
> It isn't a POV macro.  What is that?  Pascal?
> Whatever it is, it's a bit more compact than my macros!
>
> I should probably rewrite my maze generating macro in a faster
> programming language.
>
> rc
>
>
>


Post a reply to this message

From: Bryan Valencia
Subject: Re: Windows 2000 Flow Chart in 3D
Date: 2 Mar 2000 18:23:12
Message: <38BEF7A2.299F71EC@209software.com>
Oh yeah!  Now find the clog, plunger heads!


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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