Main Content:

Pages: [1]

RhinoScript101 -> Grasshopper

0 Members and 2 Guests are viewing this topic.
  • taz
  • User
  • *
  • Offline Offline
  • Posts: 73
  • View Profile
RhinoScript101 -> Grasshopper
« on: June 24, 2008, 09:23:58 PM »

Finally there's a place where I can post images from some of the Grasshopper definition files I've been working on.  I'm too lazy to maintain my own blog so thanks to Dave for starting this forum.

Grasshopper is an excellent utility for generating parametric NURBS based geometry.  It can also generate mesh objects but so far I'm having a harder time using the mesh functions.  In the future (the very near future...) the functionality of Grasshopper can only increase so we'll have to wait and see what happens.

By way of example I tried to replicate with a NURBS surface the mathematically derived mesh generation script from the RhinoScript101 primer.  If you really want to have fun you can check the mesh from the script against the NURBS surface from the definition.  Obviously The NURBS geometry doesn't handle sharp edges, creases, or singularities very well but if the resolution setting is high enough the approximation is pretty close.

The definition file has all the sample functions from RhinoScript101 predefined and everything can be controlled with sliders from the remote control panel.  I also posted the original script and some images.

This example brings to mind the Math Plug-in for Rhino which also creates mathematically derived curves and surfaces.  If you've ever wondered what an enneper looks like in Rhino that's the plug-in for you.  I'll have to see if the same thing can be done with Grasshopper.

http://de-de.de/rhino3/_develop/__v3_plugins/math/index.shtml

Cheers,
taz 

* surface_function_062308.wrm (23.67 KB - downloaded 728 times.)
* page95_MeshFunction.zip (1.37 KB - downloaded 603 times.)

* RhinoScript101_print 100.jpg (44.63 KB, 500x654 - viewed 2870 times.)

* surf500.jpg (39.38 KB, 500x372 - viewed 28205 times.)

* surf500 (1).jpg (40.27 KB, 500x372 - viewed 2709 times.)

* surf500 (2).jpg (40.02 KB, 500x372 - viewed 2680 times.)

* surf500 (3).jpg (38.67 KB, 500x372 - viewed 2686 times.)

* surf500 (4).jpg (39.98 KB, 500x372 - viewed 2668 times.)

* surf500 (5).jpg (40.46 KB, 500x372 - viewed 28065 times.)

* surf500 (6).jpg (20.99 KB, 500x372 - viewed 2659 times.)

* surf500 (7).jpg (39.4 KB, 500x372 - viewed 2675 times.)
Logged
  • dfano
  • Administrator
  • User
  • *****
  • Offline Offline
  • Posts: 357
  • View Profile WWW Email
Re: RhinoScript101 -> Grasshopper
« Reply #1 on: June 24, 2008, 09:46:19 PM »

SWEET!!!! These are great!

I'll post this on the main page.

Thanks,

dave
Logged
  • taz
  • User
  • *
  • Offline Offline
  • Posts: 73
  • View Profile
Re: RhinoScript101 -> Grasshopper
« Reply #2 on: June 26, 2008, 12:13:11 AM »

Thanks for the free publicity Dave!

Good thing I have an update to keep things fresh... 

I figured out mesh creation and added in a color gradient that tests for proximity.  More routines I pilfered from RhinoScript101, but at least I'm now mixing and matching.

Cheers,
taz



* mesh500.jpg (14.74 KB, 500x306 - viewed 2543 times.)
Logged
  • dfano
  • Administrator
  • User
  • *****
  • Offline Offline
  • Posts: 357
  • View Profile WWW Email
Re: RhinoScript101 -> Grasshopper
« Reply #3 on: June 26, 2008, 07:42:52 AM »

Anytime. Thanks for posting!

Looks good!
Logged
  • taz
  • User
  • *
  • Offline Offline
  • Posts: 73
  • View Profile
Re: RhinoScript101 -> Grasshopper
« Reply #4 on: July 01, 2008, 05:32:37 PM »

Another translation from RhinoScript101 to Grasshopper.

taz

* distribute_circles_on_sphere_070108.wrm (11.17 KB - downloaded 507 times.)

* circonsph500.jpg (26.55 KB, 500x306 - viewed 2462 times.)

* dingleberry500.jpg (22.37 KB, 500x306 - viewed 2420 times.)
Logged
  • dfano
  • Administrator
  • User
  • *****
  • Offline Offline
  • Posts: 357
  • View Profile WWW Email
Re: RhinoScript101 -> Grasshopper
« Reply #5 on: July 02, 2008, 07:44:55 AM »

That's awesome! I just moved so i have not had time to experiment. I'll try and catch up this weekend.

Thanks for posting,

D
Logged
Re: RhinoScript101 -> Grasshopper
« Reply #6 on: July 02, 2008, 04:43:17 PM »

Wow.  These are fantastic; they open up so many other ideas to go try.  Thanks for posting these (and the .wrm files to learn from).

Peace,

J
Logged
Pages: [1]
Jump to: