CurveNormal

Returns the normal direction of the plane in which a planar curve object lies.

Syntax

rhinoscriptsyntax.CurveNormal (curve_id, segment_index=-1)

rhinoscript.curve.CurveNormal (curve_id, segment_index=-1)

Parameters

curve_id

Required.  String or Guid.  The object's identifier.

Returns

Vector3d

The 3-D normal vector if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

object = rs.GetObject("Select a planar curve")

if rs.IsCurve(object) and rs.IsCurvePlanar(object):

    normal = rs.CurveNormal(object)

    if normal: print "Curve Normal:", normal

Also See

IsCurve

IsCurvePlanar