*SetSpline3DAttributes()
Sets the offset and scale for three dimensional (3D) spline data.
Syntax
*SetSpline3DAttributes(varname, z_scale, z_offset,
x_scale, x_offset, nz, y_scale 1,y_scale 2 ...,
y_scale nz, y_offset 1, y_offset 2, ..., y_offset nz )
Arguments
- varname
- The variable name of the spline entity.
- z_scale
- The scale value applied for Z values.
- z_offset
- The offset value applied for the Z values.
- x_scale
- The scale value applied for the X values.
- x_offset
- The offset value applied for the X values.
- nz
- The number of Z values.
- y_scale 1 , y_scale 2 .. y_scale nz
- The scale values applied individually for each Y column vector. The number of scale values are equal to the number of Z values.
- y_offset 1 , y_offset 2 ..y_offset nz
- The offset values applied individually for each Y column vector. The number of scale values are equal to the number of Z values.
Example
In example below, a scale of 100 is applied to the X column data. A scale of 1.2 is applied
to the second Y column out of the 3, while applying an offset of 0.5 and 0.4 on first and
third Y columns
respectively.
*Spline3D( spl3d_1, "Spline Value" )
*SetSpline3D( spl3d_1,VALUE, 3, 11
, 10, 20, 30,
0.00E+00, 1.05E+02, 1.17E+02, 1.24E+02,
1.00E+00, 1.06E+02, 1.16E+02, 1.23E+02,
2.00E+00, 1.10E+02, 1.15E+02, 1.22E+02,
3.00E+00, 1.20E+02, 1.25E+02, 1.18E+02,
4.00E+00, 1.15E+02, 1.24E+02, 1.20E+02,
5.00E+00, 1.13E+02, 1.20E+02, 1.21E+02,
6.00E+00, 1.08E+02, 1.17E+02, 1.19E+02,
7.00E+00, 1.09E+02, 1.14E+02, 1.17E+02,
8.00E+00, 1.06E+02, 1.16E+02, 1.15E+02,
9.00E+00, 1.03E+02, 1.13E+02, 1.12E+02,
1.00E+01, 9.90E+01, 1.10E+02, 1.14E+02,
, NORMAL )
*SetSpline3DAttributes(spl3d_1, 1, 0.0,
100, 0,
3,
1, 1.2,1,
0.5, 0, 0.4)
Context
Comments
A scale or offset can be applied to the Spline3D of type FILE and VALUE.
The View data as well as the Show Spline 3D visualization will always indicate values after applying scale and offsets.