 |
BSplineCreateCurvePositions(Int32) Method |
Returns a Vector3[] array that defines the B-spline based on the control points (provided via the constructor) and the
specified 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: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntaxpublic Vector3[] CreateCurvePositions(
int positionsPerSegment = 30
)
Parameters
- 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