Wednesday, May 16, 2012

GH: GRID PINCHING

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.
GRASSHOPPER GRID PINCHING


This definition uses points to pinch grid pathways

LOGIC
1. Create a grid
2. Measure distance between grid intersections and pinch points
2. Remove points outside of the desired radial range from each pinch point
3. Replace points within the range with pulled points overlapping the pinch points
4. Remove overlapping points that exist in the same x,y,z coordinates
5. Connect points to make new pinched grid

GH Version
0.9.0065


Tip
The polyline component may turn yellow. This does not mean there is something
wrong it is just the component automatically collapsing zero length line segments.
This works with all curves in general so try custom grids. Also this works 
in the x,y,and z direction so try moving the points around in 3 dimensions.
Try then skinning the pathways with metaballs and mesh from points or
using millipede. To get perfect triangulation just stop at the polyline component.  






Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

10 comments:

  1. Could you please help me, i have done exactly as you have suggested above, and have all the components,
    but i seem to achieve nothing in result except a grid of points. I would appreciate your help a lot.

    samak

    ReplyDelete
    Replies
    1. maybe you forgot to turn off preview of the previous components?

      Delete
  2. I have same problem here. couldnt get the results despite of following exactly what you have done. pls help

    ReplyDelete
  3. you just have to move the slider which goes in "smaller than" - otherwise it compares all the distances with zero - and of course all of them are bigger than zero -> you get no boolean pattern (all false) and it does not alter the grid

    ReplyDelete
  4. I am wondering to select the attraction points as random, so what should I do ? It means that if I want to move the attraction point in Z axes, so how and where to add the components ?

    ReplyDelete
    Replies
    1. After the [Point] component, use [Random] to select points randomly, then use [move] (plug [z unit] into T of [Move]) , Finally use [Replace] to for the replace the moved points with the non-moved points as a list.

      I hope this makes sense.

      Delete
  5. Hi, im stuggling with inputing points into this algorithm with the 'point' command, i have been selecting multiple points and yet my closest point parameter is coming up with a red saying it cant convert the rectangle to a point.

    ReplyDelete
  6. Hi, I want to download the component but I can't find it anywhere. can you please tell me where i can get it?

    ReplyDelete
  7. Thanks! Love this simple explanation with great result

    ReplyDelete
  8. sorry but none of these ever work.... all I get is the exact same grid at the beginning

    ReplyDelete