[BUG] v6 Display PointStyle not filled with white

I occurred an issue when drawing points during dynamic draw (Edit: also in the normal pipeline override it doesn’t work) non of control point styles are filled with white inside - https://developer.rhino3d.com/api/RhinoCommon/html/T_Rhino_Display_PointStyle.htm

Let’s limit to square ones with value 1 - below line gives fully black square:

e.Display.DrawPoints(points, PointStyle.ControlPoint, 3, Color.Black);

Round ones (value 5) are the same. Not sure who I should mark here. @stevebaer @dale

Hi @D-W,

Can you provide sample code that demonstrates the problem? Perhaps a screen shot of what your getting and what you want to achieve would also be helpful.

– Dale

Hi @dale

Try this simple example:

var corners = someObject.GetBoundingBox(true).GetCorners();
var displayStyle = (Rhino.RhinoApp.Version.Major > 5) ? (Rhino.Display.PointStyle)5 : (Rhino.Display.PointStyle)1;

using (Rhino.Input.Custom.GetPoint gp = new Rhino.Input.Custom.GetPoint())
    gp.PostDrawObjects +=
        (sender, e) =>
            e.Display.DrawPoints(corners, displayStyle, 3, System.Drawing.Color.Black);

In v5 its ok:

In v6 i’m getting this (it happens for both square and round ones) no white center:

I want to get the white centers to add visual clearance to a custom picker.

Please @dale put this on a pile as it is still broken.

I’ve logged the issue here - https://mcneel.myjetbrains.com/youtrack/issue/RH-56225.

– Dale

1 Like

RH-56225 is fixed in the latest Service Release