Grasshopper

algorithmic modeling for Rhino

Hello All,

I am trying to combine GH and some VB.net code to achieve a parametric regular octahedral space filling as shown in picture 1. The tasks I want to perform by VB.net scripting are
1) Input geometric components (same dimension what change is just material properties here simplified with different colours)
2) Create a 3d grid where each point is the centroid of my octahedron.
3) Evaluate grid points distance from a given surface (as shown in pic 2 - note that grid at moment is just a 3d rectangular grid so it does not work)
4) populate the point cloud with my geometry components according to the insertion point (centroid) distance from a given surface(dividing domain in as many intervals as needed).

The components are regular polyhedra so I think it won't be too difficult to create a 3d grid which will fit the scale of these - having in mind the points are centroids.

What I am struggling more is how to organize the code for point 4. Is there any useful VB.net classes I can use for this case? Have you some kick-start ideas or suggest similar code I can take as example to develop mine? What kind of nested loop is more suitable for this case?
As a novice to VB.net any advice is greatly appreciated! Merry Xmas

Jason

Views: 677

Attachments:

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service