evaluate Curve [class 20091208/11]

you can mark/find points on a curve at a given parameter by using it’s domain.
curve domain could be though as the “(mathematical) definition space” of the curve.

Option Explicit
'Script written by onur yuce gun
'Script copyrighted by
'Script version Friday, December 11, 2009 10:54:39 AM

Call Main()
Sub Main()
	'get the curve
	Dim crv
	crv = rhino.Getobject ("select curve")
	'find the curve domain
	'(refer to rhinoscript help file
	Dim domCrv
	domCrv = rhino.CurveDomain (crv)
	'evaluate the curve at a given parameter
	Dim pt
	pt = Rhino.EvaluateCurve (crv,domCrv(1)*0.5)
	rhino.addPoint pt
End Sub
Advertisement

~ by onuryucegun on 2009/12/12.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.