Russell Johnson
ffa74e0aa5
Path: Refactor path array algorithm into independent PathArray class
...
New class is `obj` independent allowing for greater scripting capability.
Added missing `onDocumentRestored()` method to ObjectArray class to handle property visibility and edit modes, per standard Path operations on document restoration.
2021-07-24 22:29:18 -05:00
Russell Johnson
249b3f5133
Path: Close Adaptive geometry source file upon unit test completion
2021-07-24 21:59:05 -05:00
Russell Johnson
23b4c1363b
Path: Re-enable all disabled Path unit tests
2021-07-24 21:39:25 -05:00
Russell Johnson
161388b522
Path: Fix multi-OS path issue.
...
Not all operating systems use the same path scheme - the slash direction. The issue fixed with this commit exists in other parts of the Path workbench
2021-07-24 16:46:49 -05:00
Russell Johnson
c13f42bd89
Path: Code cleanup, remove duplication, fix obj.removalshape shape
2021-07-24 11:57:53 -05:00
Russell Johnson
aa76499a53
Path: Fix bug with inaccurate Task Panel values upon new op creation
...
Path: Fix bug with inaccurate Task Panel values upon new op creation
2021-07-24 11:57:53 -05:00
Russell Johnson
1939ea7be4
Path: Fix readonly lockout bug with blank expression
2021-07-24 11:57:53 -05:00
Russell Johnson
b4d90562c1
Path: Prioritize self.parent and self.obj declarations
...
This prioritization and conversion of `self.parent` declaration allows for removal of the `setParent()` method.
2021-07-24 11:57:53 -05:00
Russell Johnson
e6d6301769
Path: Restore edge processing to Adaptive as in 0.19 release
2021-07-24 11:42:30 -05:00
Russell Johnson
6b822558e6
Path: Improve comments and docStrings
2021-07-24 11:00:17 -05:00
Russell Johnson
33650efbe8
Path: Delete dead code and comments
2021-07-24 10:59:43 -05:00
sliptonic
9d5c9cdc80
Merge pull request #4917 from Russ4262/fix/Adaptive_process_edges
...
[Path] Adaptive: Correct the processing of selected edges
2021-07-23 12:35:08 -05:00
ho-ho-ho
4d0b034a2d
Path: fix grbl --return-to placement
2021-07-23 16:48:30 +02:00
Russell Johnson
6108f9982e
Path: Add some Adaptive unit tests
...
Also includes alphabetical sort of affected lists in CMakeLists and TestPathApp files.
Unit tests focus around feature selection capabilities.
2021-07-22 23:16:53 -05:00
Zolko-123
85cda3573c
Merge branch 'FreeCAD:master' into master
2021-07-21 15:33:44 +02:00
GUAN Xin
9d5e707350
Start: Properly hash thumbnail filenames
...
Image filenames should be encoded as URI before being hashed.
Also assume that filenames are already utf8 because the community
has been advertiseing utf8 usage since the beginning of this centry.
Calling .encode("utf8") on strings that are already in utf8 simply
raises the following exception:
UnicodeDecodeError: 'ascii' codec can't decode byte ...
for non-ascii (already utf8) strings.
It's in fact impossible to precisely determine pathname encoding
because different components within the path may have different
encodings, e.g., a utf8 directory name followed by an MBCS filename
is valid on Linux native filesystems.
It's the user's responsibility to keep the iocharset consistent.
2021-07-21 16:49:06 +08:00
0penBrain
1dab35b01d
[Gui] Send 'mainWindowClosed' signal before window settings are saved
...
So macros/add-ons can eventually restore things
2021-07-20 20:55:04 +02:00
sliptonic
c71c022b15
Merge pull request #4446 from Schildkroet/deburr_improve
...
[0.20][PATH] Deburr improve
2021-07-20 12:29:31 -05:00
川島和津実
a165c4a805
Merge branch 'FreeCAD:master' into no-filename-encode
2021-07-20 21:21:19 +08:00
GUAN Xin
25e6576118
Revert "Start: Properly hash thumbnail filenames"
...
This reverts commit 7e1f48369884647d1bc9eb4e9d7e2062b2897c6c.
2021-07-20 21:19:41 +08:00
Bernd Hahnebach
a0480a1376
Start: Properly hash thumbnail filenames
2021-07-20 21:11:24 +08:00
Bernd Hahnebach
73d819a1e1
FEM: calculix writer, use generic elset variable names
2021-07-20 09:54:49 +02:00
Bernd Hahnebach
60739e0b22
FEM: mesh set getter, use ccx independent method names
2021-07-20 09:54:42 +02:00
Bernd Hahnebach
9e89a16078
FEM: mesh set getter, use ccx independent variable names
2021-07-20 09:54:35 +02:00
Syres916
de3c304481
[Gui] Transform Tool simplify changes as per...
...
...@0penBrain's feedback
2021-07-20 07:53:33 +01:00
Syres916
564c3692b3
[Gui] Transform Tool change parameter...
...
...location
2021-07-19 16:17:11 +01:00
川島和津実
e8d2e35e42
Merge branch 'master' into shutil-no-which
2021-07-19 17:17:36 +08:00
GUAN Xin
bab49f88ef
Some shutil don't have the .which method.
...
Directly calling subprocess.Popen without checking the presence of the
program is the optimal solution because:
1) Avoids race condition, where the program disappears between the
check and the Popen call.
2) Popen will raise exception if the program is absent anyway,
no race condition here.
2021-07-19 14:12:03 +08:00
Bernd Hahnebach
a6e74bf8f0
FEM: material task panel, raise max possible young's modul value
2021-07-19 07:50:04 +02:00
marioalexis
b25b7f142d
Draft: Enable multiple selection for dumb task dialog in Modification commands
2021-07-19 02:45:17 -03:00
Syres916
b0c5f62672
[Draft] gui_utils Coin import addition
2021-07-18 19:52:31 +01:00
Zolko-123
215ad586d2
Merge branch 'FreeCAD:master' into master
2021-07-18 16:54:29 +02:00
Bernd Hahnebach
2aeba3674a
FEM: tasks and writer, use generic solver input writing method name
2021-07-18 14:47:50 +02:00
Bernd Hahnebach
21889b16d5
FEM: writer base, typo
2021-07-18 14:47:43 +02:00
Bernd Hahnebach
c62334412a
FEM: mesh set getter, output print
2021-07-18 14:47:36 +02:00
marioalexis
23e92e038b
Draft: Save last WP used
2021-07-18 02:07:59 -03:00
marioalexis
1b7a703519
Draft: Fix regression generated in commit d3595bf
2021-07-18 02:07:08 -03:00
Syres916
39c450c909
[Draft] gui_utils Minor bugfix on change to...
...
...Draft Wb with grid enabled. Please backport to 0.19 branch, see discussion https://forum.freecadweb.org/viewtopic.php?f=3&t=60251
2021-07-17 21:52:30 +01:00
Bernd Hahnebach
e172c07534
FEM: calculix writer, fix time output
2021-07-17 20:46:42 +02:00
Bernd Hahnebach
fcb91f36af
FEM: make use of mesh data getter class for calculix solver and ccxtools
2021-07-17 20:46:36 +02:00
Bernd Hahnebach
895c817f56
FEM: calculix writer, use mat geo sets instead of ccx elsets
2021-07-17 20:46:29 +02:00
Zoltan Hubert
78e5b1e5b7
modified ViewProviderPart to show different icon for Assembly-Type
2021-07-17 19:46:17 +02:00
Dennis Björklund
129d4ead4a
Set default keycodes for 3dconnexion SpacePilot Pro
...
These keycodes matches what my device generate using
spacenavd in Fedora 33.
The old xml definition define two operations on the same KeyCode, one
for short press and one for long press. That doesn't work at all on my
system and the SpacePilot Pro device generate separate KeyCodes for
short presses and long presses.
2021-07-17 13:40:06 +02:00
Russell Johnson
544a87e235
Path: Remove unnecessary commented-out code blocks
2021-07-16 12:02:24 -05:00
Russell Johnson
44b82bfda9
Path: Correct tuple lengths in return values
...
PathAreaOp needs tuples of three items, after rotational code purge. This module was missed for tuple length adjustment.
2021-07-16 12:02:24 -05:00
Russell Johnson
16489777d2
Path: Add debug comments and comment out unused code
2021-07-16 11:54:13 -05:00
Russell Johnson
aec0bb1329
Path: Fix relative paths for bit path attributes in library files
2021-07-16 11:54:13 -05:00
Russell Johnson
71f8007bab
Path: Fixes #0004647 , relative shape file locations
...
This solution restricts relative shape files to filename only within the toolbit file.
2021-07-16 11:54:13 -05:00
Russell Johnson
b6b08a5a2e
Path: Add internal comments to code
2021-07-16 11:54:13 -05:00
Russell Johnson
5b83cece9a
Path: Add tools README.md file to tools working directory on install
...
This code copies all files in the default (program install location) Path\Tools folder to the user's working tools folder when they setup the ToolBit working directories for the first time.
2021-07-16 11:54:13 -05:00