Grasshopper

algorithmic modeling for Rhino

Hello -

I am trying to work out two tasks:

1) Subdivide a closed pline with a set number of points.

In grasshopper, I am setting the U&V at 211, but in rhino it is returning around 88+/- grid points.  Ideally, I'd like to set the exact number of points populating the region, ie 211 in GH = 211 visible in rhino.

(I was able to achieve the exact number of points using populate2d instead of sdivide, but could only get this to work with a simple rectangular region)

2) After I have exactly 211 points, I'd like to populate each of the points with a block made in rhino (for example: the stick figure man seen in the view) 

(One idea is that I build a dummy geometry and replace later with my block in rhino.  But how do I make this change universally over the 211 points?)

Views: 9372

Replies to This Discussion

You can use Populate Geometry instead of Populate 2D.

Grasshopper does not support blocks, so you won't be able to do step two. Though you can of course create copies of some geometry (as long as it's a curve, or a surface, or a mesh or something) at your points.

Another approach would be to generate more points than you need, then remove the superfluous ones.

--

David Rutten

david@mcneel.com

Tirol, Austria

Populate Geometry worked for me!  Thank you.  

A follow up question:  if I am inputting a series of regions, each with a different geometry count, is there a way to input these counts as a list, vs. a copy/paste of my current GH script, and a manual plug in of each region with corresponding count.

You can also create blocks using the Human plug-in. You'll have to define the block in Rhino and then use the "Place Blocks" component.

Andrew - Thank you so much!!  This is very helpful!

the name is the name of the Block, which must already be defined in Rhino. If you have already defined a block and don't know its, name, you can run the BlockManager command to get a list of blocks in the model.

Thanks

Is it possible to preview the blocks in grasshopper before you bake them?

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service