Commit Graph

25945 Commits

Author SHA1 Message Date
wmayer
5d8dce4fed Part: [skip ci] use Gui::cmdAppDocumentArgs in ShapeFromMesh dialog 2021-10-03 16:46:32 +02:00
wmayer
06c6fecf2e Gui: [skip ci] add Gui::cmdAppDocumentArgs and support further string types with FormatString::str 2021-10-03 16:45:45 +02:00
Chris Hennes
5cc7d017cc Merge pull request #5081 from Roy-043/Draft-prevent-negative-snaprange
Draft: prevent negative snaprange
2021-10-02 14:05:30 -05:00
Abdullah Tahiri
1539467631 Sketcher: Constraint widget Multi Filter feature
================================================

This feature adds a new filter entry "Multiple Filters" in the combobox of the filter.

This enables to define a "Multiple Filter" based on the aggregation of individual filters. So it basically provides for a user defined filter based on constraint types.

This "Multiple Filter" defaults to "All Constraints", and can be defined using the button "..." next to the filter combobox.

The "Multiple Filter" works on the list of constraints, as any other filter, limiting the elements shown in the list to match the multi filter definition.

The "Multiple Filter" interacts with the visibility options as any other filter. This is, in visibility non-tracking mode, it does not change the visibility. The Buttons "Hide Listed" and
"Show Listed" can be operated in this mode as any other filter.

In visibility tracking-mode, it will adapt the visibility of the constraints in the 3D view to the "Multi Filter" definition (exactly as it would to any other filter with its own definition).
2021-10-02 18:21:23 +02:00
wmayer
1c9378d2aa Part: move code to create shape from mesh to dialog ShapeFromMesh 2021-10-02 07:09:29 +02:00
wmayer
1bb8b29e28 App: [skip ci] add overloaded constructor of DocumentObjectT 2021-10-02 07:05:37 +02:00
Chris Hennes
0983c569ed Merge pull request #5079 from Roy-043/Draft-fix-decimals-for-angular-dims
Draft: fix decimals for angular dims
2021-10-01 15:48:58 -05:00
Roy-043
878f97b234 Draft: prevent negative snaprange
Also fixed misspelled related in-command shortcuts.
2021-10-01 20:38:30 +02:00
wmayer
6ed0352a4d Part: for faster execution make sewing optional when creating shape from mesh 2021-10-01 19:29:49 +02:00
wmayer
62b20d6850 Part: [skip ci] make TopoShape::setFaces 30% faster 2021-10-01 15:23:46 +02:00
Roy-043
295de65e53 Merge branch 'FreeCAD:master' into Draft-fix-decimals-for-angular-dims 2021-10-01 11:29:55 +02:00
Chris Hennes
113b606c43 [Core] Add library dependency for boost date_time 2021-09-30 16:51:27 -05:00
Roy-043
412c041cbe Update units.py 2021-09-30 23:38:54 +02:00
sliptonic
0b21e78abb Merge pull request #5076 from sliptonic/master
[PATH] Fix bug with job object not found.
2021-09-30 15:16:53 -05:00
wmayer
a261249217 App: replace ctime() with boost's date/time functions in Application::logStatus() 2021-09-30 19:50:19 +02:00
wmayer
5ae444a49c Base: [skip ci] use PyNumber_Check instead of PyFloat_Check/PyLong_Check to check for numbers 2021-09-30 14:22:56 +02:00
sliptonic
08108b2f1b Black reformat 2021-09-29 16:51:00 -05:00
sliptonic
46eb7a50cf Job object doesn't exist in this context.
Derive output name in the output section or default if unknown
2021-09-29 16:51:00 -05:00
Chris Hennes
231a3b1d4d Mesh: remove unused variable in Nastran reader 2021-09-29 16:34:58 -05:00
wmayer
d22c70c9a4 Mesh: add method MeshAlgorithm::GetFacetsBorders 2021-09-29 22:33:45 +02:00
Chris Hennes
3904cbf291 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
595a0211d4 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
9ce6b0df94 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
9d7c5e48b0 Sketcher: Improve text of the constraint widget 2021-09-29 19:39:20 +02:00
wmayer
c702fd07eb Mesh: [skip ci] rename MeshAlgorithm::GetMeshBorder to MeshAlgorithm::GetFacetBorder 2021-09-29 19:38:52 +02:00
wmayer
210eac2a09 Mesh: improve function to fix points on edge 2021-09-29 19:32:18 +02:00
Chris Hennes
0bf885145f [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
c842b6a8c1 [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
6f20e3e4d8 Gui: remove QT_TR_NOOP from command group names and use "CommandGroup" as context string 2021-09-29 16:31:55 +02:00
wmayer
3edea9891f Sketcher: [skip ci] remove superfluous QT_TRANSLATE_NOOP from Sketcher commands 2021-09-29 15:46:06 +02:00
wmayer
f1431f06c9 Gui: [skip ci] support different context in Command::translatedGroupName 2021-09-29 15:44:44 +02:00
wmayer
76da77f80e Gui: add convenience function Command::translatedGroupName() 2021-09-29 15:25:46 +02:00
Chris Hennes
4ba39762cd Merge pull request #5069 from chennes/lgtmArchMiscFixes
[Arch] Fix LGTM warnings
2021-09-29 07:41:34 -05:00
Yorik van Havre
140e03301e Updated ts files 2021-09-29 14:32:12 +02:00
Yorik van Havre
9958072aa5 Merge pull request #5037 from chennes/fixMixedLanguageTranslationExtraction
[Tools] Refactor updatets to support two-lang mods
2021-09-29 14:24:09 +02:00
wmayer
5cff5654ca Gui: [skip ci] handle exception text as UTF-8 encoded string when saving failed 2021-09-29 14:03:51 +02:00
wmayer
7df49abba9 Base: [skip ci] pass the full file path to the FileException 2021-09-29 14:02:46 +02:00
wmayer
77b09a97f8 App: correctly handle UTF-8 encoded path names under Windows 2021-09-29 13:47:29 +02:00
Ajinkya Dahale
92b3a5430a [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
2b12fe5c1a 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
7921c3f5fa [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
1878898ad5 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
3922a6ac73 Mesh: detect points on edges 2021-09-28 22:30:21 +02:00
Abdullah Tahiri
086b1d2aac 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
b9dcac559c Sketcher: Python - enable using the setVirtualSpace command individually or by group 2021-09-28 20:07:41 +02:00
Abdullah Tahiri
7872d0b3bc Sketcher: Overload setVirtualSpace to allow setting a group of constraints 2021-09-28 20:06:52 +02:00
Chris Hennes
6391bebeb8 [Arch] Fix LGTM warnings 2021-09-28 10:29:45 -05:00
wmayer
4a47b98b16 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
1f6d3cb03b TD: [skip ci] fixes #issue 4755: Copying a section view segfaults 2021-09-28 13:37:43 +02:00
Yorik van Havre
c804cbbda7 Merge pull request #5062 from chennes/meshImproveNastranUnitTests
[Mesh] Improve Nastran unit tests
2021-09-28 11:45:16 +02:00