Click or drag to resize
Ab4d.SharpEngine logo

BSpline Methods

The BSpline type exposes the following members.

Methods
 NameDescription
Public methodStatic memberCreateBSplinePositions(Vector3, Int32) 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.
Public methodStatic memberCreateBSplinePositions(Vector3, Single, Single, Int32) Returns a Vector3[] array that defines the B-spline, based on the specified control points 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.
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.
Public methodCreateNURBSCurvePositions(Int32) Returns a Vector3[] array that defines the NURBS curve based on the control points and weights (provided via the constructor) and the specified number of positions per segment.
Public methodCreateNURBSCurvePositions(Single, Single, Int32) Returns a Vector3[] array that defines the NURBS curve based on the control points and weights (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.
Public methodStatic memberCreateNURBSCurvePositions(Vector3, Single, Int32) Returns a Vector3[] array that defines the NURBS curve (Non-uniform rational B-spline) based on the specified control points, weights, and number of positions per segment.
Public methodStatic memberCreateNURBSCurvePositions(Vector3, Single, Single, Single, Int32) Returns a Vector3[] array that defines the NURBS curve (Non-uniform rational B-spline) based on the specified control points, weights, 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.
Public methodGetPositionOnBSpline Returns a 3D point that lies on the B-spline based on the control points (provided via the constructor) and t. The t argument can have any value between 0 to 1, with 0 corresponding to the first control point and 1 corresponding to the last control point.
Public methodGetPositionOnNURBSCurve Returns a 3D point that lies on the NURBS curve based on the control points and weights (provided via the constructor) and t. The t argument can have any value between 0 to 1, with 0 corresponding to the first control point and 1 corresponding to the last control point.
Top
See Also