22 lines
659 B
Markdown
22 lines
659 B
Markdown
# BSplineFitResult
|
|
|
|
## Class Definition
|
|
|
|
```python
|
|
class BSplineFitResult(degree: int, control_points: Tuple[PointTuple, ...], knots: Tuple[float, ...], sample_parameters: Tuple[float, ...], max_error: float, rms_error: float, tolerance: float, fairing: float, iterations: int, converged: bool)
|
|
```
|
|
|
|
*Source: math.py*
|
|
|
|
## Import Surface
|
|
|
|
- top-level: `from simplecadapi import BSplineFitResult`
|
|
|
|
## Description
|
|
|
|
Result from fitting a cubic B-spline to sampled curve points.
|
|
|
|
The result stores a complete, normalized B-spline definition suitable for
|
|
passing into the exact B-spline edge/wire APIs: cubic degree, control
|
|
points, and a full clamped knot vector.
|