Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

Curve Tangent

$
0
0

@cua54kttt wrote:

Call Main()
Sub Main()
Const rhObjectCurve = 4

Dim strObject, arrPoint, dblParam, arrNormal

strObject = Rhino.GetObject("Select a curve", rhObjectCurve)

If Not IsNull(strObject) Then

	arrPoint = Rhino.CurveStartPoint(strObject)

	If IsArray(arrPoint) Then

		dblParam = Rhino.CurveClosestPoint(strObject, arrPoint)

		arrNormal = Rhino.CurveTangent(strObject, dblParam)

	End If

End If
Rhino.AddLine  arrPoint, arrNormal

End Sub

Untitled

Red line is a line I want to creat from a point on curve and a point tangent curve.
I don’t don’t know how to do it. Please help me.Untitled.3dm (16.4 KB)

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles