Hi all… I don’t have a very good knowledge of grasshopper, so what I create is probably not the best way to do it, but as I’m learning I’m getting better at it. Don’t mind the mess on the file, as I didn’t have the time to “clean” it up and organize it.
For a project at work, I have to create several “connection” pieces that will be welded inside tubes. As they all have the same components, but are folded in different directions with different angles, I created one on grasshopper, with a rectangle and 2 lines as base, so that I can manipulate those inside rhino and orient them to follow the tubes.
Straight component:
Folded component:
It all works how it should, until I move the lines and rectangle inside rhino. The initial idea was to create rectangles at the tubes connections to give an orientation to the piece, and then just pick the lines from each one of the tubes as guides for the piece. After that didn’t work, I tried to just move the rectangle and lines and align them with the lines of the tube, but also here everything breaks.
Broken component after rotating 90°:
I also tried to internalise the starting position of the rectangle, and then orient it to the new position after I move it, but everything is still breaking.
What shoult I do to just be able to select the 2 curves that I need and have the shape adapting to them?
Here is the file (sorry for the mess):
InnerPiece.gh (108.2 KB)