Dec 302017
 
Graphic surface modeler, interesting.
File SURFACE.ZIP from The Programmer’s Corner in
Category Science and Education
Graphic surface modeler, interesting.
File Name File Size Zip Size Zip Type
4X6.FON 285 270 deflated
CUBE 400 141 deflated
CUBE.INI 338 97 deflated
ERROR.MSG 569 297 deflated
FAN 18317 3138 deflated
FAN.IN 1308 269 deflated
FAN.INI 418 104 deflated
HELP.DOC 12618 3892 deflated
MARYELLN 8255 1581 deflated
MARYELLN.INI 337 94 deflated
PARABOLA 17412 3286 deflated
PARABOLA.INI 338 92 deflated
PREPROC.COM 35475 19048 deflated
ROBOT2 14186 1727 deflated
ROBOT2.INI 338 95 deflated
SURFMCGA.000 44032 20071 deflated
SURFMCGA.COM 28454 16871 deflated
SURFMODL.DOC 69572 20058 deflated

Download File SURFACE.ZIP Here

Contents of the HELP.DOC file



SURFMODL 1.2 3-D surface modelling, includes shading!

Surfmodl, disk 1 of 3.

SURFMODL.COM 21753 Surfmodl for the CGA and Sanyo MBC-55x.
SURFMODL.000 44800 Overlay file for SURFMODL.COM
SURFMCGA.COM 28454 Surfmodl for the CGA on less-than-fully IBM compats.
SURFMCGA.000 44032 Overlay file for SURFMCGA.COM
SURFMEGA.COM 55235 Surfmodl for the EGA, no overlay file necessary.
SURFMHGC.COM 28100 Surfmodl for the Hercules Graphics Adapter.
SURFMHGC.000 43776 Overlay file for SURFMHGC.COM.
4X6 .FON 285 Turbo Graphix Tools font file, called by Surfmodl.
ERROR .MSG 569 Turbo Graphix Tools error msg file, called by Surfmodl.
FAN . 18317 Data file for fan (also output from PREPROC of FAN.IN).
PARABOLA. 17412 Data file for parabola (by FUNC3D.PAS & FUNC2SUR.BAS).
CUBE . 400 Data file for cube, simple example file.
ROBOT2 . 14186 Data file for Puma Educational Robot.
TETRA . 259 Data file for tetrahedron, more complex example file.
MARYELLN. 8255 Data file for the face of Mrs Van Camp, neat!
FAN .INI 418 Initialization file for FAN.
PARABOLA.INI 338 Initialization file for PARABOLA.
CUBE .INI 338 Initialization file for CUBE.
ROBOT2 .INI 338 Initialization file for ROBOT2.
TETRA .INI 578 Initialization file for TETRA.
MARYELLN.INI 337 Initialization file for MARYELLN.

Surfmodl, disk 2 of 3.

SURFMODL.DOC 70643 Documentation for Surfmodl.
PREPROC .COM 35475 Preprocessor, makes it easy to enter objects.
FAN .IN 1308 Sample input to PREPROC, creates a fan.
SURFM327.COM 28437 Surfmodl for the PC-3270.
SURFM327.000 43776 Overlay file called by SURFM327.COM.
SURFMATT.COM 28617 Surfmodl for the AT&T 6300.
SURFMATT.000 43776 Overlay file called by SURFMATT.COM.
SURFMZ10.COM 55696 Surfmodl for the Zenith 100, no overlay file necessary.

Surfmodl, disk 3 of 3.

RECOMPIL.BAT 45 CGA version compile prep., SURFMODL.DOC explains.
RECOMZ10.BAT 52 Z100 version compile prep., SURFMODL.DOC explains.
RECOMEGA.BAT 60 EGA version compile prep., SURFMODL.DOC explains.
RECOMHGC.BAT 67 Hercules version compile prep., SURFMODL.DOC explains.
SGRAPH .P 4250 Procedure declarations/initialization for SGRAPH.
SURFMODL.PRE 12200 Source for SURFMODL, files with .PRE must be MPREPed.
DRAWPLOT.PRE 12351 Procedure to plot pixels.
INITIAL .PRE 3110 Procedure to initialize global variables.
PARAMENU.PRE 7279 Procedure to save/change/load options, constants,...
READINI .PRE 8268 Procedure to read the initialization file.
SETGMODE.PRE 2270 Procedure to set up graphics mode and draw window.
OPENWIN .PRE 916 Procedure to open a text window and draw border.
NORMALIZ.PRE 2097 Procedures to normalize values.
WIREFRAM.PAS 1402 Procedure to draw wireframe of object.
MPREP .PAS 15611 Pre-processing procedure, acts on .PRE files.
FILLSURF.PAS 3432 Procedures to draw a filled surface.
BORDER .PAS 1076 Procedure to draw the border of a surface.
LITEMENU.PAS 5324 Procedure to change lighting parameters.
READFILE.PAS 9353 Procedures to read input data from a file.
MENU .PAS 800 Procedure to bring up main selection menu.
EXTRUDE .PAS 11387 Procedure to make a solid of extrusion.
ARCCOS .PAS 291 Function to calculate the arccosine.
PERSPECT.PAS 2289 Procedures to calculate perspective views.
INREAL .PAS 3649 Function for conversion from character of real nums.
SHADING .PAS 6068 Procedures for shading surfaces.
ONSCREEN.PAS 1856 Function to determine if surface visible on the scrn.
SURFACE .PAS 3050 Procedure to make a surface model drawing of the obj.
SHELSURF.PAS 2221 Procedure to shell sort the surfaces.
MINMAX .PAS 681 Procedure to calc the min and max Z coords of surf.
GETKEY .PAS 804 Function to get a single keypress from the keyboard.
HIDNLINE.PAS 1955 Procedure to make a hidden line drawing of the obj.
GOURAUD .PAS 4356 Procedure to make surface drawing w/Gourand interpol.
STORLINE.PAS 1573 Procedure to store line segment in an internal array.
SHELLPTS.PAS 3069 Procedure to shell sort the line point data.
SWAPS .PAS 355 Procedures to swap two integers and two reals.
INTRFILL.PAS 2534 Procedure to interpolate for Gourand shading.
WRITEINI.PAS 1894 Procedure to write current settings to the .INI file.
STORSHAD.PAS 2235 Procedure to store line seg w/interpolated shading.
CHEKSURF.PAS 2360 Function to determine if a point hidden by a surface.
INLIMITS.PAS 780 Function to determine if a point is within a surface.
SHADOWS .PAS 3195 Procedure to flag shades array with nodes in shadows.
VIEWCHAN.PAS 947 Function returns true if viewing coords have changed.
WRITEFIL.PAS 2006 Procedure to write new Surfmodl format file.
COLORMOD.PAS 2697 Procedure to catculate color and modulus for a shade.
MENUMSG .PAS 244 Procedure to output a message showing current status.
DRAWAXES.PAS 3683 Procedure to draw X, Y, and Z axis on the screen.
REVOLVE .PAS 9331 Procedure to construct a solid of revolution.
REFLECT .PAS 3891 Procedure to read data file and reflect across Xaxis.
PREREAD .PAS 10180 Procedure to open a file with error checking.
PLANE .PAS 6695 Procedure to form a plane by breaking up quads.
PREPROC .PAS 7481 Program to generate data files from high level data.
SCSHROT .PAS 3003 Procedure to scale all nodes in a given solid.
PREINIT .PAS 364 Procedure to init. data necessary for PREPROC.
PATCH .PAS 2124 Procedure breaks 16-node surfaces to 9 4-nodes ones.
FUNC3D .PAS 538 Program to create a 3d function file.
FEM2SURF.BAS 3456 Program to read fin. elem data & convert to Surfmodl.
FUNC2SUR.BAS 896 Program to convert a 3d func. file to SOLMODL file.
MPREP .COM 14377 Compiled MPREP.PAS, used to pre-process source files.



SURFMODL.COM ROBOT2 .INI
SURFMODL.000 TETRA .INI INITIAL .PRE SHADING .PAS VIEWCHAN.PAS
SURFMCGA.COM MARYELLN.INI PARAMENU.PRE ONSCREEN.PAS WRITEFIL.PAS
SURFMCGA.000 SURFMODL.DOC READINI .PRE SURFACE .PAS COLORMOD.PAS
SURFMEGA.COM PREPROC .COM SETGMODE.PRE SHELSURF.PAS MENUMSG .PAS
SURFMHGC.COM FAN .IN OPENWIN .PRE MINMAX .PAS DRAWAXES.PAS
SURFMHGC.000 SURFM327.COM NORMALIZ.PRE GETKEY .PAS REVOLVE .PAS
4X6 .FON SURFM327.000 WIREFRAM.PAS HIDNLINE.PAS REFLECT .PAS
ERROR .MSG SURFMATT.COM MPREP .PAS GOURAUD .PAS PREREAD .PAS
FAN . SURFMATT.000 FILLSURF.PAS STORLINE.PAS PLANE .PAS
PARABOLA. SURFMZ10.COM BORDER .PAS SHELLPTS.PAS PREPROC .PAS
CUBE . RECOMPIL.BAT LITEMENU.PAS SWAPS .PAS SCSHROT .PAS
ROBOT2 . RECOMZ10.BAT READFILE.PAS INTRFILL.PAS PREINIT .PAS
TETRA . RECOMEGA.BAT MENU .PAS WRITEINI.PAS PATCH .PAS
MARYELLN. RECOMHGC.BAT EXTRUDE .PAS STORSHAD.PAS FUNC3D .PAS
FAN .INI SGRAPH .P ARCCOS .PAS CHEKSURF.PAS FEM2SURF.BAS
PARABOLA.INI SURFMODL.PRE PERSPECT.PAS INLIMITS.PAS FUNC2SUR.BAS
CUBE .INI DRAWPLOT.PRE INREAL .PAS SHADOWS .PAS MPREP .COM

Hardware: 256k memory and a graphics adapter/monitor.
Software: Dos 2.0 or later.
To start: Enter "SURFMODL" followed by name of data file.
To end: Enter "0" from the main menu.
For help: Read SURFMODL.DOC.
Author: Kenneth E. Van Camp, P.O.Box 784, Stroudsburg, PA 18360.
Donation: User discretion, author appreciates comments/updates.

SURFMODL is an incredible modeling system which produces realistic
three-dimensional images on a graphics display. Surfmodl works with object
defined by a wire frame. The wire frame defines a surface consisting of
many polygons. These surfaces can be displayed with the hidden lines
removed and viewed from any angle. Light sources can be defined and the
image will reflect the appropriate shades depending upon the intensity of
the light, distance from it and the angle of incidence of the light to the
surface.
The Surfmodl package includes the Preproc program which will allow the
user to quickly generate Surfmodl data files consisting of surfaces of
revolution, extrusion and simple planes. data files to be easily combined.
Preproc makes certain classes of objects very easy to create. The Surfmodl
data file FAN. was created by running Preproc with the input file FAN.IN.
Complete documentation on the use of Preproc can be found in SURFMODL.DOC.
Upon invocation, Surfmodl will bring up the main menu from which the
object may be plotted as a wire frame, with or without hidden lines, or
using surface modelling. If an input filename was not specified, it must
be read in by selecting option 0 followed by option 1. Menu options are
selected by pressing the number corresponding to the option desired, or
pressing the function key of the same number. Option 0 always returns to
the previous menu or, in the case of the main menu, exits the program.
Surfmodl was written in Turbo Pascal and the source is included on the
third disk. The recompilation process is involved as there
are separate sequences that must take place depending on the type of
machine and display adapter for which Surfmodl is being recompiled.
Complete recompilation instructions are given in SURFMODL.DOC. Some
versions will require the Borland's Turbo Graphix Toolbox and a program by
Jim Pelley called Sgraph which contain graphics procedures necessary for
recompilation.



 December 30, 2017  Add comments

Leave a Reply