Arc, Tangent - am I missing something?

I want a tangent starting from the middle of each curve.
I can do that for the curve on the right but not for the curve on the left.
Why?


BUG _Arc _Tangent.3dm (2.4 MB)

working here-


Hi @theoutside , you see this small white line that marks the fact that I will start a tagent right from the Mid?
It shows on the right curve but not on the left curve.
Do you see it in both cases?

I do with osnaps mid = on.

White line shows on near.

disappears on mid

@theoutside,

I see the same issue as @Bogdan_Chipara, running the latest public SRC: white line vanishes at Mid Osnap. Same in the latest WIP.

However, if you change the curve degree from 2 to 3, the white line stays visible through the Mid Osnap. Or after scaling the curve, the white line stays visible.

Turn off the Mid Osnap and the white line stays visible. Turn the Mid Osnap on and the Osnap tooltip off and the white line vanishes at the Osnap.

Regards
Jeremy

ok, thanks for more detail on that-

@theoutside , based on @jeremy5 description of this issue I would mark it as a bug.
If fixed it would help me a lot, since I have hundreds of curves to work with. Thanks!

reported here-

RH-91881 tangent tracking line disappears

@theoutside
Is not only that the tracking line disappears, I also cannot start my tangent line from the middle.

@jeremy5 are you seeing that too? i can start mine here-

You can see the difference between the right crv and the left crv :

Yes, you either turn off Mid and don’t know precisely when you are there, or turn it on and lose the tangential directionality of your line, so either way you cannot be accurate.

However, as a reasonable workaround you can use the PointOnCurve option for the start point and that shows the white line at the Mid Osnap.

@theoutside , @jeremy5 this is getting even more strange. The issue is not related to the curve degree! It might be related to the position of the curve in the rhino space. Please check the video below:

I copy the curve on which I could not get the mid point with tangent and when i rotate it, the mid point suddenly works with the tangent option.

Being far from origin could be a factor. If you simply copy the arc to the origin without rotating then the tangent marker appears at the Mid Osnap. Indeed, if you move the arc approximately 1/4 of the way to the origin it does.

But FTAOD, even far from origin as your arc is, Rhino shows the tangent marker at End, Point, Quad and Knot Osnaps on it perfectly well, so that may be a red herring.

Incidentally, if you snap a point to the Mid Osnap, Rhino will oscillate between showing the tangent marker correctly when the label reads ‘Point, Mid’ and not showing it when the label reads ‘Mid, Point’!

All this is highly confusing @jeremy5 . Some might not know how to use this tool at all because it runs into so much trouble. It really needs some proper debugging.

Yeah, moving it closer origin seems to solve it. The geometry is about 1800000mm = 1.8km (!) from origin with tolerance set to 0.001 mm. That’s quite extreme. (Although lowering the tolerance apparently has no effect on the bug)

@SimonR It might not be a far from origin issue. In my last video you see that I copy the curve close to it’s initial position (which is far away from origin) and all of a sudden it works.

I also managed to sometimes fix it or even move the issue from one curve to the other by moving it a bit but still far from the origin.

I was thinking that it could be that far from origin, the behavior gets unpredictable because of floating point precision (sometimes the error caused by rounding would be too big, sometimes not). Close to the origin, rounding never causes a problem. I could be totally wrong of course.

Thanks for participating in this discussion. Tolerance is a topic I discussed also with @Gijs … it’s tricky.