Production of Isosurfaces by Tetrahedrons
main program: mcube002.c
subroutine: mcube000.h
Explanation: Program to draw the isosurfaces by getting 3-dimensional
scalar physical data, v[nX][nY][nZ]
Input parameters:
header file: mcube000.h
NX: number of grid in x-direction
NY: number of grid in y-direction
NZ: number of grid in z-direction
nX =NX+1: number of data in x-direction
nY =NY+1: number of data in y-direction
nZ =NZ+1: number of data in z-direction
main program: mcube002.c
Viewpoint(fp): function to determine view point
fp: output file name
dr_grid(fp, gc): function to draw the grid
fp: output file name
gc[3]: color of line
mk_equ_face002(fp, th, v, c, tr): function to draw an isosurface
fp: output file name
th: level of isosurface
c: color of isosurface
v: 3-dimensional input data
tr: degree of transparency
Example: