TDPACK Table of Contents


Introduction

Basics
Points
Lines
Perimeters, Ticks, Grids, And Labels
Surfaces, Markers, and Trajectories
Stereo
Internal Parameters
The Reference Parallelogram

Routines

Initialization Routines:
TDINIT - define eye position, line of sight, up direction, and stereo flag
TDPARA - define the reference parallelogram
TDCLRS - define colors for TDPACK
Parameter-Access Routines:
TDGETI - get the integer value of an internal parameter
TDGETR - get the real value of an internal parameter
TDGTRS - get the definition of a specified rendering style
TDSETI - set the integer value of an internal parameter
TDSETR - set the real value of an internal parameter
TDSTRS - define a specified rendering style
Point-Transforming Routines:
TDPRPT - from 3-space to the projection plane
TDPRPA - from the plane of the reference parallelogram to the projection plane
TDPRPI - from the projection plane to the plane of the reference parallelogram
Line-Drawing Routines:
TDLINE - draw the projection of a solid line in 3-space
TDLNDP - draw the projection of a dashed line in 3-space
TDLNPA - draw the projection of a solid line in the plane of the reference parallelogram
TDLPDP - draw the projection of a dashed line in the plane of the reference parallelogram
TDCURV - draw the projection of a solid curve in 3-space
TDCUDP - draw the projection of a dashed curve in 3-space
Grid-Drawing Routines:
TDGRDS - draw the grids on all the faces of a box in 3-space
TDGRID - draw the grid on a particular face of a box in 3-space
Label-Drawing Routines:
TDLBLS - draw labels for all faces of a box in 3-space
TDLBLA - draw labels for a particular face of a box in 3-space
TDLBLP - a user callback routine allowing one to adjust label positions
TDPLCH - draw characters in the plane of the reference parallelogram
Surface-Drawing Routines:
TDDTRI - draw triangles defined by a triangle list
TDSTRI - add triangles defining a simple surface to a triangle list
TDITRI - add triangles defining an isosurface to a triangle list
TDMTRI - add triangles defining a 3D marker to a triangle list
TDTTRI - add triangles defining a trajectory to a triangle list
TDCTRI - cut the triangles in a triangle list with a plane perpendicular to an axis
TDOTRI - order the triangles in a triangle list for proper rendering
TDSORT - generic sorting routine
Simplified-Interface Routines:
TDEZ2D - simplified interface for drawing a surface
TDEZ3D - simplified interface for drawing an isosurface

Internal Parameters

Parameters Accessed Using TDGETI, TDGETR, TDSETI, and TDSETR
'CS1' (Character Size 1)
'CS2' (Character Size 2)
'FOV' (Field Of View)
'HND' (Handedness)
'LSU', 'LSV', and 'LSW' (Light Source Position)
'SET' (Do-SET-Call Flag)
'SHD' (Shading Type Flag)
'STE' (Stereo Type Flag)
'VPB', 'VPL', 'VPR', and 'VPT' (Viewport Specifiers)
Parameters Accessed in Other Ways
Rendering-Style Arrays

Examples

Example 1
Example 2
Example 3
Example 4
Example 5
Example 6
Example 7
Example 8
C Example 1
TDPACK Demo