Commit Graph

318 Commits

Author SHA1 Message Date
Zheng, Lei
0017c2c7c3 Add support for MacOS 2018-04-11 18:13:06 +08:00
Zheng, Lei
90fc3e368c gui: make AutoElementVis feature active by default 2018-04-11 18:09:26 +08:00
Zheng, Lei
bcaded5b43 system: fix AxialAlignment redundancy handling 2018-04-08 17:11:24 +08:00
Zheng, Lei
b5489b8a9b system: change auto relax behavior
New property is added to Assembly container named 'AutoRelax' to let
user decide. It is by default off. PlaneCoincident auto relax will be
always on regardless of this setting.
2018-03-31 07:56:41 +08:00
Zheng, Lei
6b98f8c7b6 utils: fix getElementShape()
The mover can now support whole object selection
2018-03-26 15:35:51 +08:00
Zheng, Lei
508fcd7713 assembly: support dropObjectEx API changes 2018-03-26 11:50:01 +08:00
Zheng, Lei
80bceefcc6 system: auto relax some redundant composit constraints
The order of appearance of the constraints determines how redundancies
are handled.

PlaneCoincident: the second PlaneCoincident of the same pair or parts is
relax to a 2d point horizontal or vertical constraint. The third and
onwards are ignored.  Any PlaneCoincident constraint will be ignored if
there are any existing PlaneCoincident or AxialAlignment.

PlaneAlignment: the second one is relaxed to two PointInPlane or
PointPlaneDistance constraint. The third one is relaxed to one
PointInPlane or PointPlaneDistance. The forth and onwards are ignored.
Any PlaneCoincident constraint will be ignored if there are any existing
PlaneCoincident or AxialAlignment.

AxialAlignment: ignored if there are any existing PlaneAlignment or
PlaneCoincident constraints
2018-03-24 12:12:22 +08:00
Zheng, Lei
91638cce8d mover: clear selection before activate mover 2018-03-24 12:12:22 +08:00
Zheng, Lei
78da480d56 py_slvs: allow redundant constraints 2018-03-24 12:12:22 +08:00
Zheng, Lei
10ca2f7710 gui: support tree view mouse over preselection 2018-03-24 12:12:17 +08:00
Zheng, Lei
8cf3c3f48b constraint: fix negative distance in composite constraints 2018-03-21 15:43:48 +08:00
Zheng, Lei
55ba2c2b3c constraint: tolerate empty lock constraint 2018-03-21 15:43:28 +08:00
Zheng, Lei
827d2c0f96 constraint: revert SketchPlane id 2018-03-06 10:57:22 +08:00
Zheng, Lei
56afab3245 Updated Readme 2018-03-05 17:22:00 +08:00
Zheng, Lei
f3001fba90 gui: sync with FC core API change 2018-03-03 07:54:32 +08:00
Zheng, Lei
34f407822d Added donate button to Readme 2018-03-02 10:21:35 +08:00
Zheng, Lei
a685320bc3 system: improve plane coincident/alignment offset 2018-02-18 12:50:45 +08:00
Zheng, Lei
0e7e94941a constraint: fix line plane parallel and perpendicular 2018-02-18 12:50:45 +08:00
Zheng, Lei
2dd360882a system: fix zero angle locking 2018-02-18 12:50:45 +08:00
Zheng, Lei
951a1f5b81 assembly: support sketch object internal geometries 2018-02-18 12:50:40 +08:00
Zheng, Lei
458022bba4 assembly: enhance workplane function
New toolbar command to create workplane in XZ and ZY direction. Allow
workplane to be created based on all type of elements. The same
AsmWorkplane object can now also represent a line or a point.
2018-02-07 17:39:00 +08:00
Zheng, Lei
1856a368d7 constraint: add colinear constraint 2018-02-06 17:39:08 +08:00
Zheng, Lei
6377bca0a4 system: fix SlvsSystem __init__ problem
Because swig generated __init__ never calls super, so we put it the
last if we want to use multi-inheritance.
2018-02-06 17:29:33 +08:00
realthunder
3be8ea4878
Merge pull request #9 from luzpaz/assem3-typos
Misc. typo fixes
2018-02-06 11:06:22 +08:00
luz.paz
fd1851a38b Misc. typo fixes 2018-02-05 05:28:09 -05:00
Zheng, Lei
f07c01cc81 Remove image making script
Scripts are move to a separate repository
https://github.com/realthunder/FreeCADMakeImage
2018-02-02 18:36:31 +08:00
Zheng, Lei
a5d953ef23 Make solver backend import error as warning 2018-02-01 20:57:26 +08:00
Zheng, Lei
7675310258 Fix readme wiki links 2018-02-01 15:33:47 +08:00
Zheng, Lei
3b7a98d64a Merge branch 'dev' 2018-02-01 12:02:34 +08:00
Zheng, Lei
96cc841033 Move contents of readme to wiki 2018-02-01 10:14:25 +08:00
Zheng, Lei
d4992a4706 mover: support tracing any geometry element 2018-01-29 17:16:21 +08:00
Zheng, Lei
6917d3897e constraint: impove sketch plane handling
Sketch plane is now implicitly added to any constraints that accepts an
optional workplane, i.e. those supports 2D constraint
2018-01-29 17:16:21 +08:00
Zheng, Lei
1e2cfc6447 constraint: improve draft circle handling 2018-01-29 17:16:21 +08:00
Zheng, Lei
ac483c686b utils: refine draft wire identification 2018-01-29 17:16:21 +08:00
Zheng, Lei
a2d639200f constraint: init constraint parameter
Add init() api to calculate the some of the constraints' parameter
(e.g. angle, distance, length, etc.) based on the existing elements.
This can reduce excessive movement when auto recompute is on.
2018-01-29 17:16:15 +08:00
Zheng, Lei
708668ed0b assembly: add missing transaction on auto recompute 2018-01-29 17:05:18 +08:00
Zheng, Lei
d2b3d8260d assembly: fix cases where property status is saved 2018-01-29 17:02:18 +08:00
Zheng, Lei
ac5194a013 constraint: auto label constraint object with type name 2018-01-28 06:14:17 +08:00
Zheng, Lei
a9b302c0ac assembly: no doc touch when auto changing element visibility 2018-01-27 18:01:55 +08:00
Zheng, Lei
a0339c1e5b gui: mute auto element vis exception when closing document 2018-01-27 18:01:27 +08:00
Zheng, Lei
a8f11a4a50 Add "Auto element visibility" command
When enabled, it will hide all AsmElement, and AsmElementLink, and only
shown then when they are selected, or a AsmConstraint object is
selected in the tree view
2018-01-27 12:15:05 +08:00
Zheng, Lei
363a8cfeba Fix constraint toolbar active checking 2018-01-24 18:08:20 +08:00
Zheng, Lei
21e8c4dd84 Support sketch plane in various horizontal/vertical constraint 2018-01-24 13:50:22 +08:00
Zheng, Lei
cc412bdc22 Add SketchPlane constraint for easy 2D sketch
The SketchPlane expects the first element to be a planar face/edge to
define a work plane for any following draft wire/circle/arc elements.
The 2D constrainted elements can either be inside the defining
SketchPlane constraint, or other constrains following the SketchPlane
in the constraint group.

Add a new SketchPlane to define a new work plane for any following
draft elements. Add an empty SketchPlane to undefine the work plane,
effectively making any following draft elements free in 3D space.
2018-01-23 17:32:20 +08:00
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
cd9a60c29d Updated slvs submodule 2018-01-19 14:10:34 +08:00
Zheng, Lei
06403848e2 constraint: added more icons 2018-01-19 14:01:10 +08:00
Zheng, Lei
2ae770b4f1 Update slvs submodule 2018-01-14 08:15:50 +08:00