HC_Insert_Infinite_Ray

Key HC_Insert_Infinite_Ray(double xa, double ya, double za, double xb, double yb, double zb)
Key HC_Insert_Infinite_Ray(double xa, double ya, double za, double xb, double yb, double zb)

Adds an infinitely long line to the currently open segment.

Allows the user to insert a line that is infinitely long in one directiona The line starts at (xa, ya, za) and passes through (xb, yb, yz) to infinity. At draw time, HOOPS Visualize will clip this line to ensure that it is drawn with minimal cost, and that it spans completely across the window into which it is drawn.

If you only work in two dimensions, specify za and zb as zero.

Infinite rays, like infinite lines, are considered as unbounded geometry and therefore will be ignored for bounding calculations.

This function’s double parameters are internally truncated to float. If you require extra precision, use this function’s double-precision variant, DInsert_Infinite_Ray.

HC_Insert_Infinite_Line, HC_Insert_Ink, HC_Insert_Polyline, HC_Set_Line_Pattern, HC_Set_Line_Weight, HC_Set_Color, HC_Set_Visibility, HC_Show_Infinite_Ray, HC_Show_Infinite_Line, HC_Renumber_Key.

Parameters

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.

Returns

The key to the inserted geometry, or -1 if an error occurred.