Function
Constructs a line, triangle, quadrilateral, or tetrahedron from point identifiers.
Syntax
#include <dx/dx.h>
Line DXLn(PointId p, PointId q)
Triangle DXTri(PointId p, PointId q, PointId r)
Quadrilateral DXQuad(PointId p, PointId q, PointId r, PointId s)
Tetrahedron DXTetra(PointId p, PointId q, PointId r, PointId s)
Functional Details
Each of the connection primitives defined here consists of indices into an Array that stores the coordinate data, which are typically stored in the "positions" component of a Field.
The type definitions for a Line,
Triangle,
Quadrilateral, and
Tetrahedron
are as follows:
typedef struct line {
PointId p, q;
} Line;
typedef struct triangle {
PointId p, q, r;
} Triangle;
typedef struct quadrilateral {
PointId p, q, r, s;
} Quadrilateral;
typedef struct tetrahedron {
PointId p, q, r, s;
} Tetrahedron;
A Point Id is defined as follows:
typedef int PointId;
Return Value
Returns a line, triangle, quadrilateral, or tetrahedron.
See Also
DXAddArrayData, DXAddLine, ...Triangle, ...Quad, ...Tetrahedron, ...Lines, ...Triangles, ...Quads, ...Tetrahedra, DXNewArray, DXNewArrayV
"Lines, Triangles, Quadrilaterals, Tetrahedra, and Cubes".