HMIN_writecubic()

Specifies the next segment in the current line as a piecewise cubic spline.

Syntax

void HMIN_writecubic(int number, double data);

Type

HyperMesh hminlib Function

Description

Specifies the next segment in the current line as a piecewise cubic spline.

Inputs

number
The number of pieces in the cubic spline.
data
An array of line data in the form: x1,y1,z1,x2,y2,z2,x3,y3,z3,x4,y4,z4,...continue with the x1, y1, z1 through x4, y4, z4 data for each piece in the cubic spline.

Example

t goes from 0 to 1 for each piece:

x(t) = x1 + x2 * t + x3 * t2 + x4 * t3

y(t) = y1 + y2 * t + y3 * t2 + y4 * t3

z(t) = z1 + z2 * t + z3 * t2 + z4 * t3

This command is only valid after a call to HMIN_startline() and before the corresponding call to HMIN_endline().

Errors

None.