Grasshopper

algorithmic modeling for Rhino

Hi,

I'm trying to create a field of holes in a rectangular solid. I'm using an image sampler to give a field of cylinders radial values. The cylinders exist in a field whose extents are larger than the dimensions of the rectangle (by necessity). Both the rectangle and cylinders have the same height and the two geometries are plugged into a Solid Difference Algorithm.

The problem is the baked output results in multiple overalpping iterations of the rectangular solid with a couple rows of holes removed in each one (see photo).

I get the result I'm looking for when I simply use a field of random points (see photo), but not when I use the script I set up to generate a 60° triangular grid- so I assume I'm repeating something in there. Perhaps it needs a flatten or graft somewhere but I don't know enough about them to know where to start.

If you know where to simplify (or know a better way) to correct the script for the grid please let me know. Script attached.

Many thanks!


Views: 555

Attachments:

Replies to This Discussion

Figured out a solution- 

Flattening the points coming out of the merge seems to have worked. Not 100% sure what was going on, best guess is it was creating a solid difference for each branch of points, which also contains a "shifted" point into the centre of each rectangle which makes the triangle. Therefore it was producing as many options as the width/spacing. Flattening the points made them all one set (like a random set would be) and then produced only one solid difference.

Something like that?

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