next up previous contents index
Next: SUBROUTINE INIT3DH Up: Description of 3-d Previous: SUBROUTINE WHERE3D

INIT3DH Routines

The family of plotting routines included in the hidden line 3-d packge INIT3DH include:

  1. PLT3DH -- the central visible line plot routine for INIT3DH
  2. SKETCH -- the central hidden line plot routine for INIT3DH
  3. AXIS3DH -- plots axes using PLT3DH or SKETCH
  4. CUBE -- plots the polygons of the sides of a "cube"
  5. SYM3DH -- plots symbols using PLT3DH or SKETCH
  6. WHERE3H -- returns the screen coordinates of the last PLT3DH call
  7. XFRM3D -- transforms a point (x,y,z) into the perspective point defined by INIT3D.
 

The central hidden line plot routine SKETCH is an adaptation of the  COSMIC routine ARC-11446 hidden line code. It has been modified and extended for additional features. The INIT3DH can be used either with or without the hidden line removal. However, the memory and computational requirements for hidden line removal can be large for complicated scenes. Essentially, planar polygons are defined and entered into the SKETCH internal list. Upon the last call to  SKETCH the visible lines are plotted using PLOT. Line segments can also be entered into the SKETCH list prior to the last call. They will not "hide" any other lines but can be hidden by planes. The SKETCH routine can be set to plot both visible and invisible lines.  PLT3DH does not use SKETCH. Lines plotted with PLT3DH will always be visible. The auxilary routines (NUM3DH, AXIS3DH, and SYM3DH) have options to either use  SKETCH or PLT3DH.

For an example of the use of the  INIT3DH package see the  EXAMP3DH\ program included with the LONGLIB graphics library package or see the  MASTER routines TRIG3DH, HIST3D, or T3DH.      





David Long
Wed Jun 12 10:34:11 MDT 1996