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
