Files
2026-07-22 13:48:46 +08:00

659 B

BSplineFitResult

Class Definition

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.