Showing posts with label grasshopper. Show all posts
Showing posts with label grasshopper. Show all posts

Thursday, September 2, 2021

Simple Grates

I ran across a quick exercise in designing 3d grates. It's a simple enough combination of linear bars and perpendicular supports. Given that there were multiple starting shapes and depths, I decided to do this in grasshopper to better get a faster grasp of the different parameters.

Screenshot:


Grasshopper file:


In a bit more detail, the gh file inputs are:

- Perimeter of the drip tray (this gives the long and short distances)

- Height of the drip tray (this helps calculate overlap)

- Dimensions of bars lengthwise

- Dimensions of perpendicular bars

- Void at bottom (for better drainage)


The intermediate steps are as rather simple:

- Locate and create the long bars, center accordingly

- Locate and create the short bars, boolean out the long bars to create notches, and boolean out the void for better drainage 


In doing this work I realized:

- I love playing with grasshopper. It's slow at times, and troubleshooting can be a pain, but it's still one of the more powerful tools that I know.

- I need to create more customized clusters to help speed up future work.

Saturday, July 18, 2015

FaceMe for Rhino

I don't know why but Rhino still doesn't have a feature similar to sketchup's FaceMe. By using only a billboard image instead of a heavy 3d model, FaceMe is one reason why sketchup scenes can be so light weight. Years ago I made a rhinoscript to accomodate this, but recently I adapted it to grasshopper so that it can be more controllable.






Simply stated, this is a grasshopper script that reorients the billboards to face an attractor point. I've also attached some jitter commands to create some variation. Then bake the new billboards and delete the initial surfaces. In the future, some vb/c# work can link the attractor to the camera location. 

Note that for now, all billboards textures must be assigned by layer and differently billboard images need to be grouped and baked separately.


Typical billboards


FaceMe




Move Jitter


Rotate All Billboards


Rotate Jitter




Combined Effects



Sunday, July 12, 2015

Tracking Movement: Circular Lofts


Building off of the previous circular loft script, I created a tracker that traced the location of a series of points over time. As a form twirls across the screen, the series traced points form curves, and are lofted into graceful forms.





I'm using the recorder to track points, and feeding the points into an interpolated curve. Works surprisingly well! Right now there is only a rotate transform, but I did play around with a move transformation (x,y) as well. I'm still trying to figure out what I can do with these extrusions:





 I then isolated the move transform to the x dimension only, and I got some interesting script-like curves. As the resulting traces are highly dependent on the initial loft forms, I feel like there's a lot of potential here.





Friday, July 10, 2015

Creating with Grasshopper: Circular Lofts


I was exploring three point circles when I realized that I could use grasshopper to manipulate lofted circular forms dynamically.




I started with three curves in space, broke them down into smaller segments, used the end points to create 3 point circles, and then lofted them into vase forms. By rotating the original curves, I was able to really create complex forms and transitions. Fun!


Did some iteration studies:



---------------------------

Continued form finding exercise... with a little help from array:



A refinement in array allows me to rotate the form in an array. Could be interesting once I develop enough tools to "animate" this form.

3dm | gh



Clusterizing this array and rotate portion leaves a beautifully simple script.






Friday, July 3, 2015

Exaggerated Ribs


CurvatureGraph provides a nice analytical tool to review curves for kinks. It is also a pretty way to "grow" the curve. I wanted to build off of Jittery Lines with a script that thickens polylines relative to its control points, as CurvatureGraph works for a Curve. It's a common effect (that I'm almost certain there's an existing script for) that I want to explore and build on top of.

To go about this, I've broken the script down into 5 parts:

1. Explode polyline to get line segment vectors
2. Calculate bisecting vectors*
3. Calculate angle and direction of "turn" from original vectors
4. Create offset vectors at the kink points
4a. Create Weighted Offsets based on adjacent vector angles
5. Join these points into new polylines


*Just using bisectors for the offsets will result in "twisted" ribbons. That is why I untwist this by "flipping" the bisector when the line segment goes from clockwise to counterclockwise.




Here's a 2D example running on multiple curves:



I've resolved part 4a by creating three options for weighting how I offset the polylines: by a shift slider (shift about center), an equal slider (grows equally), and by duo sliders.



More forms:



Tuesday, June 23, 2015

Back to Basics



rhino file:
https://app.box.com/s/p7us1l3wx7ejfx5ikmeckv87meozfokf

grasshopper .9 file:
https://app.box.com/s/o1pgzgca5ja73z4rrcy6f56xk8ti6r1y


Multiple Bakes + Random Color

Wednesday, October 12, 2011

Spatial Deform: Grasshopper Introduction

Rhino's CageEdit command's closest equivalent in grasshopper is Spatial Deform. The combination of an already powerful command with grasshopper's interactive nature makes this a very complicated and memory intensive tool to figure out and use. Other than this Q&A and this demo, I really can't find a good example of using Spatial Deform, so here goes a basic introduction:


To use Spatial Deform, you'll need to attach the following:
'G' - the rhino geometry to deform
'S' - a series of points that will define the cage
'F' - the forces applied to each of the points in 'S'
'f' - a falloff equation

Now this script takes advantage of Kangaroo's removeDuplicatePts. If you don't already have it, get it at their website.

Friday, September 30, 2011

Making Slabs with Grasshopper

Slab is a limited command in rhino, but it has its uses in quickly putting up simple extrusions. It's always annoying to change your workflow because a basic tool is missing in grasshopper, so:


The definition is really simple. A series of closed, planar curves, the offset (inwards or outwards), and the extrusion value. With those in place, the script does a few offsets and booleans, and then spits out the slabs.


Sunday, April 25, 2010

Columns from Srf and Grid



To create a field of columns of different shapes in rhino, you will need the following ingredients:
- a couple of intersecting lines
- a ceiling surface
- a simple grasshopper script
- and a bit a patience and curiosity

Directions:

1. draw your curves
2. draw your surface
3. select the curves and srf in the grasshopper script
4. adjust curve/srf as you see fit

grasshopper script requests 4 variables: the intersecting curves (column starting points), surface (height), width, and length.