10.17. Spline Control Point File Format

A Spline Control Point file is used to define one or more splines that can be used in EnSight for positioning entities such as the camera or the plane tool. This file is a text file with the following format:

Line 1 is the version number in the form "#Version <version number>", where version number is a floating point value. The version number is currently 1.0.

Line 2 is a keyword indicating file type: "#EnSight Spline Control Points".

Line 3 is the keyword to start a new spline and provide the text description of the spline in the form "DESCRIPTION: <spline name text>" where the spline name text is at most a 49 character text description.

lines 4 through n contain the floating point values for the x, y and z coordinates, respectively, of each point. The values must be separated by commas and each line may contain the x, y, and z values of only one point, terminated by a carriage return. The number can be exponential (2 or 3 exponent values) or floating.

Lines beginning with a "#" are considered comments and ignored.

Multiple splines can be contained in one file. The keyword "DESCRIPTION: <spline name>" begins a new spline point listing.

example:

#Version 1.0
#EnSight Spline Control Points
DESCRIPTION: First Spline
0.00000e+00,0.00000e+00,0.00000e+00
1.00000e-01,1.00000e-001,3.00000e-001
2.00000e-01,1.00000e-001,3.00000e-001
3.0,3.50000e-01,1.70000e+00
4.20000e+000,5.00000e-001,1.80000e+000
5.40000e+000,6.00000e-001,1.90000e+000
6.50000e+000,8.00000e-001,1.95000e+000
7.00000e+000,1.00000e+000,2.00000e+000
# This is a comment line and is ignored
DESCRIPTION: Second Spline
0.00000e+00,0.00000e+00,0.00000e+00
9.00000e-01,1.00000e-001,3.00000e-001
2.0,3.00000e-01,6.00000e-001
3.00000e+00,3.50000e-01,1.70000e+00