AddArcPtTanPt

Adds an arc curve, created from a start point, a start direction, and an end point, to the document.

Syntax

rhinoscriptsyntax.AddArcPtTanPt (start, direction, end)

rhinoscript.curve.AddArcPtTanPt (start, direction, end)

Parameters

start

Required.  The starting point of the arc.

direction

Required.  The arc direction at start.

end

Required.  The ending point of the arc.

Returns

Guid

The identifier of the new object if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

pick = rs.GetCurveObject("Select curve to extend")

point = rs.GetPoint("End of extension")

domain = rs.CurveDomain(pick[0])

if abs(pick[4]-domain[0]) < abs(pick[4]-domain[1]):

    origin = rs.CurveStartPoint(pick[0])

    tangent = rs.VectorReverse(rs.CurveTangent(pick[0], domain[0]))

else:

    origin = rs.CurveEndPoint(pick[0])

    tangent = rs.CurveTangent(pick[0], domain[1])

rs.AddArcPtTanPt(origin, tangent, point)

Also See

AddArc

AddArc3Pt

IsArc