there seems to be a bug in the DrawPoint method using Rhino 8.
I am using the method in a OnDynamicDisplay of a GetPoint class which i override, to draw a transparent circle at the mouse cursor.
Here is how it used to look in Rhino 6 and 7. You see a transparent filled circle with red outline which is drawn over a black diagonal line. The line is also drawn in the OnDynamicDisplay method:
If i do this in Rhino 8, the black diagonal line is not drawn properly when the cursor is moved over the line, also the red outline of the circle is not drawn with it’s 2 thick pixel width, it’s only barely visible:
To reproduce it, see attached example script, please run in Rhino 7 and 8 for comparison:
If you change the strokeWidth to 20 in above script, you can see that it has no effect in Rhino 8 while it works in Rhino 7. You can also reproduce the transparency bug by using the simpler version of DrawPoint in Rhino 8 which has less overloads:
c = Color.FromArgb(50, Color.White)
e.Display.DrawPoint(e.CurrentPoint, Rhino.Display.PointStyle.Circle, 40, c)
@clement I do see the transparency issue here, but I’m not seeing the circle thickness issue… It shows up as 2 pixels here, and if/when I change the strokeWidth to 5, I get 5 pixel width… so that seems to be working (at least with the latest inhouse 8.5 build).
I’ll look into the transparency issue, but if I can’t reproduce the thickness issue, I’m not sure what I can do about it…but I’ll keep digging.
I doubt it…what’s more likely is that you have a setting somewhere that’s causing line thicknesses to change mid-command, and they’re not getting restored prior to flushing the wire cache…which ends up drawing your wires at whatever thickness was set just before the flush… That’s just a WAG, but more plausible.
You can try 8.5 and see if it’s fixed…that would save me/us a lot of time trying to dig into it…but if 8.5 still shows this for you, then we need to dig into all the other scenarios my first paragraph eludes to.