algorithmic modeling for Rhino
Hello everybody,
I am wondering whether it is possible to draw a line between all diagonal points for every point on the bottom of the breps, but the new lines has to get seperated by the grid lines. I can't only draw lines between all points, because I need to select just the diagonal lines. My approach was to use vectors with 45 degree angle from the world x axis and I tried to pick the closest point on the upper side of the breps, but this idea is too inprecise.
Does anyone has an idea?
Any help is much appreciated.
Tags:
I don't have LunchBox so can't see what you did. I noticed, though, that the components in the red group (image below) are completely unnecessary. You already have the surface you want at the 'List Item' component - one of the faces of the Brep. 'Flatten' and 'Graft' are also pointless.
As to diagonal lines in a grid, I used 'SubSrf (Isotrim)' to divide the reparameterized surface into a 10X10 grid of squares. Then 'DeBrep' to get the 'V (Vertices)' of each subsurface (small squares) and 'List Item' to get the first (i=0) and third (i+2) points to draw a diagonal line. For the other diagonal, use 'i+1' and 'i+3' instead.
Your Brep parameters are internalized so there is no need for the Rhino file.
Hi Joseph,
Thanks a lot for getting back to me and rid of my unnecessary data. :)
I got you this would solve the diagonal problem for a normal grid and I am sry I probably didn't explain it well enough. I just want a line between diagonal points inside a grid steping forward by the grid structure as showing below. Well I don't no whether this is possible, but without luchbox probably not at all :/.
I tried a bunch of different approaches to this and finally came up with something I think is pretty cool. Standard GH, no plug-ins.
Grid cells can be square or rectangular (size in white group, one slider or two). Handles multiple Breps and each can be oriented (rotated) differently. Handles any face of the Brep but works only on rectangular surfaces.
Separating the diagonal lines from the grid cells, joining them and sorting them is extra work:
I left my indispensable 'Tree/List Viewer' tool in the attached GH file. To use it, connect any geometry to the 'Tree' input and disable 'Preview' on any components that hide it. The 'path indx' slider selects one of the branches (Breps) and the 'idx' slider highlights one of the items in that list, in yellow.
Thanks a lot Joseph I got it done finally and I really like your Tree viewer :DD
Welcome to
Grasshopper
© 2024 Created by Scott Davidson.
Powered by