 |
BezierCurveCreateBezierCurveThroughPoints(IListPoint3D, Double, Double, Double, Int32) Method |
Returns a Point3DCollection that defines the Bezier curve that goes through curvePositions.
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 less positions.
Namespace: Ab3d.UtilitiesAssembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 12.0.9484.2048
Syntaxpublic static Point3DCollection CreateBezierCurveThroughPoints(
IList<Point3D> curvePositions,
double curveScale,
double angleThresholdDegrees,
double minSegmentLength,
int maxSubdivisionsCount = 6
)
Parameters
- curvePositions IListPoint3D
- list of positions on the curve
- curveScale Double
- curve scale that defines how far from the curve positions the tangent control points are defined. This way the curve scale defines the curvature of the curve.
- angleThresholdDegrees Double
- Angle threshold in degrees. Lower values produce more accurate curve.
- minSegmentLength Double
- Minimum segment length. Lower values produce more accurate curve.
- maxSubdivisionsCount Int32 (Optional)
- maximum number of recursive subdivisions per segment (6 by default that produces at max 64 positions per segment)
Return Value
Point3DCollectionPoint3DCollection that defines the Bezier curve
See Also