i want to make pipe joints as you see in the below image [4]. i have completed 3 steps in grashopper using fillet and pipe component. Now i want to select the filleted part to use for corner joint. is there a way to achieve this.
-
It’s grasshopper spelled with 2 s
-
With native components you could use deconstruct arc and use the output to filter the curves or
-
Create a vector from start to end of each curve and compare that to the vector you get out of evaluate curve at a midpoint. If the dot product is not 1 or -1, the segment isn’t a line.
-
Feed the segments into a line component. What is the output?
You could also use a small script on the exploded curve to separate the arcs from the linear segments:
ClassifyCrvSegs.gh (13.2 KB)
@martinsiegrist
I like your idea of filtering the arcs/lines with the parameter components! Never thought of doing that. The components go red, but it works fine…
thanks helvetosaur, this is exactly what i was wanting. i also want to become expert like yours, can you suggest some good resources to learn from… start from basic to advanced.
Well, (back in the day) I had the privilege of being able to have an in-person class on both scripting and Grasshopper from one to the greatest here, Luis Fraguada @fraguada (thanks again, Luis!).
These days classes are mostly online, there are a few here, more if you search the net. Your local reseller/trainer may also have courses.
Then there are all the tutorials (for example Grasshopper here).
There’s a lot of stuff out there. One of the best ways to learn is to pick a small project that interests you and try and automate some of the tasks in it. If you get stuck, ask questions here. That seems to be what you are doing with this post, so keep at it…
It is possible to add also Circles
as output for your Python
script? Thank you.
in common component finding the more-to-circles in a poly-curve could be done with a percentage of perimeter of fit circles:
ClassifyCrvSegs_01_002.gh (18.6 KB)
