Commit Graph

25928 Commits

Author SHA1 Message Date
wmayer
44ffc4653f Base: [skip ci] use PyNumber_Check instead of PyFloat_Check/PyLong_Check to check for numbers 2021-09-30 14:22:56 +02:00
Chris Hennes
822bc86894 Mesh: remove unused variable in Nastran reader 2021-09-29 16:34:58 -05:00
wmayer
e1c5bfab1f Mesh: add method MeshAlgorithm::GetFacetsBorders 2021-09-29 22:33:45 +02:00
Chris Hennes
eb9f47048a Merge pull request #5075 from chennes/openSCADSandboxingFix
[OpenSCAD] Add ability to communicate over stdin/stdout (to support Snaps, etc.)
2021-09-29 14:29:57 -05:00
sliptonic
b5d6a796e2 Merge pull request #5070 from Russ4262/fix/pocket_shape_finish_pass
[Path] Reinstate fix for intermittent PocketShape finish pass
2021-09-29 13:43:18 -05:00
Chris Hennes
7339bb8382 Merge pull request #5071 from donovaly/PD-pad_along_fixes
[PD] fixes for padding along edge
2021-09-29 13:25:13 -05:00
Abdullah Tahiri
7ae611d86a Sketcher: Improve text of the constraint widget 2021-09-29 19:39:20 +02:00
wmayer
1d9ba918ac Mesh: [skip ci] rename MeshAlgorithm::GetMeshBorder to MeshAlgorithm::GetFacetBorder 2021-09-29 19:38:52 +02:00
wmayer
8ff9bbc930 Mesh: improve function to fix points on edge 2021-09-29 19:32:18 +02:00
Chris Hennes
62bd69e53d [OpenSCAD] Update STL unit test to warn on pipes
If OpenSCAD or FreeCAD is set up to use pipes for communication, assume
it's because one or the other is sandboxed. In that case, OpenSCAD will
not be able to import the generated STL file from FreeCAD, so don't try
to run that test.
2021-09-29 10:24:11 -05:00
Chris Hennes
2e504ab3b6 [OpenSCAD] Add ability to communicate via pipes
In 2021.01 OpenSCAD added the ability to read from stdin and write
output to stdout: this allows us to communicate with an OpenSCAD process
that does not have read/write access to the same directories that
FreeCAD does (for example, if one or the other is installed via a Snap
package).

This commit adds an additional preference to the OpenSCAD workbench
allowing the user to choose between communication methods, as well as to
optionally specify their own temporary directory for the data transfer,
for use in cases where their version of OpenSCAD is installed via Snap,
etc., but does not yet support the piped input and output.
2021-09-29 09:36:58 -05:00
wmayer
fe7f4c4be7 Gui: remove QT_TR_NOOP from command group names and use "CommandGroup" as context string 2021-09-29 16:31:55 +02:00
wmayer
6f6272f12b Sketcher: [skip ci] remove superfluous QT_TRANSLATE_NOOP from Sketcher commands 2021-09-29 15:46:06 +02:00
wmayer
d2f3cd1e70 Gui: [skip ci] support different context in Command::translatedGroupName 2021-09-29 15:44:44 +02:00
wmayer
bc57ba6027 Gui: add convenience function Command::translatedGroupName() 2021-09-29 15:25:46 +02:00
Chris Hennes
d06bee745b Merge pull request #5069 from chennes/lgtmArchMiscFixes
[Arch] Fix LGTM warnings
2021-09-29 07:41:34 -05:00
Yorik van Havre
77925c428e Updated ts files 2021-09-29 14:32:12 +02:00
Yorik van Havre
319b490c0c Merge pull request #5037 from chennes/fixMixedLanguageTranslationExtraction
[Tools] Refactor updatets to support two-lang mods
2021-09-29 14:24:09 +02:00
wmayer
cf58f30ed4 Gui: [skip ci] handle exception text as UTF-8 encoded string when saving failed 2021-09-29 14:03:51 +02:00
wmayer
dfe84ef123 Base: [skip ci] pass the full file path to the FileException 2021-09-29 14:02:46 +02:00
wmayer
ca05fc678b App: correctly handle UTF-8 encoded path names under Windows 2021-09-29 13:47:29 +02:00
Ajinkya Dahale
b7ea205c70 [App] Fix regression introduced by PR #4996
Files opened by running `freecad xxxx.FCStd` or similar relative paths could not
be saved because of new code introduced to create parent directories. See
https://github.com/FreeCAD/FreeCAD/pull/4996#issuecomment-922370077 and
https://forum.freecadweb.org/viewtopic.php?f=13&t=62319&p=534156#p534156.

This commit resolves the issue by ensuring the parent path is absolute while
saving. We would probably like to make sure the file name is itself stored with
absolute path, but there's a few problems
1. There may be other occurences where files are loaded with relative paths. So
having a check here is a good idea.
2. Files opened by `freecad xxxx.FCStd` somehow don't have the issue where
renaming parent directory throws an exception on save. Instead the file is saved
in the new location.
2021-09-29 13:35:02 +02:00
wmayer
3dd5438880 Mesh: [skip ci] when points lie exactly on a plane it can happen that a plane fit creates U,V vectors with NaN while W is valid 2021-09-29 12:35:28 +02:00
donovaly
fb49450c62 [PD] fixes for padding along edge
- handle custom direction like all other directions
- allow to view the direction vector for all directions, but only to edit for custom
- fix enabling of the length alongNormal option
- also fix a translation issue
2021-09-29 01:11:50 +02:00
Chris Hennes
217db02240 Merge pull request #5073 from mwganson/spreadsheet2
[Spreadsheet] add preference page and 3 import/export parameters
2021-09-28 16:14:45 -05:00
wmayer
0a9d08218a Mesh: detect points on edges 2021-09-28 22:30:21 +02:00
Abdullah Tahiri
aa7d8001a2 Sketcher: Improve the performance of showing/hiding constraints
===============================================================

Forum test and comments:
https://forum.freecadweb.org/viewtopic.php?p=536445#p536390

What?

Showing/hidding a large amount of constraints is very time consuming

Why?

Because SketchObject Constraints property was being set for each individual constraint

Solution is to use the new setVirtualSpace overload taking a list or a tuple, so that all the
constraints are set in a single operation.

In a Debug system with the test of the forum the time taken by the operation is reduced
from 7 minutes to around 2-3 seconds.
2021-09-28 20:08:46 +02:00
Abdullah Tahiri
490a6f1961 Sketcher: Python - enable using the setVirtualSpace command individually or by group 2021-09-28 20:07:41 +02:00
Abdullah Tahiri
bc080c1845 Sketcher: Overload setVirtualSpace to allow setting a group of constraints 2021-09-28 20:06:52 +02:00
Chris Hennes
06a0e1e923 [Arch] Fix LGTM warnings 2021-09-28 10:29:45 -05:00
wmayer
b8c1877133 PD: [skip ci] fix minor issues:
* don't need to clear an empty vector
* remove two code blocks that effectively do nothing (except of producing a warning :) )
2021-09-28 15:43:25 +02:00
wmayer
83ac792fb4 TD: [skip ci] fixes #issue 4755: Copying a section view segfaults 2021-09-28 13:37:43 +02:00
Yorik van Havre
a47afb71d4 Merge pull request #5062 from chennes/meshImproveNastranUnitTests
[Mesh] Improve Nastran unit tests
2021-09-28 11:45:16 +02:00
Yorik van Havre
04e98be597 Merge pull request #5064 from chennes/lgtmAddonManagerFixes
[Addon Manager] Silence LGTM warnings about urls
2021-09-28 11:37:09 +02:00
Yorik van Havre
33eb4b1a61 Merge pull request #5068 from FreeCAD-Tools/master
Request for remove more than 100 duplicate translations from Sketcher.ts
2021-09-28 11:35:30 +02:00
FreeCAD-Tools
82a17a72fe Merge branch 'master' into master 2021-09-28 10:26:41 +03:00
mwganson
0be3565dbe [Spreadsheet] add preference page and 3 import/export parameters 2021-09-27 22:05:36 -05:00
Russell Johnson
e018707307 Path: Strict application of Black code formatting to module file
This commit ONLY contains application of `Black` code formatting.  No other alterations have been made in this commit.
2021-09-27 20:53:09 -05:00
Russell Johnson
0242ada64e Path: Restore removal shape envelope buffer
This buffer application was removed in PR #4978 with removal of rotational code.

The buffer is required to provided adequate significant digit or rounding  in later processing of envelope in Path.Area().

NOTE:  I suggest separate `removalshape` envelopes  be created without the necessary `buffer` adjustment to allow for usage of the `removalshape` for subsequent REST type operations.
2021-09-27 20:53:09 -05:00
sliptonic
0afe01dc5e Merge pull request #5009 from Russ4262/fix/ramp_dressup
[Path] Fix for inactive ramp dressup base operation
2021-09-27 15:34:43 -05:00
sliptonic
fdfe0291fd Merge pull request #5050 from jimzim111/PathArray_Z
Path: PathArray translate copies along Z axis as it does along X/Y
2021-09-27 15:19:43 -05:00
sliptonic
c062384976 Merge pull request #4975 from Russ4262/cleanup/pathprofile
[Path] LGTM cleanup of PathProfile module
2021-09-27 15:16:20 -05:00
sliptonic
d4f4e25157 Merge pull request #4973 from Russ4262/fix/millface
[Path] Fix `Face Region` boundary shape usage and LGTM cleanup
2021-09-27 15:13:21 -05:00
FreeCAD-Tools
55d99d0fed Merge branch 'master' into master 2021-09-27 21:23:47 +03:00
Chris Hennes
9ad741249b Merge pull request #4685 from donovaly/PD-pad-direction-selection
[PD] add feature to select pad direction via an edge
2021-09-27 13:11:40 -05:00
Chris Hennes
bf8c3eb0e9 Merge pull request #5051 from 0penBrain/rotation
[Core] Rotation : improve gimbal lock handling
2021-09-27 10:23:12 -05:00
0penBrain
e1dc69f56d [Core] Rotation : improve gimbal lock handling
Tolerance copied from OCC "gp_Quaternion.cxx"
2021-09-27 16:52:21 +02:00
Chris Hennes
0b97a54e83 Merge pull request #3256 from 0penBrain/spinBoxDecPoint
[Gui] Allow dot as decimal separator for locales not using it as thousand separator
2021-09-27 09:41:15 -05:00
FreeCAD-Tools
67aeaba4c1 Merge branch 'master' into master 2021-09-27 16:31:32 +03:00
Chris Hennes
fb83c70669 Merge pull request #5067 from Roy-043/Draft-avoid-word-hatch-when-dealing-with-svg
Draft: avoid word "hatch" in preferences when dealing with SVG patterns
2021-09-27 08:30:56 -05:00