DOKK / manpages / debian 10 / libncarg-dev / tdpack.3ncarg.en
Tdpack(3NCARG) NCAR GRAPHICS Tdpack(3NCARG)

Tdpack - A set of routines allowing one to draw representations of three-dimensional objects.

TDPACK (which stands for "Three Dimensional PACKage") is a collection of routines for projecting objects from a 3-dimensional coordinate system having U, V, and W axes to a 2-dimensional projection plane having X and Y axes and/or for drawing the projections of those objects. This can be referred to somewhat loosely as "drawing objects in three dimensions".

Tdpack consists of the following routines:

Define eye position, line of sight, up direction, and stereo flag.
Define the reference parallelogram.
Define colors for TDPACK.
Get the integer value of an internal parameter.
Get the real value of an internal parameter.
Get the definition of a specified rendering style.
Set the integer value of an internal parameter.
Set the real value of an internal parameter.
Define a specified rendering style.
Project from 3-space to the projection plane.
Project from 3-space to the plane of the reference parallelogram.
Project from the plane of the reference parallelogram to 3-space.
Draw the projection of a line in 3-space.
Draw the projection of a line in the plane of the reference parallelogram.
Draw the grids on all the faces of a box in 3-space.
Draw the grid on a particular face of a box in 3-space.
Draw labels for all faces of a box in 3-space.
Draw labels for a particular face of a box in 3-space.
Draw characters in the plane of the reference parallelogram.
Draw triangles defined by a triangle list.
Add triangles defining a simple surface to a triangle list.
Add triangles defining an isosurface to a triangle list.
Add triangles defining a 3D marker to a triangle list.
Order the triangles in a triangle list for proper rendering.
Cut triangles with a plane perpendicular to one of the axes.
Generic sorting routine

#include <ncarg/ncargC.h>

c_tdinit
c_tdpara
c_tdclrs
c_tdgeti
c_tdgetr
c_tdgtrs
c_tdseti
c_tdsetr
c_tdstrs
c_tdprpt
c_tdprpa
c_tdprpi
c_tdline
c_tdlnpa
c_tdgrds
c_tdgrid
c_tdlbls
c_tdlbla
c_tdplch
c_tddtri
c_tdstri
c_tditri
c_tdmtri
c_tdotri
c_tdctri
c_tdsort

To use Tdpack, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order.

When error conditions are detected, the support routine SETER is called. By default, SETER writes a message to the standard error file (as defined by I1MACH(4)) and then terminates execution. It is possible to put SETER into recovery mode and regain control after a recoverable error (which includes all of the possible errors).

The possible error messages are listed below. All errors are recoverable in the sense that a user program which has called ENTSR to set recovery mode will get control back after one of these errors occurs.


TDGETI - UNCLEARED PRIOR ERROR
TDGETR - UNCLEARED PRIOR ERROR
TDGETR - UNRECOGNIZED PARAMETER NAME
TDINIT - UNCLEARED PRIOR ERROR
TDPARA - UNCLEARED PRIOR ERROR
TDPRPA - UNCLEARED PRIOR ERROR
TDPRPI - UNCLEARED PRIOR ERROR
TDPRPT - UNCLEARED PRIOR ERROR
TDSETI - UNCLEARED PRIOR ERROR
TDSETR - UNCLEARED PRIOR ERROR
TDSETR - UNRECOGNIZED PARAMETER NAME

Online: tdclrs, tddtri, tdgeti, tdgetr, tdgrds, tdgrid, tdgtrs, tdinit, tditri, tdlbla, tdlbls, tdline, tdlnpa, tdmtri, tdotri, tdpack_params, tdpara, tdplch, tdprpa, tdprpi, tdprpt, tdseti, tdsetr, tdsort, tdstri, tdstrs

Copyright (C) 1987-2009
University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.

July 1997 UNIX