D-W
(Przemysław Doliwa)
September 14, 2019, 6:30pm
1
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
dale
(Dale Fugier)
September 29, 2019, 11:55pm
2
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
D-W
(Przemysław Doliwa)
September 30, 2019, 6:17am
3
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);
}
gp.Get();
}
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.
D-W
(Przemysław Doliwa)
December 8, 2019, 7:52am
4
Please @dale put this on a pile as it is still broken.
dale
(Dale Fugier)
December 10, 2019, 10:36pm
5
1 Like
brian
(Brian Gillespie)
February 26, 2020, 12:20am
6
RH-56225 is fixed in the latest Service Release