Model - NurbsCurve functions
Every function callable as NurbsCurve.* inside an expression — an argument input, a parameter binding, a table cell. Pure: no side effects, no async.
| Function | Returns | Description | Arg | Type | Meaning |
|---|---|---|---|---|---|
NurbsCurve.closestPoint(curve, point) | point | Closest point on the curve to a point. | curve | curveEntity | the curve |
point | point | pointEntity | the query point | |||
NurbsCurve.divide(curve, count) | point[] | count+1 evenly-spaced points along the curve (parameter 0..1). | curve | curveEntity | the curve |
count | number | number of segments | |||
NurbsCurve.endPoint(curve) | point | End point of the curve. | curve | curveEntity | the curve |
NurbsCurve.length(curve) | number | Arc length of the curve. | curve | curveEntity | the curve |
NurbsCurve.pointAt(curve, parameter) | point | Point on the curve at parameter 0..1. | curve | curveEntity | the curve |
parameter | number | 0..1 along the curve | |||
NurbsCurve.pointAtLength(curve, distance) | point | Point at an arc-length distance from the start. | curve | curveEntity | the curve |
distance | length | arc-length distance from start | |||
NurbsCurve.startPoint(curve) | point | Start point of the curve. | curve | curveEntity | the curve |
NurbsCurve.tangentAt(curve, parameter) | vector | Tangent vector at parameter 0..1. | curve | curveEntity | the curve |
parameter | number | 0..1 along the curve | |||
NurbsCurve.toPoints(curve, tolerance) | point[] | Adaptive tessellation vertices (start/end + knot breaks, refined within a chord-deviation tolerance). | curve | curveEntity | the curve |
tolerance | length | max chord deviation (mm), default 0.5 |