Grasshopper

algorithmic modeling for Rhino

Objects distributed along spacial curve

minU - minimal U value
maxU - maximal U value
dens - curve density (number of objects along curve path)

VB Code
(creates a list of points for calculations)

Sub RunScript(ByVal minU As Double, ByVal maxU As Double, ByVal dens As Integer)   Dim uStep, i As Double   Dim rv As New List(Of Double)
   uStep = (maxU - minU) / dens
For i = minU To maxU + 0.0001 Step uStep
rv.Add(i)
Next
u = rv
End Sub



Grasshopper definition:
spacialCurves.ghx

Views: 638

Comment

You need to be a member of Grasshopper to add comments!

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service