-
-
Notifications
You must be signed in to change notification settings - Fork 82
Description
Is your feature request related to a problem? Please describe.
Currently free-draw suffers when trying to draw something at small scale, due to the optimization attempts that determine when new points get added to the polygon.
Describe the solution you'd like
Kruptein has mentioned that they would like to eventually turn the free draw tool into something that creates a bitmap instead of a polygon. However I think using polygons for free-draw still has benefits and can be made more usable without killing performance, and even if it later becomes an "alternate" option for the draw tool.
Currently:
The current iteration tries to minimize the amount of points needed by checking if certain A-B-C points the A-C line is close enough to the A-B and B-C line and if so removes the B point.
@Kruptein
Basically, use the speed of mouse movement to determine what the threshold should be for a new point. The last, say, 10 ticks of mouse movement would be stored, and if the mouse has been moved less zoom-accounted distance than the threshold decreases and drawing consequently makes more points, while if the mouse is being moved over larger distances, less points are created (probably up to a threshold maximum).
Describe alternatives you've considered
Just have bitmap, and people who like using free-draw to create walls quickly that they then edit will just have to use the polygon tool.
Additional context
These modifications to polygon drawing may be more work than they are worth.
While I think this would be an intuitive behavior which would lead to easy polygon drawing, I'm not confident about that. And given that this kind of thing is very much about feel (and even if viable, would need a lot of number tweaking until it feels good), it's hard to know if the UI choices here are good options until the behavior actually exists.