Grasshopper

algorithmic modeling for Rhino

Hi guys,
i am trying to write a vb script component to offset a mesh.
i know there is a method called Rhutil.RhinoMeshOffset but i am having a hard time applying it.
Any help?
Many thanks
arthur

Views: 514

Replies to This Discussion

It pretty simple actually. Create a vb.net component with this line of code:
a = rhutil.RhinoMeshOffset(x, y)
Add a slider to the x input and the mesh you want to offset to the y input.
Change the slider's domain so it includes positive and negative values. This way you can offset inwards and outwards.


Any idea why there is nothing in the "out" output? Would i have to use "print"?
wow it is pretty simple:)
Thanks a lot.
In which case do you need to declare parameters "dim"?

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service