fibomat.curve_tools.biarc_approximation package#
- fibomat.curve_tools.biarc_approximation.approximate_parametric_curve(param_curve: ParametricCurve, rasterize_pitch: float, epsilon: float) List[Arc | Line][source]#
Approximate a ParametricCurve with an ArcSpline.
Seems to work good: rasterize_pitch > 10 * epsilon
rasterize_pitch > epsilon
- Args:
param_curve (ParametricCurve): curve to be approximated rasterize_pitch (float): pitch used for rasterization. epsilon (float): maximal distance between original and approximated curve.
- Returns:
ArcSpline
- References: