Click or drag to resize
Ab4d.SharpEngine logo

BSplineCreateCurvePositions Method

Overload List
 NameDescription
Public methodCreateCurvePositions(Int32) 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.
Public methodCreateCurvePositions(Single, Single, Int32) Returns a Vector3[] array that defines the B-spline based on the control points (provided via the constructor) and adaptive algorithm parameters. The curve positions are created using an adaptive algorithm that adds more points where the curvature is higher. This takes longer to compute than when using fixed positionsPerSegment, but generates smoother curves with fewer positions.
Top
See Also