VRML Fortran main program and subroutine package September 29, 2001 by Tatsuki Ogino We will present the VRML (Virtual Reality Modeling Language) Fortran main program for 3-dimensional visualization and the subroutine package to run the main programs. (1) Main VRML Fortran Programs 1.mcube301.f : 3-dimensional iso-surface plot csuba(ic,aa,u) 2.mface015.f : draw 2-dimensional surface using color code image1(nx,ny,xb,yb,xl,yl,ico,icc,zcc,u,p) 3.mlineb33.f : 3-dimensional line plot with many points line3d(lasl,r,g,b,po) 4.mpixe015.f : 2-dimensional pixel image plot pixel2(nx,ny,xb,yb,xl,yl,ipx0,ico,icc,zcc,u) 5.mpoint13.f : 3-dimensional point plot point3d(nx,ny,nz,x0,y0,z0,xl,yl,zl,ico,u) 6.mtriangm.f : 3-dimensional triangular mesh triangm(nx,ny,u,p) 7.mzpt03.f : pixel image pixel2(nx,ny,xb,yb,xl,yl,ipx0,ico,icc,zcc,u) (2) Subroutine Package 8.zvrsuba.f All the Fortran subroutines which are needed in the main programs are arranged in this subroutine package. f77 -c -O zvrsuba.f : make object module, zvrsuba.o f77 -O mcube301.f zvrsuba.o a.out & : fort.10 for output VRML file is produced mv fort.10 mcube301.wrl VRML 2.0 file can be seen by proper VRML viewer like "cosmoplayer".