yorik wrote: ↑
Wed May 08, 2019 12:25 am
if you have a wire that contains two points at the same location, many opencascade operations will fail.
Currently there Draft edit checks if this happens before applying transformation. Anyway i'll keep experimenting a bit with it.
I'm experimenting also with the selection observer, but this is taking a bit longer
With PR : https://github.com/FreeCAD/FreeCAD/pull/2188
i tried to refactor a bit the whole tool.
Before, everything was carried on inside two methods:
- proceed: did set editpoints
- update: apply the transformation to the object.
I tried to bring the most i could at the end of the class, dividing into "groups" what is supposed to work on the same object type.
In the meantime i discovered some bugs on dimensions that i'll try to correct as soon as i have some more time.
Also I tried to divide methods as much as i can, because i want to add the preview to Draft edit, so point list calculation should be separated from object updating. This will also help with multiple object editing.
At the moment just the bezier curve editing works with the preview, but who ever know what the future will bring. =)
@moult I tried subelement modifiers and it work great, i wonder how to integrate Draft Edit in your "D, E" command that works like a charm