algorithmic modeling for Rhino
hi all
i have been trying to make this simple script where i can pick a curve/profile and its corner point and the script gives me the desired brick course. I already have analysed patterns occurring in various brick-courses.
this is how i proceeded:
1. Firstly i made a point grid. PS: I didn't make a rectangular grid but by moving points in series, first vertically and then horizontally as per the required pattern of the brickwork. ( As that gives me more flexibility to space grids as per the brick-course in the initial stage)
so as one can see from the images above that i have the base grid, just need to make rectangles around it with appropriate dimensions.
Now the real problem, lets take the case of stretcher bond:
As soon as i define a particular curve and a base point, the result is this
I want to find an effective way to select just the points that are enclosed in the geometry(geometry has been drawn in rhino), i am attaching a part of the script, please help..!!
Tags:
If you want just to "select" points, there are already 2 components in GH:
Point In Curve (InCurve)
Point In Curves (InCurves)
These components gives you a 0/1/2 pattern output. (where 0 can be false and 1/2 can be true)
Then use dispatch component to split your list of points:
A will be true list, points inside(1) or coincident with border(2);
B will be false list, points outside of border.
If you actually want to select points to work with them in rhino, bake true list as a group, and then select last object in rhino.
Btw I think somehow the "hard" part would be creating the bricks, but you didn't mention it...
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by