Better selection system for constraints in Sketcher
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Better selection system for constraints in Sketcher
Did anyone get to test the symmetric constraint well enough? How straightforward is the new mode I introduced in the constraint mode (first point -> symmetry point/line -> second point) as opposed to the old one (first point -> second point -> symmetry point/line)? Should I add a commit changing the behavior?
My latest (or last) project: B-spline Construction Project.
Re: Better selection system for constraints in Sketcher
I just wrapped up the constraint creation mode to the point I intend to (hopefully; barring bugs and clean-up). All but one commands now use the mode, and the following three features are added. I left out Snell's law, but I'm just not sure if its relevant to a majority of users.
Hopefully the features yet implemented are satisfactory to the users, and in case there's an issue with them, I'd be happy to try to correct it.
I did not put the option up in the toolbar, but one can always use the select-then-constraint method to get done quickly.jnxd wrote:
- Make the new mode relevant for external geometries
- Make the entire mode optional, possibly also put the option in the toolbar
- Sort out icons for each of the modes (talking with agryson about this)
The above things are sadly slightly more involved, and I would like to move on to some other issues. I don't know how much I would be able to help, but I would like to look at the performance issues in sketcher and the infamous bugs of partdesign.Continuing to the "nice to have" things.
- Box selection while in these modes
- Slightly different selection modes: when a key is pressed, change behavior. For e.g. horizontal/vertical distance constraint directly applies from single point to root, rather than first point to second point.
- An indicator beyond a changed cursor, for touch-screen users.
Hopefully the features yet implemented are satisfactory to the users, and in case there's an issue with them, I'd be happy to try to correct it.
My latest (or last) project: B-spline Construction Project.
Re: Better selection system for constraints in Sketcher
I don't care much about for which option we decide at the end. But it should be consistent at least. Now the behaviour of old and new mode is different and this should be fixed.jnxd wrote:Did anyone get to test the symmetric constraint well enough? How straightforward is the new mode I introduced in the constraint mode (first point -> symmetry point/line -> second point) as opposed to the old one (first point -> second point -> symmetry point/line)? Should I add a commit changing the behavior?
Re: Better selection system for constraints in Sketcher
There is a bug. For all the constraint commands the default value of ContinuousConstraintMode is set to false while in the settings it's set to true. I hope it's OK to set it to true by default.Make the entire mode optional, possibly also put the option in the toolbar
Re: Better selection system for constraints in Sketcher
Oh yes indeed it is. I had set it to true at first, but changed it to false to test a few things. Didn't occur to me to change it back and don't think it'd matter too much.wmayer wrote:There is a bug. For all the constraint commands the default value of ContinuousConstraintMode is set to false while in the settings it's set to true. I hope it's OK to set it to true by default.Make the entire mode optional, possibly also put the option in the toolbar
My latest (or last) project: B-spline Construction Project.
- DeepSOIC
- Veteran
- Posts: 7896
- Joined: Fri Aug 29, 2014 12:45 am
- Location: used to be Saint-Petersburg, Russia
Re: Better selection system for constraints in Sketcher
jnxd! I don't know if you did it, I just guess it was you. I can select geometry really quickly now! It used to clear selection if I selected too fast, and now it doesn't. So whoever that was, thank you !
Re: Better selection system for constraints in Sketcher
Not sure what you mean, but if I did it, it was just a side effect. Perhaps you used to do select external geometry while in the constraint mode? BTW, are you even talking about constraint mode? And is this all on the touchscreen of yours?DeepSOIC wrote:jnxd! I don't know if you did it, I just guess it was you. I can select geometry really quickly now! It used to clear selection if I selected too fast, and now it doesn't. So whoever that was, thank you !
My latest (or last) project: B-spline Construction Project.
- DeepSOIC
- Veteran
- Posts: 7896
- Joined: Fri Aug 29, 2014 12:45 am
- Location: used to be Saint-Petersburg, Russia
Re: Better selection system for constraints in Sketcher
No. I am still using the "select-select-constraint" workflow. The problem was, if I select-select too quickly, selection is cleared (I guess it has something to do with double-click time). Now it's gone.jnxd wrote: BTW, are you even talking about constraint mode? And is this all on the touchscreen of yours?
Yes I'm on touchscreen.
I just tested on 0.17.8361, which was before your efforts on this I think, and cannot reproduce the problem. So I think it might have been windows update not you.
Re: Better selection system for constraints in Sketcher
Yeah definitely not me.DeepSOIC wrote: I just tested on 0.17.8361, which was before your efforts on this I think, and cannot reproduce the problem. So I think it might have been windows update not you.
My latest (or last) project: B-spline Construction Project.