Commit Graph

29101 Commits

Author SHA1 Message Date
Russell Johnson
cb7c8d8458 Path: Improve comments and docStrings 2021-07-24 11:00:17 -05:00
Russell Johnson
1b856e9cfb Path: Delete dead code and comments 2021-07-24 10:59:43 -05:00
sliptonic
a40812dfbf 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
d2c170a929 Path: fix grbl --return-to placement 2021-07-23 16:48:30 +02:00
Russell Johnson
3311bb6df3 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
93a23bc64a Merge branch 'FreeCAD:master' into master 2021-07-21 15:33:44 +02:00
GUAN Xin
dab4168008 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
db1a342853 [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
5f5b3d9b67 Merge pull request #4446 from Schildkroet/deburr_improve
[0.20][PATH] Deburr improve
2021-07-20 12:29:31 -05:00
川島和津実
5bef06f67a Merge branch 'FreeCAD:master' into no-filename-encode 2021-07-20 21:21:19 +08:00
GUAN Xin
0fddf33923 Revert "Start: Properly hash thumbnail filenames"
This reverts commit c4a8316074.
2021-07-20 21:19:41 +08:00
Bernd Hahnebach
c4a8316074 Start: Properly hash thumbnail filenames 2021-07-20 21:11:24 +08:00
Bernd Hahnebach
31fd5be0c4 FEM: calculix writer, use generic elset variable names 2021-07-20 09:54:49 +02:00
Bernd Hahnebach
f4275adfed FEM: mesh set getter, use ccx independent method names 2021-07-20 09:54:42 +02:00
Bernd Hahnebach
a98ebfde6e FEM: mesh set getter, use ccx independent variable names 2021-07-20 09:54:35 +02:00
Syres916
998e462fcf [Gui] Transform Tool simplify changes as per...
...@0penBrain's feedback
2021-07-20 07:53:33 +01:00
Syres916
202f0286d8 [Gui] Transform Tool change parameter...
...location
2021-07-19 16:17:11 +01:00
川島和津実
c6cb3f6a21 Merge branch 'master' into shutil-no-which 2021-07-19 17:17:36 +08:00
GUAN Xin
75251151ff 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
166f5e7a4b FEM: material task panel, raise max possible young's modul value 2021-07-19 07:50:04 +02:00
marioalexis
b1a534930f Draft: Enable multiple selection for dumb task dialog in Modification commands 2021-07-19 02:45:17 -03:00
Syres916
a049b9118b [Draft] gui_utils Coin import addition 2021-07-18 19:52:31 +01:00
Zolko-123
67e803ba2c Merge branch 'FreeCAD:master' into master 2021-07-18 16:54:29 +02:00
Bernd Hahnebach
241a6a4eac FEM: tasks and writer, use generic solver input writing method name 2021-07-18 14:47:50 +02:00
Bernd Hahnebach
efbe176691 FEM: writer base, typo 2021-07-18 14:47:43 +02:00
Bernd Hahnebach
a7caa50d38 FEM: mesh set getter, output print 2021-07-18 14:47:36 +02:00
marioalexis
fd6290566d Draft: Save last WP used 2021-07-18 02:07:59 -03:00
marioalexis
1b8a886770 Draft: Fix regression generated in commit 76c7aa3 2021-07-18 02:07:08 -03:00
Syres916
5e1ae4e72d [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
bbb557aab6 FEM: calculix writer, fix time output 2021-07-17 20:46:42 +02:00
Bernd Hahnebach
d0dbdf8bf3 FEM: make use of mesh data getter class for calculix solver and ccxtools 2021-07-17 20:46:36 +02:00
Bernd Hahnebach
afeb9b2305 FEM: calculix writer, use mat geo sets instead of ccx elsets 2021-07-17 20:46:29 +02:00
Zoltan Hubert
c4b6f36485 modified ViewProviderPart to show different icon for Assembly-Type 2021-07-17 19:46:17 +02:00
Dennis Björklund
4488a5f551 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
eb0646e532 Path: Remove unnecessary commented-out code blocks 2021-07-16 12:02:24 -05:00
Russell Johnson
baceccf3c7 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
3b392134eb Path: Add debug comments and comment out unused code 2021-07-16 11:54:13 -05:00
Russell Johnson
430116a186 Path: Fix relative paths for bit path attributes in library files 2021-07-16 11:54:13 -05:00
Russell Johnson
6db5c26b98 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
343afe9893 Path: Add internal comments to code 2021-07-16 11:54:13 -05:00
Russell Johnson
1e85f820b6 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
Russell Johnson
7d4b5f34cc Path: Remove Side assignment to Outside for full model profiles
The profile operation is forcing  cut side to `Outside` when profiling whole models.  This change in code also allows for profiling `Inside` of entire models.  Apart from limiting profiling capabilities of entire models, this override could cause problems with profiling of selected faces or edges in very specific use cases.  Also, this fix removes the property assignment of a key control property within the execution code, which should not happen, apart from feedback properties.
2021-07-16 11:51:00 -05:00
Russell Johnson
76f4845d53 Path: Implement the Extensions feature with selected edges 2021-07-16 11:50:20 -05:00
Russell Johnson
6a68b848b5 Path: Correct the processing of selected edges
The recent Extensions upgrade for Adaptive disabled the processing of selected edges.  This commit re-enables that capability.  Issue raised in forum at, https://forum.freecadweb.org/viewtopic.php?f=15&t=60037
2021-07-16 11:50:20 -05:00
Syres916
be3fb31ea9 [Gui] Transform Tool, save Translation...
..and Rotation Increments in user config file.
See discussion https://forum.freecadweb.org/viewtopic.php?f=8&t=60195
2021-07-16 14:30:56 +01:00
Yorik van Havre
8b061cecc2 Draft: Fixed wrong placement of lines in shape2dview's cutface mode 2021-07-16 12:42:30 +02:00
Yorik van Havre
4869e040f8 Draft: Use different icon if object has AutoUpdate turned off 2021-07-16 12:24:26 +02:00
Yorik van Havre
146dcd75a9 Arch: Fixed windows invert hinge option 2021-07-16 12:22:56 +02:00
Yorik van Havre
573a295067 Arch: Fixed wrong numbering in arch axis in section mode 2021-07-16 12:22:15 +02:00
Bernd Hahnebach
6a76c7668d FEM: calculix writer, make use of the member objs everywhere 2021-07-16 08:11:21 +02:00