Functions | |
HC_KEY | Insert_Line (double xa, double ya, double za, double xb, double yb, double zb) |
HC_KEY | DInsert_Line (double xa, double ya, double za, double xb, double yb, double zb) |
HC_KEY Insert_Line | ( | double | xa, |
double | ya, | ||
double | za, | ||
double | xb, | ||
double | yb, | ||
double | zb | ||
) |
Adds a simple line segment to the current graphics segment.
xa | - x-coordinate for one end of the line segment. |
ya | - y-coordinate for one end of the line segment. |
za | - z-coordinate for one end of the line segment. |
xb | - x-coordinate for other end of the line segment. |
yb | - y-coordinate for other end of the line segment. |
zb | - z-coordinate for other end of the line segment. |
This is a primitive way to insert lines into your scene. More flexible routines include Insert_Polyline() , which requires passing all the x-y-z values at once, and Insert_Ink() , which requires multiple calls to draw a line.
If you only work in two dimensions, specify za and zb as zero.
If there is an error the Insert routine returns a -1.
HC_KEY DInsert_Line | ( | double | xa, |
double | ya, | ||
double | za, | ||
double | xb, | ||
double | yb, | ||
double | zb | ||
) |
Similar to Insert_Line() but accepts and/or returns double-precision values. This command can only be used when the application links the HOOPS double-precison module.
xa | - x-coordinate for one end of the line segment. |
ya | - y-coordinate for one end of the line segment. |
za | - z-coordinate for one end of the line segment. |
xb | - x-coordinate for other end of the line segment. |
yb | - y-coordinate for other end of the line segment. |
zb | - z-coordinate for other end of the line segment. |
No additional details. See Insert_Line().