Search for a derivative, tangent, or curvature discontinuity in a curve object.
rhinoscriptsyntax.CurveDiscontinuity (curve_id, style)
rhinoscript.curve.CurveDiscontinuity (curve_id, style)
curve_id |
Required. String or Guid. The object's identifier. |
||||||||||||
style |
Required. Number. The type of continuity to test for. The types of continuity are as follows:
|
List |
A list of 3-D points where the curve is discontinuous if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
curve = rs.GetObject("Select a curve", rs.filter.curve)
if rs.IsCurve(curve):
points = rs.CurveDiscontinuity(curve, 2)
if points: rs.AddPoints( points )