Commit Graph

34568 Commits

Author SHA1 Message Date
AgCaliva
2212e68a30 merge master via cli 2023-10-04 13:28:48 -03:00
AgCaliva
7af1ec589c solving new error related to cmake 2023-10-04 13:18:20 -03:00
Roy-043
c2484914f2 Draft: Update the Plane class (step 2)
Related issue:
#5603.

Previous PRs:
#10766
#10838

The remaining Plane class functions have been processed (some are unchanged):

`setup`
* Updated to use new functions.
* The `direction` etc. arguments are never used AFAICT.
* Added `from draftutils import gui_utils`.

`reset`
* Unchanged.

`setTop`
* Calls `super().set_to_top()`. That function does not use `align_to_point_and_axis` but specifies exact vectors for improved accuracy.
* `import FreeCADGui` already happens at the top of the file.
* The code block after `if FreeCAD.GuiUp:` was kept for now.

`setFront`
* Idem.

`setSide`
* This function sets the WP to the left side position, and not to the right side postion as in the Draft_SelectPlane command.
* Idem.

`getRotation`
* Revised.
* The function has an akward name as it returns a Placement.
* The special code for Arch active container is obsolete (was already commented out in other functions).

`getPlacement`
* The `rotated argument` is ignored now. It was only used in the context of the old `placement_from_face` algorithm. See `DraftGeomUtils.placement_from_face` for the new implementation.
* Calls `super().get_placement()`.

`getNormal`
* Basically unchanged.

`setFromPlacement`
* Revised to call `super()` functions.

`inverse`
* Unchanged.

`save`
* Unchanged.

`restore`
* More compact code, but basically unchanged.

`getLocalCoords`
* Calls `super().get_local_coords()` which does not rely on Draft code, but creates a matrix and returns `mtx.inverse().multVec(point)`.

`getGlobalCoords`
* Calls `super().get_global_coords()` which creates a matrix and returns `mtx.multVec(point)`.

`getLocalRot`
* Calls `super().get_local_coords()`.

`getGlobalRot`
* Calls `super().get_global_coords()`.

`getClosestAxis`
* Calls `super().get_closest_axis(vec)` which translates the vector to the WP coordinate system and then finds the closest axis by comparing the absolute coordinates of the vector.

`isGlobal`
* Not used anywhere AFAICT.
* Calls `super().is_global()` which also checks the `position` attribute.
* As before the function works without any tolerance.

`isOrtho`
* Not used anywhere AFAICT.
* The original algorithm did not work properly (there was a comment). All angles were measured relative to the global Y axis. If the WP was randomly rotated around that axis the function would still return `True`. The new algorithm, `super().is_ortho()`, uses rounded Yaw, Pitch and Roll angles to check for orthogonality.

`getDeviation`
* Not used anywhere AFAICT.
* Unchanged.

`getParameters`
* Calls `super().get_parameters()` which uses the local `_get_prop_list` function.

`setFromParameters`
* Calls `super().set_parameters()` which uses the local `_get_prop_list` function.

`_get_prop_list`
* Function used internally. Returns a list of attribute.
2023-10-04 14:40:33 +02:00
Roy-043
919f6e78e0 Draft: importSVG: handle viewBox in mm
Forum topic:
https://forum.freecad.org/viewtopic.php?t=81696
2023-10-04 11:03:36 +02:00
wandererfan
ed72c03df3 [TD]fix sketch location in view 2023-10-03 13:35:36 -04:00
wmayer
255e9eb434 Part: move CmdSelectFilter and friends from core to Part module 2023-10-03 19:26:28 +02:00
wmayer
77f88d39c3 Part: handle Part_SectionCut in WorkbenchManipulator 2023-10-03 19:26:28 +02:00
wmayer
6b6229e352 Part: handle Part_SectionCut in WorkbenchManipulator 2023-10-03 19:26:28 +02:00
wmayer
f48e79cd04 Part: add WorkbenchManipulator to Part module 2023-10-03 19:26:28 +02:00
wmayer
ac342af190 Gui: integrate WorkbenchManipulator 2023-10-03 19:26:28 +02:00
wmayer
690b892536 Gui: add class WorkbenchManipulator 2023-10-03 19:26:28 +02:00
wmayer
3fb37a6075 Import: Extend OCAF browser 2023-10-03 15:55:22 +02:00
wmayer
b42b2c85b4 Import: Support of colors of the glTF format 2023-10-03 15:42:30 +02:00
Florian Foinant-Willig
c214ca3dd9 TechDraw: Fix #10919 crash at geometry deletion 2023-10-03 09:01:42 -04:00
wmayer
826194e0bc Imoprt: move ExportOCAF2 to own source files
and move global functions to Tools class
2023-10-03 08:13:27 +02:00
Vincenzo Calligaro
d8636dd058 [Feature Request] [Core] [Preferences] [UI/UX] Buttons to reset default values of Pages/Groups (#10688)
* Gui: added buttons to restore the default values of the selected Tab or Group
 * reformatted texts for better translations
 * Morphed buttons from QPushButton to QToolButton
 * added code to resize items list and buttons on language change

Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>
2023-10-02 16:14:29 -05:00
Jacob Oursland
6c8856cd78 Update conda development dependencies. 2023-10-02 16:59:55 -03:00
Chris Hennes
6d37ef6609 Merge pull request #10844 from ppphp/remove_redundant_definition
[cmake] some definitions do not matter now
2023-10-02 14:20:49 -05:00
sliptonic
f02a1bb755 Merge pull request #7488 from FEA-eng/patch-5
PartDesign: change default behavior of Thickness tool to inwards
2023-10-02 13:13:40 -05:00
wmayer
885212d7d4 TD: fix compiler warning about unused class member (-Wunused-private-field) 2023-10-02 13:54:39 -04:00
Florian Foinant-Willig
60da0b80f7 TechDraw: fix extension lines of projected dimension 2023-10-02 13:53:01 -04:00
Florian Foinant-Willig
c8313874e4 TechDraw: Implements projected Length dimension 2023-10-02 13:53:01 -04:00
sliptonic
047334fd50 Merge branch 'master' into patch-5 2023-10-02 12:16:55 -05:00
sliptonic
d8a30d58ab Merge pull request #10897 from FreeCAD/revert-10857-centroid-g43
Revert "Add G43 tool height compensation to centroid post"
2023-10-02 12:15:34 -05:00
sliptonic
fe2829aa26 Revert "Add G43 tool height compensation to centroid post" 2023-10-02 12:12:37 -05:00
FEA-eng
d9090d45da Merge branch 'master' into patch-5 2023-10-02 18:29:38 +02:00
sliptonic
3ce68745dc Merge pull request #10509 from LarryWoestman/staging
Path:  Major refactoring of the export_common function.
2023-10-02 11:26:24 -05:00
FEA-eng
ec4d1a95d6 Merge branch 'master' into patch-5 2023-10-02 18:14:44 +02:00
FEA-eng
7f295fc77d FEM: Added more intuitive FEM solver icons (#10885)
* Update FEM_SolverControl.svg

* Update FEM_SolverRun.svg

* Update FEM_SolverStandard.svg
2023-10-02 17:42:17 +02:00
Yorik van Havre
6d4d5a6abd Merge pull request #10889 from Predko/SpreadsheetFileExtension
Spreadsheet: export CSV file extension by default
2023-10-02 17:37:07 +02:00
sliptonic
25d483a4ca Merge pull request #10857 from djmdjm/centroid-g43
Add G43 tool height compensation to centroid post
2023-10-02 10:33:36 -05:00
sliptonic
c9ff833132 Merge pull request #10835 from wwmayer/path_fix_warnings
Path: fix compiler warnings
2023-10-02 10:30:58 -05:00
sliptonic
acd40ef18f Merge pull request #10859 from jffmichi/fix_leadinoutdressup
Path: fix LeadInOutDressup incorrectly treating missing axis words as…
2023-10-02 10:14:45 -05:00
wmayer
74e658c78c Import: improve new STEP/IGES/glTF export function to support colors per face in headless mode
Fixes #10861
2023-10-02 17:10:34 +02:00
wmayer
83921f5f07 Import: fix legacy STEP/IGES/glTF export function to support colors per face
See issue #10861
2023-10-02 17:10:34 +02:00
wandererfan
0e2b3c0ecc [TD]Fix no dimensions from old document (#10880) 2023-10-02 09:39:27 -04:00
Yorik van Havre
97173e0280 Merge pull request #10838 from Roy-043/Draft-Update-the-Plane-class-(step-1)
Draft: Update the Plane class (step 1)
2023-10-02 11:36:38 +02:00
Przemo Firszt
fca9830c2a COPR - add MatGui Material plugins 2023-10-02 11:17:14 +02:00
Przemo Firszt
a03de9c267 COPR - add yaml-cpp-devel 2023-10-02 11:17:14 +02:00
Victor Predko
c9315ffc56 Spreadsheet: export CSV file extension by default
Fixes #10829
2023-10-02 06:38:40 +03:00
wandererfan
895d0f0e60 [TD]add line spacing property
- requires Arch PR #10816 to see results
2023-10-01 19:54:32 -04:00
Paddle
e076e4bf31 Remove Std_MacroStopRecord command as obsolete. 2023-10-01 17:22:19 -05:00
Paddle
ec07dcede7 Remove macro recording stop from toolbar and menu, and adds the stop functionality to the main macro recording command. 2023-10-01 17:22:19 -05:00
wmayer
f951e7d32b Import: move OCAFBrowser to its own source files 2023-10-01 22:23:57 +02:00
wmayer
bac2b83537 Import: rename ImportOCAFExt to ImportOCAFGui and move to own source files 2023-10-01 22:23:57 +02:00
wmayer
0e679297c9 Import: move class ExportOCAFGui tp its on source files 2023-10-01 22:23:57 +02:00
wmayer
1cbd96f3cf Import: code-refactoring and clean-up
* Add new method ExportOCAF::exportObjects() to avoid code duplication
* Simplify handling of arguments passed to Python handler
* Fix several lint warnings
* Move ImportOCAFExt to the corresponding source files
2023-10-01 22:23:57 +02:00
liukaiwen
18af697795 Merge remote-tracking branch 'origin/master' into remove_redundant_definition 2023-10-02 01:42:37 +08:00
wmayer
c87860922c Import: fix lint warnings
* Make constructors explicit
* Fix a regression from PR 10783
2023-10-01 08:01:41 +02:00
wmayer
70ca90f46f Import: move IGES reader & writer to own classes 2023-10-01 00:18:11 +02:00