Rhino Grasshopper Voronoi Cell Size Point Attractor

(Waffle Man) #6

That is very bizarre. I saved a file as a .gh and tried to open yours, and it still will not open the file

(Wim Dekeyser) #7

Are you opening the file from within Grasshopper? Sounds like you are trying to open it from explorer… - and that won’t work…

(Michael Pryor) #8

Open from grasshopper. File > open. Or open grasshopper and drag the file into grasshopper. You cannot open grasshopper files by double clicking them.

(Waffle Man) #9

Much better!! Thank you all so much!!

(Michael Pryor) #10

(Waffle Man) #11

Thanks Michael, I will definitely use .gh now.

I came up with another question. If I wanted to distort a voronoi diagram that is bounded by a rectangle (making cells larger or smaller based on distance to the point), instead of just scaling the cells down the further away from the point they get, do you have any suggestions for how I might go about this? I just want to make sure that the cells are all tesselating.

(Waffle Man) #12

This is what I have right now.
PrecedentStudy1.ghx (293.3 KB)

(Michael Pryor) #13

@DavidRutten gave you a good description to try for something like that.

(Waffle Man) #14

So I should extrude these cells in the z direction so that the ones I want to be smaller are extruded more. I am confused about how intersecting that volume with the XY plane would result in cross sections that touch each other. The way I am envisioning it at least, the cross sections would still be the same size as the footprint of the cells.

(Michael Pryor) #15

No extrusion. Use voronoi 3d.

(Waffle Man) #16

Would I scrap what I have and make a Voronoi 3D from scratch? I’m sorry for all of the questions - I am having trouble conceptualizing why this would work

(Michael Pryor) #17

Something like this…(ignore the red - it’s just because some intersections miss, which is expected)

Voro3dIntersect.gh (10.1 KB)

(Waffle Man) #18

Thanks so much Michael. I was messing around with your definition, trying to understand how it works, and was wondering why it only worked when the bounding rectangle for the Populate2D was 20 x 10. I also wondering why the definition makes a 2D voronoi diagram when you use a 3D voronoi component. Does it take a cross section of the 3D one and only show that particular cross section? Thanks so much!

(Michael Pryor) #19

why it only worked when the bounding rectangle for the Populate2D was 20 x 10

It works for any rectangle…

Does it take a cross section of the 3D one and only show that particular cross section

Hover over the end component (the one in red) and read its description.

(Waffle Man) #20

I tried to relocate the rectangle to forming from another point, and it stopped displaying it. I figured that it was likely due to the values the domain was remapped to. Can you explain what the remapped domain component was doing? I really appreciate it. I think that was the same problem with when I manually drew a rectangle, instead of using the rectangle component. That was why I didn’t think it would work for other rectangles

(Michael Pryor) #21

Not sure what you mean. Here works fine if I draw a rectangle.

(Waffle Man) #22

Here is the updated file. I don’t know - it was not working, and still is not working for me
PrecedentStudy1.ghx (533.4 KB)

(Waffle Man) #23

The problem is with the 3D voronoi component right now

(Michael Pryor) #24

The problem is two. You have bounds connected to the wrong thing. Also you changed the remap target to some other numbers. They need to be 0 to 1. The graph is mapping 0:1. You were out of the range of the graph. Here is fixed.

PrecedentStudy1-fixed.gh (17.7 KB)

How to ! complex double curvature variant Voronoi pattern + attractor point façade script!
(Waffle Man) #25

Thanks a lot!