SplineCurve
Description
NURB definition spline curve
Keys
The following Keys can be created inside a table to form a spline entity:
- Type="SplineCurve" - Defines this table as a spline entity type
- NumberOfControlPoints - integer value
- Degree - integer value for the degree of the spline curve
- NumberOfKnots - integer value representing the total number of knots in the curve
- StartParameter - value from 0 to 1 specifying the trimming the boundary of the curve
- EndParameter - value from 0 to 1 specifying the trimming the boundary of the curve
- ListOfControlPoints={{X1,Y1,Z1},{X2,Y2,Z2},...,{Xn,Yn,Zn}} - table list of the control points of the spline curve
- ListOfWeights - table holding the list of weight values
- ListOfKnots - table holding the knot values for the curve
- LineStyle – The entity line style used. Possible values can be:
- None – This will utilize the active document linestyle – Same as omitting this parameter
- Solid
- Dash
- Dot
- DashDot
- DashDotDot
Example
--Minimal definition
mySpline = { Type="SplineCurve", NumberOfControlPoints=6, Degree=3, NumberOfKnots=10, StartParameter=0, EndParameter=1,
ListOfControlPoints={{-47.625,4.7625,0},{-46.8940473658239,7.13809606107223,0},{-42.0693292244282,44.2860307106822,0},
{-24.5098095446088,-10.0384284738297,0},{-9.29781695387008,19.1071434268962,0},{-7.9375,20.6375,0}},
ListOfWeights = { 1,1,1,1,1,1},
ListOfKnots = { 0,0,0,0,0.345331953154049,0.678665286487382,1,1,1,1} }
--Complete definition
mySpline = { CmdName="My Spline", Type="SplineCurve", NumberOfControlPoints=6, Degree=3, NumberOfKnots=10, StartParameter=0, EndParameter=1,
ListOfControlPoints={{-47.625,4.7625,0},{-46.8940473658239,7.13809606107223,0},{-42.0693292244282,44.2860307106822,0},
{-24.5098095446088,-10.0384284738297,0},{-9.29781695387008,19.1071434268962,0},{-7.9375,20.6375,0}},
ListOfWeights = { 1,1,1,1,1,1},
ListOfKnots = { 0,0,0,0,0.345331953154049,0.678665286487382,1,1,1,1}
Layer="Layer Name", Color="Blue", LineStyle="Solid", TransformMatrix={{1,0,0,0},{0,1,0,0},{0,0,1,0},{0,0,0,0}} }