here I would want the red part to be the black part as I move down
ps: I played with it a bit more (the code) and managed to get it working on both sides. But had to take out the gp.Constrain() part otherwise odd things happen when picking the end of curve 1. FilletCrvTest_modified2.py (15.5 KB)
edit: one more thing, when selecting curve 1 at the lower end, and then curve 2 at the upper end, the preview is ok, but curve 1 gets trimmed at the wrong end
instead of fillet, I managed to do that with an arc instead, with the added advantage that it also fillets parallel lines
btw @pascal there was a small bug in make_fillets() where you used 2 times the crv1 for parameters on both curves. This caused some flickering in some cases.
@pascal I uploaded a slight modified version above (same name) where I added code that makes the arc stuff also work when setting a value or hitting enter. Although it partially works on non planar edges, it will not work when entering/entering a value, since adding a fixed radius arc would depend on the filleting code, which fails on the non planar edges.
I had some fun with this, check it out:fillet_curves_deviations.py (2.2 KB)
It won’t yet work with curves that have max distances at their ends, but that should be easy to fix if this is what you are looking for… no trimming, but outputs arcs in both directions of the curves:
This is such an useful tool, just saved a lot of time by having the ability to quickly eyeball a bunch of fillets that needed to be traced - thanks again for that!
If you ever had time for more improvements, two pending suggestions are:
add Join Yes/No to join the filler arc with “arms” curves
this is probably harder, but ability to filler polyline segments would help a lot, for now just needed to explode everything first.
It should be promoted to regular Rhino tool - who wants to use the old Fillet now!? (except for the above two advantages)
I’m using this tool to eyeball how big of a radius I want, and then I want to type it in to get a nice and even number… however, when I do that and press enter, I get the following:
I have to say that the snapping is absolutely wonderful!
However, I do get a tangent radius on the upper end when I use the following script (sadly, it does not support a “flip” function): FilletCrvTest.py (13.0 KB) FilletCurves.rhp (21.5 KB)
The script I used was also from 1st of May, so looks like you had this one updated subsequently in the same day. It works properly now on the sample curves I posted earlier today. Thanks!
Another example of the wonderful snapping in this tool… I didn’t even realize that I could just select edges and it would automatically duplicate them and use them for me. Such a smooth user experience!
Perhaps, there could be an option to round to the nearest whole number, i.e. 7479 could become 7500mm or 7475mm depending on the rounding increment 100, or 25 respectively. That way, you would not have to type as much.
By the way, the feature request was added to the Youtrack, dated back to 1999.