Fairs a curve object. Fair works best on degree 3 (cubic) curves. Fair attempts to remove large curvature variations while limiting the geometry changes to be no more than the specified tolerance. Sometimes several applications of this method are necessary to remove nasty curvature problems.
rhinoscriptsyntax.FairCurve (curve_id, tolerance=1.0)
rhinoscript.curve.FairCurve (curve_id, tolerance=1.0)
curve_id |
Required. String or Guid. The object's identifier. |
tolerance |
Optional. Number. The fairing tolerance. Of omitted, a default value of 1.0 is used. |
Boolean |
True or False indicating success or failure. |
None |
On error. |
import rhinoscriptsyntax as rs
curves = rs.GetObjects("Select curves to fair", rs.filter.curve)
if curves:
[rs.FairCurve(curve) for curve in curves]