*linecreatespline2

Creates spline from points and the end vectors.

Syntax

*linecreatespline2 coordlist=<value> ?<option1>=<value1>? ?<option2>=<value2>? … ?<optionN>=<valueN>?

Type

HyperMesh Tcl Modify Command

Description

This command creates spline from points and the end vectors.

Inputs

coordlist=<value>
The list of x, y, z coordinates of the points defining the spline.
endcondition1=<value>, endcondition2=<value>
The parameter specifying the constructed spline behavior at curve start (endcondition1) or end (endcondition2). Valid values are:
  • 0 or 9 - Spline direction at endpoint is not constrained.
  • 1 - Spline is closed. In this case any other end condition is ignored. Closed smooth cubic spline is constructed.
  • 2 - Spline direction at endpoint is tangent to direction of input vector startvector (for endcondition1) or endvector (for endcondition2).
  • 3 - Spline direction at endpoint is normal to direction of input vector startvector (for endcondition1) or endvector (for endcondition2).
  • 4 - Spline parametric derivative at endpoint equals to input vector startvector (for endcondition1) or endvector (for endcondition2). Normalized spline parameterization of 0 to 1 is implied.
startvector=<value>
Vector used to apply boundary condition specified by parameter endcondition1. Only required when endcondition1 is 2, 3 or 4.
endvector=<value>
Vector used to apply boundary condition specified by parameter endcondition2. Only required when endcondition2 is 2, 3 or 4.

Examples

To create a spline using locations (-1.3 -0.1 0.0). (-0.7 0.1 0.0), (-0.5 -0.2 0.0), (0.2 -0.9 0.0), (0.7 -0.5 0.0), (0.9 -0.4 0.0), direction at the start defined by vector (-1.0, 0.2, 0.0), and unconstrained direction at the end:

*linecreatespline2 "coordlist=-1.3 -0.1 0.0 -0.7 0.1 0.0 -0.5 -0.2 0.0 0.2 -0.9 0.0 0.7 -0.5 0.0 0.9 -0.4 0.0" endcondition1=2 "startvector=-1.0 0.2 0.0" endcondition2=9

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}

Version History

2026