Grasshopper

generative modeling for Rhino

Hi all,
I want to have surface form 4 edge and there is no component for that. Do you know how to writ a script in order to load a command forms rhino?
Thank you

Reply to This

Replies to This Discussion

Hi maysam,


Sub RunScript(ByVal arr_crv As List(Of OnCurve))

Dim arr_nc As New List (Of OnNurbsCurve)

For i As Int32=0 To arr_crv.Count - 1
Dim nurbsCrv As New OnNurbsCurve
arr_crv(i).GetNurbForm(nurbsCrv) 'convert OnCurve to OnNurbsCurve
arr_nc.Add(nurbsCrv)

Next

'create a untrimed surface from 2,3 or 4 edge
A = Rhutil.RhinoCreateEdgeSrf(arr_nc.ToArray())


End Sub


[u

Reply to This

THANK YOU VERY MUCH...little things make the world easier ! ;)

Reply to This

Thank you both, for the question and
obviously for the answer.
Very helpful.
P

Reply to This

If your edge curves aren't planar, Marc Hopperman made a component for creating surfaces that uses the Rhino patch command.

Patch

-taz

Reply to This

Hi taz,

patch is not the same as surface from edge ;-) ...
why do you use the patch? surface from edge also works with not planar curves!

Reply to This

Good point... I was wrong about the planar part.

Using "patch" is just another option, which works with any number of curves...

Reply to This

that's true.. :D

Reply to This

thank you O[u

Reply to This

hi o[U
Thank you for script. It’s very helpful.
But I thought I can easily use your script as base and modify it in order to replace with another command, but it didn’t work. Actually I want to run the Unroll Developable Surface command from rhino. Could you please help me with that?
Thank you

Reply to This

Hi maysam,

this is not that easy like surface from edge ;-)
take a look @ Marc Hoppermans scripts, he still shared a unroll surface script.

thanks to Marc
[u

Reply to This

Hi I tried your solution in GH but it doesnt work
I pasted your code in a VB component and it turned grey, but the input curve makes no surface..
what I'm doing wrong?maybe the wrong type of curve?
please help
thanks

Reply to This

hi ivan

you have to check list and oncurve @ the input variable cause you need 4 curves and this is, as you can read from the script text , an array
- to]

Reply to This

RSS

© 2010   Created by Scott Davidson on Ning.   Create a Ning Network!

Badges  |  Report an Issue  |  Privacy  |  Terms of Service