 |
BSplineCreateBSplinePositions(Vector3, Int32) Method |
Returns a Vector3[] array that defines the B-spline, based on the specified control points and number of
positions per segment.
The curve positions are created using a fixed number of positions per segment.
This is very fast to compute, but can generate too many points along nearly straight sections and too few where the curve bends sharply.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
Syntaxpublic static Vector3[] CreateBSplinePositions(
Vector3[] controlPoints,
int positionsPerSegment = 30
)
Parameters
- controlPoints Vector3
- Array of control points.
- positionsPerSegment Int32 (Optional)
- Number of additional points to make the curve smooth - larger value creates smoother curve. Default value is 30.
Return Value
Vector3A Vector3[] array that defines the B-spline.
See Also