Grasshopper

algorithmic modeling for Rhino

Dear All,

I am beginner of GH and hopeing someone could help me.

 

I am trying to make a grid from a point. I know how to make a grid from a corner point. However, I want my grid from a center point rather than a corner.

 

Can anyone tell me how to do it?

 

Many thanks,

Eri

Views: 5439

Replies to This Discussion

If you build your grid from a corner, extract the center point from each of the grid cell polylines and average them, you'll have a center point for your grid from which you can create a translation vector to the desired location.

Move the origin of the Grid, not the cells. Less memory, less time.

Do your math in one expression...less real estate ;)

Hmmm... interesting. Single component math executes about 40% faster than Evaluate.

We have to trade speed and memory for readability.

:D

I am allergic to the rectangular / square grid components for some reason.  Here is how I do it:

In A and B I have an expression: -A/2 or B/2.  The slider defines the total dimension for the grid.

Or if you want to specify another point as the center:

Hi Luis,

is it possible to run this same set up with two or more points. I think it has something to do with the grafted list for 'y', but adding multiple points messes it up. 

I have also tried duplicating the ranges for the y input, but something is still a miss.

Essential, i hope to have four point generate the same centered grid.

Any and all help appreciated.

Regards

Hi.

You can use "Point Oriented" component along with "Cross Reference".

Killer!

Thanks Hyungsoo Kim!

I would like to generate an hexagonal grid from its center point (center of a cell) and have radius and number of cells in X and Y as parameters. So I could trim the grid and always have a cell right in the center. Cant find the best way to do it. Thanks

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service