home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 17
/
CD_ASCQ_17_101194.iso
/
vrac
/
geokit10.zip
/
GEOKIT.DOC
next >
Wrap
Text File
|
1994-08-23
|
5KB
|
117 lines
GEOKIT V1.0
Geodesic Structure Generator
for PovRay
Author: Rob Richards
RAYTECH BBS - Scotland,UK - (44) (0)862 832020
CIS 100330,2512
PCGNET RAYTRACE Conference
GEOKIT is copyright (C) 1994 by Rob Richards.
PovRay program is (C) POV-Ray team
This program stems from a fascination I've had with geodesic
domes etc. Written in compiled QuickBasic, this is a first release and is
pretty basic having the following features:-
This program requires 538K of conventional memory to run. Its not a big
program code wise but I have dimensioned some internal dynamic arrays quite
large to cope with BIG/Complex geodesic structures.
Create normal Dome type structures as well as open ended tube-like
structures.
Dome Type structures are assumed to have eliptical cross-sections
in both the horizontal and vertical planes. The base width and
depth and the height are prompted for.
For open-ended structures, you can define different depth and
width's for each end of the structure.
In both cases a complete structure is defined as having ....
LINKS .... Cylindrical sections forming the framework of
the structure.
NODES .... Spheres at the intersections of the Links.
PANES .... These form the main surface of the structure.
One or more of these three constituent parts may be generated.
The program prompts for all required parameters (Sorry no command
line arguments (yet!) ) as follows.
Structure Type : 1 for a Dome type Structure or 2 for Open Ended
Base X Radius : For both types of structure, this defines the
base width of the structure.
Base z Radius : For both types of structure, this defines the
base Depth of the structure.
Structure Height: Height of Structure
Top X Radius : Only prompted for type 2 structures, this
defines the width at the top of the structure.
Top Z Radius : Only prompted for type 2 structures, this
defines the depth at the top of the structure.
Vertical Sections: This defines the number of rows of Panes in the
structure. More sections, the smoother the
vertical cross section will be. This number
should be an Even Number less than 201.
Horizontal Sections: This defines the number of steps around the
horizontal cross-section of the structure.
Again, the more steps, the smoother the
strucure. This should be an even number less
than 201.
Generate Links (Y/n): This tells the program whether or not to
generate structure Links.
Generate Nodes (Y/n): This tells the program whether or not to
generate structure Nodes.
Generate Panes (Y/n): This tells the program whether or not to
generate structure Panes.
Link Radius : This will define the radius of the cylindrical
Links (If required).
Node Radius : This will define the radius of the spherical
nodes (if required).
Pane Type : This defines the type of framework generated.
1=Triangular - The links of the structure form
triangles.
2=Squareish - The links of the structure form
squareish windows which generate two panes each.
Pov or Raw Output : This is only asked for if you specify Panes only above.
Enter P to generate Povray Include file or R to generate
a basic RAW file one triabgle per line.
Base Name for Structure: With a maximum of eight characters, this
is used both to create the Include file
name as well as the structure unions.
A complete structure would contain three
seperate UNION definitions i.e.
StructLinks for the links
StructNodes for the nodes
StructPanes for the panes where "Struct"
is the Base Name.
*Note* The base name is case sensitive in creating the union
declarations. Base name STRUCT generates a different union declaration
to Struct !
*Beware* depending on how many vertical and horizontal sections
you define, this program can generate LARGE include files.
A sample image is included with this release which shows what can
be done.
As mentioned, the program is pretty basic, I'm working on that as
well as a windows version. Any comments or suggestions or reports
of bugs would be gratefully received.
Enjoy.
Rob Richards