algorithmic modeling for Rhino
Hi, I am having trouble offsetting a curve with a VB component. it is probably quite simple but I have not been using GH for a while now and would very much appreciate some pointers to what I have done wrong.
extract from RhinoSDK
Public Function RhinoOffsetCurve(ByRef curve_in As IOnCurve, distance As double, ByRef direction_point As IOn3dPoint, ByRef normal As IOn3dVector, corner_style As Integer, tolerance As double, curves_out As [System::Runtime::InteropServices::Out]arraya>OnCurve^>^%) As Integer
Private Sub RunScript(ByVal xCrv As OnCurve, ByVal yPt As On3dPoint, ByRef A As Object)
Dim nPt1 As New On3dPoint(0, 0, 0)
Dim nPt2 As New On3dPoint(0, 0, 1)
Dim Normal As New On3dVector(nPt1 + nPt2)
Dim Dist As Double = 3.0
Dim nCrv As New OnNurbsCurve
nCrv = RhUtil.RhinoOffsetCurve(xCrv, Dist, yPt, Normal, 0, 0.1)
a = nCrv
End Sub
Tags:
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by