|
|
Attached is another .inc file containing macros for generating mazes.
This time they produce hexagonal cells.
Maze generation is split into two parts. The first macro is named
GenHexMaze. This is used to generate the direction data for the maze.
This data is written to an ASCII file. The second macro is named
HexMaze. This one reads that file and creates the maze object.
The HexMaze declares a solution path object named
HexMazeSolutionDots.
There is also a HexPipeMaze macro that uses the same data.
Parameters are explained in the attached file.
Here is a simple example:
----------
GenHexMaze( 15, 19, 1, off, "htest.dat" )
object {
HexMaze( "htest.dat", 1, 0.15, 0.5 )
pigment { rgb <0,1,0> }
}
object { HexMazeSolutionDots pigment { rgb <0,0.7,1> } }
----------
rc
Post a reply to this message
Attachments:
Download 'amazehex.inc.txt' (28 KB)
|
|