Commit Graph

26171 Commits

Author SHA1 Message Date
luz paz
9f3a41887f Mesh: added attribution to @looooo in MeshFlatteningCommand.py 2021-10-20 08:46:23 -04:00
luz paz
6ff3dd2e57 Mesh: added license header to MeshFlatteningCommand.py 2021-10-20 08:30:36 -04:00
luz paz
742f06a983 Mesh: remove superfluous whitespace + Improve readability of code 2021-10-20 08:30:36 -04:00
luz paz
bc585031a3 Crowdin: Fixes to Mesh WB translations
Closes https://github.com/FreeCAD/FreeCAD-translations/issues/54  

Exposes Mesh -> 'Cutting' sub-menu
2021-10-20 08:30:36 -04:00
wmayer
cef86fb1ef Mesh: extend API to access edges of a facet via Python 2021-10-20 13:01:11 +02:00
luz paz
3b310cfdf2 FEM: Fix variable pHeatTransfering -> pHeatTransferring
Found via `codespell`
2021-10-20 06:25:34 +02:00
wmayer
5a55386919 Mesh: [skip ci] add unit tests for coplanar and intersecting triangles 2021-10-19 20:31:39 +02:00
wmayer
8d0d149b5b Mesh: add method to get intersection of edges 2021-10-19 19:22:21 +02:00
wmayer
0b63548ea1 Base: [skip ci] add method to check for null vector 2021-10-19 19:19:31 +02:00
wmayer
abf1cd1586 Mesh: [skip ci] update tri-tri-intersection 2021-10-19 15:14:36 +02:00
Yorik van Havre
bde8c9416e Draft: Allow to use QCAD pro as a converter to import/export DWG files 2021-10-19 13:55:24 +02:00
Chris Hennes
cf1a0f7598 Merge pull request #5114 from Roy-043/Daft-fix-cleanProjection
Daft: fix cleanProjection (used by Draft_Shape2DView and DXF export)
2021-10-18 23:48:06 -05:00
Chris Hennes
ae341e6012 Merge pull request #5116 from Roy-043/Arch-Fix-BuildingPart-typo
Arch: Fix BuildingPart typo
2021-10-18 23:47:28 -05:00
Roy-043
9a76d28ca7 Update ArchBuildingPart.py
ChildrenShapeolor -> ChildrenShapeColor
2021-10-18 16:26:57 +02:00
Abdullah Tahiri
0926a4148b Sketcher: Default Shortcuts
===========================

Following:
https://forum.freecadweb.org/viewtopic.php?p=539914#p539914

Following requests from OpenBrain and ChrisB:
https://forum.freecadweb.org/viewtopic.php?p=540015#p540015

Following request from M4X:

Recomendation to use "L" and "I" for vertical and horizontal distance constraints and "R" for radius.

https://forum.freecadweb.org/viewtopic.php?p=540049#p540049

https://forum.freecadweb.org/viewtopic.php?p=540011#p540011
2021-10-16 09:23:22 +02:00
wmayer
837de28e9e Mesh: expose trimByPlane to Python 2021-10-15 23:07:59 +02:00
Roy-043
7da42730e1 Update wires.py
typo
2021-10-15 22:18:17 +02:00
Roy-043
fa80866a0e Daft: fix cleanProjection (used by Draft_Shape2DView and DXF export) 2021-10-15 22:11:40 +02:00
wmayer
346ff3815d Web: handle system exit exceptions 2021-10-14 15:46:37 +02:00
wmayer
39e02ca195 Web: support synchronous TCP/IP communication 2021-10-14 15:07:05 +02:00
Yorik van Havre
0e7314068c Arch: BuildingParts autogrouping
Arch BuildingParts now gained a new set of View properties that allows
to define a "capture box". Subsequent Draft and Arch objects, or anything
else that uses Draft.autogroup(), will be automatically added to that
BuildingPart if they are inside the capture box.
2021-10-14 14:42:46 +02:00
Yorik van Havre
d95f085760 Merge pull request #4787 from chennes/addThemeSupport
[GUI] Add Preference Pack support
2021-10-14 12:41:06 +02:00
Yorik van Havre
f3ccc6d660 Merge pull request #5023 from marioalexis84/gui-encoding
Gui:  Harmonize encoding/decoding between view, property editor and command line.
2021-10-14 12:24:49 +02:00
Chris Hennes
da99ad39e9 Merge pull request #5113 from jack9603301/master
[Part] Fix null pointer error in sweep operation - Fixes #0004764
2021-10-13 15:26:45 -05:00
jack9603301
67df930184 [Part] Fix null pointer error in sweep operation
When the spine line of the sweep operation of the part workbench depends
on the Sketcher document, if the dependent spine line drawn by this document
is deleted afterwards, the path variable will get a null pointer.
Due to programming errors, the standard judgment of this pointer is ignored, resulting in a crash.
Call IsNull() of the OCC document to determine the legitimacy of the shape.
If it is empty, an error is reported.

Fixes #0004764
2021-10-14 03:54:44 +08:00
Chris Hennes
5af1b03285 Merge pull request #5112 from Roy-043/Draft-improve-hatch-matrix-algo
Draft: improved hatch matrix algo
2021-10-13 13:03:42 -05:00
Chris Hennes
620576ebd9 Merge pull request #5110 from 0penBrain/UserEditMode
[Gui] UserEditMode : new icons + naming + used mode memorization
2021-10-13 12:48:02 -05:00
Chris Hennes
2d10f5cac3 Merge pull request #5111 from chennes/spreadsheetCherryPickRealThunder
[Spreadsheet] Cherry-pick realthunder Round 1
2021-10-13 10:54:04 -05:00
Roy-043
1a94329d8e Draft: improve hatch matrix algo 2021-10-13 17:38:08 +02:00
wmayer
8c03581140 Mesh: [skip ci] add unit test for self-intersection 2021-10-13 17:29:18 +02:00
Abdullah Tahiri
0d16160f4e Sketcher: Code improvements for Constraint Widget
=================================================

This PR does not have added functionality. It contains only code improvements requiring at least c++17.

- It uses for the filters scoped enums (enum classes) instead of unscoped enums to avoid implicit conversion (c++11).
- It includes tools to deal with the necessary explicit conversions including type_t traits (c++14).
- It uses a couple of generic lambdas (c++17)
- It uses folding expressions to expand parameter packs (c++17)
- Refactoring of code
2021-10-13 15:28:30 +02:00
0penBrain
408982e709 [Gui] UserEditMode : last used mode is remembered between sessions 2021-10-13 14:58:05 +02:00
wmayer
1483cc023f Import: [skip ci] consistent use of curly braces 2021-10-13 14:28:06 +02:00
0penBrain
74e8f087ae [Gui] UserEditMode : new (better) icons for modes + SVG file naming improvement
Icons are provided by @bitacovir
2021-10-13 14:23:29 +02:00
Yorik van Havre
f598873b38 Merge pull request #5108 from Roy-043/Draft-fix-context-menu
Draft: fix context menu
2021-10-13 11:43:12 +02:00
abdullahtahiriyo
e38d06a3dd Merge pull request #5091 from chennes/sketcherMoveColorsToPrefs
[Sketcher] Make constraint label smaller and styleable
2021-10-13 11:34:11 +02:00
abdullahtahiriyo
4579b842fd Merge branch 'master' into sketcherMoveColorsToPrefs 2021-10-13 10:01:30 +02:00
Zheng, Lei
413a822a07 App: add signalChanged to Property
For more efficient tracking of single property changes
2021-10-12 15:47:50 -05:00
Zheng, Lei
ec27c67dc0 Spreadsheet: support displaying of integer 2021-10-12 15:14:31 -05:00
Zheng, Lei
93beb9fabd Spreadsheet: preserve component reference in cell 2021-10-12 14:58:36 -05:00
Zheng, Lei
51d814d222 Gui: handle exception in property item display 2021-10-12 14:49:15 -05:00
Zheng, Lei
127e8098e8 Spreadsheet: add a few context menu options 2021-10-12 14:34:58 -05:00
Zheng, Lei
2c6f621721 App: add expression built-in function str()
...for stringify
2021-10-12 13:42:10 -05:00
Chris Hennes
8fceac1762 [Spreadsheet] Clean up compilation warnings 2021-10-12 11:53:48 -05:00
Chris Hennes
24c3261424 Merge pull request #4277 from chennes/selection2021SelectionViewAutoShow
[GUI] Add option to auto-show selection view
2021-10-12 11:39:14 -05:00
Chris Hennes
dc3583e5df [Stylesheets] Add StatefulLabel and UrlLabel styles 2021-10-12 11:23:53 -05:00
Chris Hennes
23622c8e08 [Gui] Refactor StatefulLabel coloring 2021-10-12 11:23:13 -05:00
Chris Hennes
ccef385e26 Merge pull request #5099 from chennes/spreadsheetAutoReturn
[Spreadsheet] Refactor keyboard handling
2021-10-12 11:01:10 -05:00
Roy-043
482cf61025 Draft: fix context menu
Remove call to get_draft_line_commands.
Update the ContextMenu function. The items are based on the utilities menu now. And the context menu is the same for the Tree view and the 3D view.
2021-10-12 14:35:36 +02:00
Roy-043
f03dfe351e Draft: fix context menu
Remove the get_draft_line_commands function.
Update the def get_draft_context_commands function.
2021-10-12 14:32:36 +02:00