FairCurve

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.

Syntax

rhinoscriptsyntax.FairCurve (curve_id, tolerance=1.0)

rhinoscript.curve.FairCurve (curve_id, tolerance=1.0)

Parameters

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.

Returns

Boolean

True or False indicating success or failure.

None

On error.

Example

import rhinoscriptsyntax as rs

curves = rs.GetObjects("Select curves to fair", rs.filter.curve)

if curves:

    [rs.FairCurve(curve) for curve in curves]