I have been coding in breaks lately.
Because I can not engage in long meaningful discussions of important topics (like the solver ones), I have started coding some of the features I would like to see in the sketcher. Creation of symmetric elements (together with copy in sketcher and array in sketcher) is one of them and the subject of this post.
What is this?
It creates the geometric elements (and constraints) symmetric to the selected ones with respect to the last selected line (axis) or point.
What is the status?
Practically untested. I am using an old slow laptop 32 bits with limited memory, extra slow and it goes out of memory when debugging after stalling while swapping...
What do I seek?
- Show the feature. Let you play with it. I am sure you will come with problems and change requests and other ideas...
- An icon?
What can you expect from me?
- I will read the forum (provided I have time, I have had it so far).
- I will try to participate in the discussion (provided I have time).
- You can not expect the usual "tomorrow is solved" at this time.
So, I created the left side, selected everything with a box selection (it is programmed to ignore the extra vertex belonging to the edges), unselected the "origin" (that gets selected with the box), selected the vertical axis, and hit that beautiful cross showing that no icon is available. Then I got the right part.
Does it support all the constraints?
No, directional constraints (angle, distanceX, distanceY, SnellLaw), tend to break the symmetry and I have not found a nice way of handling them (yet?). The rest should more or less work, report any misbehaving.
The code is in here:
https://github.com/abdullahtahiriyo/Fre ... 687c901a55