OCCNurbsCurve.closest_parameters_curve
- OCCNurbsCurve.closest_parameters_curve(curve, return_distance=False)[source]
Computes the curve parameters where the curve is the closest to another given curve.
- Parameters
curve (
OCCNurbsCurve
) – The curve to find the closest distance to.return_distance (bool, optional) – If True, return the minimum distance between the two curves in addition to the curve parameters.
- Returns
tuple[float, float] | tuple[tuple[float, float], float] – If return_distance is False, the lowest distance parameters on the two curves. If return_distance is True, the distance between the two curves in addition to the curve parameters.