Commit Graph

14727 Commits

Author SHA1 Message Date
carlopav
441a186ce4 [Draft] Edit: add support for arc editing in App::Part 2020-01-08 15:20:36 +01:00
carlopav
b6423863cb [Draft] Edit: improved context menu and fix for arc editing
[Draft] Edit small bugfix
2020-01-08 15:20:36 +01:00
carlopav
9870ec27b1 [Draft] Edit bugfix
Fixed contemporary editing of Draft and Part objects.
Implemented better showTrackers and hideTrackers functions.
2020-01-08 15:20:36 +01:00
carlopav
5a63ad51b1 [Draft] Edit cleanup
Cleaned up imports a suggested by @vocx.
Also cleaned up various things inside the tool.
[Draft] Edit small change in imports


[Draft] Edit updated documentation
2020-01-08 15:20:36 +01:00
carlopav
b189fd6450 [Draft] Edit: set shortcut to D,E
Changed subelement highlight to S,E
[Draft] Edit bugfix


bugfix
2020-01-08 15:20:36 +01:00
carlopav
7e50cc7c7a [Draft] Edit: context menu for Bezcurve editing 2020-01-08 15:20:36 +01:00
carlopav
d3b9aeb7f6 [Draft] Edit bugfix
traker was not updated if endEditing function was called by numericInput
2020-01-08 15:20:36 +01:00
carlopav
e238a4b9fc [Draft] Context menu for EditTrackers
Initial support for context menu.
Menu is triggered by Alt+Click or by pressin E Key.
Menu is customized on the clicked object.
Supported functions ATM: addPoint, deletePoint.
2020-01-08 15:20:36 +01:00
vocx-fc
7721ca0157 Draft: new module for utility functions
Many auxiliary tools used by `Draft.py` can be defined
in another module. Many functions are moved to this module
so that `Draft.py` isn't as big and hard to maintain.

The following is a list of functions and attributes that were moved:
`stringencodecoin`, `arrowtypes`, `typecheck`,
`getParamType`, `getParam`, `setParam`, `precision`,
`tolerance`, `epsilon`, `getRealName`, `getType`,
`getObjectsOfType`, `isClone`, `getGroupNames`,
`ungroup`, `shapify`, `getGroupContents`,
`printShape`, `compareObjects`, `loadSvgPatterns`,
`svgpatterns`, `getMovableChildren`, `getWindows`,
`utf8_decode`.

Moreover, many of these functions were renamed
to comply better with PEP8 guidelines, particularly
the use of `snake_case`. For example, `getGroupNames`
is now `get_group_names`; `getMovableChildren`
is now `get_movable_children`.

Aliases are provided for the old names so that
other functions and classes that depend on these
won't break. The new names should be the official
programming interface, while the old names
should be deprecated at some point in the future.
2020-01-08 15:16:55 +01:00
vocx-fc
ab6976c5db Draft: add new command for Draft CircularArray
Added object, viewprovider, icon; gui command definition, task panel,
add command to InitGui; add callbacks, and delay system.
2020-01-08 15:16:07 +01:00
vocx-fc
3dd6f61ccc Fem: variable name 'children', not 'childs' 2020-01-08 11:54:34 +01:00
Bernd Hahnebach
b8f7e7e3f3 FEM: small code improvements (got forgotten on parent commit) 2020-01-07 23:10:33 +01:00
Bernd Hahnebach
bb6228dde0 FEM and Part: check if catched exception has an error message 2020-01-07 23:01:47 +01:00
Bernd Hahnebach
3b2bf60cdf Arch: import IFC, fix possible devision by zero 2020-01-07 16:38:28 +01:00
Bernd Hahnebach
41f442716b Part: compound filter, fix gui object delete if obj has no Base anymore 2020-01-07 14:56:52 +01:00
donovaly
8ed05f8a63 sort angles in the attacher dialog
- now the angles are sorted x-y-z
- added tooltips to clarify what e.g. the rotation axis of the yaw angle means (not only important for non-native speakers)
2020-01-07 07:40:11 -03:00
lorenz
51b5d81741 importDWG: remove comments 2020-01-07 07:35:14 -03:00
looooo
28ad3ea3cb importDWG: use subprocess.Popen instead of .call 2020-01-07 07:35:14 -03:00
looooo
ed5545c3ea importDWG: use libredwg's dwgtodxf converter if available 2020-01-07 07:35:14 -03:00
vocx-fc
1336381eec Draft: new command for Draft PolarArray
Added object, viewprovider, icon; gui command definition, task panel,
add command to InitGui; add callbacks, and delay system.
2020-01-07 07:18:39 -03:00
paullee0
52947e5adc [DraftGeomUtils] isReallyClosed(): Add back support to test if wire is Circle / Ellipse 2020-01-07 07:16:41 -03:00
Bernd Hahnebach
79dafa7c7e FEM: writer base, log improvements 2020-01-07 10:40:11 +01:00
Bernd Hahnebach
fb56d24c3c FEM: writer base, sort imports 2020-01-07 10:40:06 +01:00
Bernd Hahnebach
8a4e459019 FEM: writer base, add missing prints for force 2020-01-07 10:39:44 +01:00
Bernd Hahnebach
f2f11a2200 FEM: mesh tools, fix not found vertex for reference shape point search 2020-01-07 10:39:40 +01:00
Bernd Hahnebach
815f0a40cf FEM: result task panel, use same names as vtk results 2020-01-06 23:03:04 +01:00
Bernd Hahnebach
060433ef63 FEM: improve logs 2020-01-06 07:59:31 +01:00
Bernd Hahnebach
22071351c1 FEM: result task panel, reset result mesh on task panel init 2020-01-06 02:43:20 +01:00
Bernd Hahnebach
f71d018af1 FEM: result task panel, really reset result mesh 2020-01-06 01:07:50 +01:00
Bernd Hahnebach
11400c91e7 FEM: mesh view provider, expose some C++ methods to Python 2020-01-06 01:07:47 +01:00
Bernd Hahnebach
809042ee2c FEM: result mesh task panel, add comment 2020-01-06 00:23:49 +01:00
Bernd Hahnebach
3dc72c2d28 FEM: result task panel, reset mesh color on exit 2020-01-06 00:02:33 +01:00
Bernd Hahnebach
b567ed1893 FEM: gmsh tools, code formating 2020-01-06 00:02:26 +01:00
Bernd Hahnebach
ad39095847 Material: code formating, spaces 2020-01-06 00:02:20 +01:00
Bernd Hahnebach
54c4341beb Draft: workaround for error on document loading 2020-01-05 22:16:15 +01:00
Bernd Hahnebach
1b647ef725 FEM: material task panels, add some newlines on logs 2020-01-05 19:26:10 +01:00
0penBrain
ccc0064dd3 [Sketcher] Better ToggleActiveConstraint icon by @bitacovir 2020-01-05 15:32:55 +01:00
0penBrain
2aa19a3137 [Sketcher] Improve ToggleActiveConstraint icon (mainly increase disambiguation with ToggleConstraint icon) 2020-01-05 15:32:55 +01:00
Joshua Call
c14949b127 Rename Sketcher icons
Renamed Sketcher_AlterConstruction.svg to
Sketcher_ToggleConstruction.svg, and renamed the original
Sketcher_ToggleConstruction.svg to Sketcher_ToggleConstruction_old.svg
as per the directions of vocx in this forum post:
https://forum.freecadweb.org/viewtopic.php?f=21&t=42131&p=357725#p357725
2020-01-05 15:29:47 +01:00
sliptonic
404e258a7c Merge pull request #2861 from mlampert/bugfix/various
Path: various bugfixes
2020-01-04 14:32:02 -06:00
WandererFan
dedb03b76f [TD]fix Section label 2020-01-04 08:19:11 -05:00
Markus Lampert
81bbb0066d Removed dead code for debugging shortcut warnings. 2020-01-03 23:13:55 -08:00
Markus Lampert
824bbead6d Fixed removal of 2d objects from engrave ops 2020-01-03 23:03:43 -08:00
Markus Lampert
ce6242646e Added support for BaseShapes back into Engrave op 2020-01-03 20:00:44 -08:00
Markus Lampert
9f6714e930 Added support for flipping a BezierCurve edge 2020-01-03 19:00:15 -08:00
Markus Lampert
305d4236f8 Fixed engraving support for generic b-spline curves 2020-01-03 19:00:15 -08:00
Markus Lampert
bcc6c493ee Fixed extension generation for arcs if the length is larger than the arc radius and the direction is an inset. 2020-01-03 19:00:15 -08:00
Markus Lampert
2091ffd170 Fixed segfault if some extensions end up being not valid. 2020-01-03 19:00:15 -08:00
Markus Lampert
6ad9dc9df6 Enable loop detection if it /could/ succeed but don't actually calculate it until activated. 2020-01-03 19:00:15 -08:00
Markus Lampert
d4567b0c9e Sorting edges before making a wire is required for all edges to be included, issue #4219 2020-01-03 19:00:15 -08:00