I would like to know how to divide a surface with a specific length and create lines between the points within the surface. I was trying to figure out how to do this with Divide Surface, but this component does not allow you to input a value to control the distance between each division.
Also, the ‘Grid Structure’ component allows you to collect the lines in the output, but it is not limited to the surface boundary and does not allow you to control the distance between each division. Therefore, I would like to know how to divide a surface with a grid like Divide Surface does and control the length of the divisions, as well as create lines between the points within the surface (my intention is to create a grid for structural purposes, and the lines will be the beams).
For the last need, I would like to rotate the grid, because the ‘Divide Surface’ and ‘Grid Structure’ components only put a direction on the grid created, but it would be useful to control the direction in which the grid will be created.
Hi Joseph, thanks a lot for your attention to my issue.
This works like a charm!
Yes, the joists will be for floors.
I was thinking about rotation in your first post in this topic. Regarding this, I made some modifications to your script, keeping most of your thoughts. I don’t know, but I couldn’t rotate the grid the first time, so I put other components to do it. Now, it is possible to rotate and allocate a center at a specific point with a Evaluate Surface component (just for personal preference).
Furthermore, after seeing the script working, I wondered if there is a possible way to keep the joists connected only between a square, which is made by four adjacent points, so that only joists are created between four points, to have a square grid, that is, the idea is to have the largest number of 10x10 meter squares within the limits of the surface. It would also be possible to be able to list these squares, so that, in a last resort, I can work with generative design (I have another .gh file to create some genome-based volume patterns, but this would only be possible after creating this pattern).
Actually, I changed my mind completely (that’s why I changed almost everything you thought of in your script, Joseph, but on the other hand, your script will be useful at some point in my process).
I was messing around with the components and came up with a solution, as follows.