CompuServe Thread

3d meshes from functions

1 messages in this thread
#26117From: John K. JordanNov 3, 1992 4:19 PM
Hello ALL! To whom it may interest… I wrote a program to allow me to create a 3d mesh of any function which can be calculated mathematically. There may be programs around which will do this but I couldn't find one in a hurry so I wrote a little conversion program I call MATHDXF. I am attempting to upload it for general consumption. I wanted to render a still shot of a surface representing the energy distribution within the cavity of a variable frequency microwave device. I deciphered a few DXF files and beat my head against an Autocad manual for a few hours and came up with MATHDXF. I use MATHDXF to take files generated by MathCad and convert them into DXF files. The DXF file contains a single object consisting of a polyface mesh with the diagonals hidden. Although I used MathCad, MATHDXF will work with any ASCII file containing a table of Z-values. You could generate the table with a spreadsheet, write a program in BASIC or C, or even <aarrrggg…> type numbers into a text file. If I can upload it successfully, MATHDXF.ZIP (about 35K) contains the EXE, C source, sample MathCad document, and sample ASCII data file. Note: this is the first version and written in a hurry, so don't expect it to look like EXCEL! Feel free to modify the source code (I compiled with QuickC for Windows, DOS mode) report any bugs, and make any comments or suggestions. If anyone wants a Windows version, let me know. JKJ By the way, the results of my microwave project were fantastic! By creating several surfaces representing different frequencies, I was able to morph between them and produce a video showing how the microwave field distribution changes with frequency. This tape is generating a lot of interest. The field of scientific visualization seems to be wide open.