Reimplementing constraint solver
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Reimplementing constraint solver
Thanks for the report and indeed, best if you take a break for a while. Next development cycle will likely be FreeCAD 1.0 oriented and your work should fit nicely in it. Further thinking about it, you basically need to first re-implement all the 2D functionality, before tackling things like the 3D point-point distance constraint.
It's done when it is done, as for future planning. I somehow feel that the maximum amount of time, dedicated to FreeCAD 1.0 development cycle, should be 2 years. If in such time, or before, FreeCAD geometric constraints solver gets support for standard set of 3D constraints, then congratulation up front, to everybody that will participate in achieving such goal. If not, then likely it will take a couple of years more anyway, and whatever gets done on the improving 2D and extending to 3D side of things, still should be a nice foundation for the future.
It's done when it is done, as for future planning. I somehow feel that the maximum amount of time, dedicated to FreeCAD 1.0 development cycle, should be 2 years. If in such time, or before, FreeCAD geometric constraints solver gets support for standard set of 3D constraints, then congratulation up front, to everybody that will participate in achieving such goal. If not, then likely it will take a couple of years more anyway, and whatever gets done on the improving 2D and extending to 3D side of things, still should be a nice foundation for the future.
- adrianinsaval
- Veteran
- Posts: 5551
- Joined: Thu Apr 05, 2018 5:15 pm
Re: Reimplementing constraint solver
Responding here to your post in this thread to avoid offtopic, sorry if it doesn't belong here either
Is there any particular reason for this? would you be implementing this in your solver?
- DeepSOIC
- Veteran
- Posts: 7896
- Joined: Fri Aug 29, 2014 12:45 am
- Location: used to be Saint-Petersburg, Russia
Re: Reimplementing constraint solver
Hopefully.
Re: Reimplementing constraint solver
What an effort!!DeepSOIC wrote:...
Due to family matters I have not looked into the forum for almost a year, so finding this thread on top of my notifications today has been quite a surprise.
I have read through it. Yes the book is the one by Nocedal.
https://forum.freecadweb.org/viewtopic. ... al#p299499
I have the book in paper. A pdf version is running online.
Coincidentally, last summer I read half of that book, which is rather heavy for my math level. I intended to review the sketcher implementation.
In my mind was also the possibility of implementing multithreading to speed up solving. My approach was first to profile some use cases (mostly based on the size of the sketcher, and with focus in big sketches were a reasonable improvement should be achievable).
1) From a theoretical point of view, it is possible to speed up multithreading by using a multithreading option for Eigen for sparseQR decomposition. However, the options that were available at the time involved GPL code (as opposed to LGPL).
2) After "diagnose", there is this decoupling in subsystems, which I think could be solved in parallel. However, profiling should tell whether it makes sense at all.
I am now trying to reintegrate into FreeCAD. It will go slowly though...
If you need input from me just let me know, but you are simply better than me
- DeepSOIC
- Veteran
- Posts: 7896
- Joined: Fri Aug 29, 2014 12:45 am
- Location: used to be Saint-Petersburg, Russia
Re: Reimplementing constraint solver
Glad you're back! I hope your family is all right!
As you may have noticed, I somewhat screwed up the possibility of multithreading in ConstraintSolver by using PyHandle everywhere. It was necessary to allow python-defined constraints (which are not implemented yet). Not all hope is lost, but now it seems easier with current sketcher solver.
Re: Reimplementing constraint solver
Welcome back, abdullah! Hope things are going well for you and yours. You were missed
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: Reimplementing constraint solver
What the others said.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Reimplementing constraint solver
Thanks for your support. It is nice to find you here too. I have missed you.
Re: Reimplementing constraint solver
Welcome back, Abdullah !
@DeepSOIC, in BSpline interpolation, we have to solve a system of linear equations to compute the poles.
Will it be possible to use this solver in that context, outside of the sketcher ?
@DeepSOIC, in BSpline interpolation, we have to solve a system of linear equations to compute the poles.
Will it be possible to use this solver in that context, outside of the sketcher ?