DRAWP3D EXAMPLES
Here are the example outputs. Except for example 12, the images you see were rendered using DRAWP3D's Open Inventor renderer, and viewed with ivview. Each example has links to their respective FORTRAN and C code, as well as a link to DRAWP3D's VRML-rendered version of the image (in 3D), which some of you may or may not be able to view. You can also click on an image to see it's normal size.Additional DRAWP3D documents:
EXAMPLE 1
C CODE --- FORTRAN CODE --- VRML version of image
This example creates a white sphere which is viewed with the default lights and camera.
EXAMPLE 2
C CODE --- FORTRAN CODE --- VRML version of image
This example differs from example 1 in that we add explicit lights and camera.
EXAMPLE 3
C CODE --- FORTRAN CODE --- VRML version of image
In this example, we construct a ball-and-stick water molecule, using the camera and lights developped in example 2 (Some of you may not be able to see the thin blue line which connects the atoms).
EXAMPLE 4
C CODE --- FORTRAN CODE --- VRML version of image
This example takes the hydrogen atom produced in example 3 and produces a number of frames with the atom in different orientations.
EXAMPLE 5
C CODE --- FORTRAN CODE --- VRML version of image
This example uses the dp_isosurface function to produce an iso-valued surface from 3D gridded data. A bounding box shows the bounds of the computational region.
EXAMPLE 6
C CODE --- FORTRAN CODE --- VRML version of image
This example uses the dp_zsurface function to produce a height field or z surface from a 2D array of data. The dp_axis and dp_boundbox routines are used to provide an axis and bounds for the surface.
EXAMPLE 7
C CODE --- FORTRAN CODE --- VRML version of image
This example uses the dp_rand_zsurf function to produce a height field or z surface from data points at random 2D locations. The dp_boundbox routine is used to provide bounds for the surface.
EXAMPLE 8
C CODE --- FORTRAN CODE --- VRML version of image
This example uses the dp_rand_isosurf function to produce an isosurface from data points at random 3D locations. The dp_boundbox routine is used to provide bounds for the surface.
EXAMPLE 9
C CODE --- FORTRAN CODE --- VRML version of image
This example places a cylinder between two given points in space.
EXAMPLE 10
C CODE --- FORTRAN CODE --- VRML version of image
This example uses the dp_irreg_zsurf function to produce a height field or z surface from a 2D array of data in polar coordinates. The dp_axis and dp_boundbox routines are used to provide an axis and bounds for the surface.
EXAMPLE 11
C CODE --- FORTRAN CODE --- VRML version of image
This example uses the dp_irreg_isosurf function to produce an iso-valued surface from data on an irregular 3D grid (in this case in spherical polar coordinates).
EXAMPLE 12
C CODE (Has no FORTRAN CODE or VRML version of image)
This example demonstrates how to use the XPainter renderer in a fairly general way. If called with the -a switch the windows produced are automanaged; otherwise Motif code in this program is activated to create and manage the windows (the image shown was created with the latter case).