Commit Graph

21 Commits

Author SHA1 Message Date
Zheng, Lei
c56a9d85d7 Add mover support for draft wire and circle
* Draft wire points can be dragged individually.
* Draft wire individual edge can be moved and rotated.
* Draft circle/arc can be moved and rotated by dragging edge or face.
* Draft circle/arc radius can be changed by dragging vertex
* Draft arc first/last angle can be changed by dragging end points
2018-01-21 10:07:38 +08:00
Zheng, Lei
b087200e50 Add support for draft circle/arc
When added to an assembly, a normal part object has six degrees of
freedom, three positional and three rotational. A draft circle has one
additional dof, its radius. And a draft arc has three additional dof,
radius, first angle and last angle.
2018-01-20 16:36:51 +08:00
Zheng, Lei
05595e3f41 Add support for draft wire
Special treatment for non-closed-or-subdivided draft wire object
directly added into part group.  Instead of constraining on the object
placement, we shall constraint on individual points. In other word,
instead of making the draft wire's placement as free parameters, we
make the cooridnates of indvidual points as free parameters.
2018-01-20 16:36:38 +08:00
Zheng, Lei
92b42d2f71 assembly: improve autoSolve function 2018-01-08 11:53:41 +08:00
Zheng, Lei
76f3ed40d1 solver: fix sympy solver 2018-01-08 11:53:30 +08:00
Zheng, Lei
fb9ad1609d gui: fix assembly solve command
Fix selection detection, and undo/redo setup
2018-01-07 19:05:29 +08:00
Zheng, Lei
882faf9d53 assembly: improve auto recompute 2018-01-03 12:01:44 +08:00
Zheng, Lei
d2f88b969d assembly: change fixed part move behavior 2017-12-25 13:00:05 +08:00
Zheng, Lei
eb6519ff8c Refactor undo/redo with FreeCAD.setActiveTransaction() 2017-12-24 18:43:34 +08:00
Zheng, Lei
176817a635 Migrate to new style FC module 2017-12-07 03:14:13 +08:00
Zheng, Lei
eb06ef8fbd solver: solver rollback on failure while dragging 2017-12-04 20:25:35 +08:00
Zheng, Lei
61491fddca solver: fix solving linked part 2017-12-04 11:55:16 +08:00
Zheng, Lei
bd6635207b solver: ensure recompute before solving 2017-12-03 18:20:54 +08:00
luzpaz
9ae710b154 misc. trivial typos
Decided to quickly run `codespell` on the repo.
2017-11-19 19:11:56 -05:00
Zheng, Lei
398b1fad86 Add support for locking part on vertex or edge 2017-10-31 04:09:14 +08:00
Zheng, Lei
cc16b178bb FCADLogger: add hierarchy log level support
Each module now has their own logger, and can be controlled separately
2017-10-31 04:09:10 +08:00
Zheng, Lei
caca713d8d Create workbench 2017-10-31 04:08:23 +08:00
Zheng, Lei
59c2c7a35d Code refactor to prepare for multiple backend solvers 2017-10-31 04:08:16 +08:00
Zheng, Lei
9402201a5e More constraints working, and a few new ones
Working constraints:

PointPlaneDistance
PointInPlane
Angle
Perpendicular
Parallel

New constraints, which are composite of slvs native constraints:

PlaneCoincident
PlaneAlignment
AxialAlignment
MultiParallel
2017-10-31 04:06:36 +08:00
Zheng, Lei
d26b6286e2 Added icons, SameOrientation constraint working 2017-10-31 04:06:36 +08:00
Zheng, Lei
b5a91ec889 Basic function working
Tested PointsCoincident constraint
2017-10-31 04:05:01 +08:00