wmayer
97f9320bb3
Core: fix minor issues:
...
+ fix issues found by clang's clazy tool
+ fix cppcoreguidelines-pro-type-member-init
* Make sure that all class members are initialized in the constructor
2022-06-30 16:31:16 +02:00
Wanderer Fan
67ddf95f89
[TD]remove unused code
2022-06-30 08:50:33 -04:00
Wanderer Fan
203b9bb26c
[TD]Navigation Styles - context menu handling & std cursors
2022-06-30 08:50:33 -04:00
Wanderer Fan
60b79e0d72
[TD]fix Dimension export to DXF
2022-06-30 08:50:07 -04:00
Wanderer Fan
75486e930b
[TD]Include CosmeticLines in Dxf
2022-06-30 08:50:07 -04:00
Abdullah Tahiri
bf83aedd2f
Sketcher: Bug fix SolverGeometryExtension
...
=========================================
Index access at zero size vector cause due to incorrect check.
2022-06-30 13:58:21 +02:00
wmayer
80e01ef0b7
Test: ignore UnicodeEncodeError in TestMetadata.test_file_path
2022-06-30 13:32:29 +02:00
wmayer
9a8a1795fb
Mesh: fix (Qt) issues found by clang's clazy tool
2022-06-30 13:14:03 +02:00
wmayer
316352fa50
Base: [skip ci] fix slight regression caused with 13549473e
2022-06-30 13:13:00 +02:00
Yorik van Havre
966720094d
Arch: Fixed test to work without the Drawing module
2022-06-30 11:38:22 +02:00
sliptonic
36cc22e9bd
Merge pull request #7111 from sliptonic/bug/camoticsimport
...
[PATH] Another camotics import bug.
2022-06-29 16:37:48 -05:00
wmayer
82a6241fc5
fix (Qt) issues found by clang's clazy tool:
...
+ -Wclazy-incorrect-emit
+ -Wclazy-strict-iterators
+ -Wclazy-overloaded-signal
+ -Wclazy-qstring-arg
+ -Wclazy-unused-non-trivial-variable
+ -Wclazy-container-anti-pattern
+ -Wclazy-range-loop-reference
+ -Wclazy-const-signal-or-slot
+ -Wclazy-detaching-temporary
+ -Wclazy-qfileinfo-exists
2022-06-29 21:00:54 +02:00
wmayer
fc8ccd59ed
Test: use codecs.open in TestMetadata.test_file_path
2022-06-29 15:51:42 +02:00
wmayer
8ed913f217
Gui: remove workaround for spnav 0.23 due to build failure with musl libc
2022-06-29 15:19:18 +02:00
wmayer
4265755534
Test: set encoding to utf-8 in TestMetadata.test_file_path
2022-06-29 12:28:02 +02:00
wmayer
f0443dbb92
App: issue #7112 : Addon manager does not work on windows with special characters in the username
2022-06-29 11:25:06 +02:00
wmayer
046b42c95b
Test: [skip ci] test file path with utf-8 <-> utf-16 conversion
2022-06-29 11:23:15 +02:00
wmayer
64a7fe5b71
App: fixes #7102 : Undo/Redo of PropertyEnumeration fails with MSVC
2022-06-29 09:59:18 +02:00
sliptonic
ade72dc869
Another import bug. This time if --version doesn't return a patch number.
2022-06-28 15:57:01 -05:00
wmayer
02718d99bb
Test: extend test for enumeration
2022-06-28 21:24:19 +02:00
Abdullah Tahiri
c5da665d45
Split DSHs from CommandCreateGeo
2022-06-28 19:29:47 +02:00
Abdullah Tahiri
574766a4bf
Remove obsolete DSH Tools - CloseShape and ConnectLines
2022-06-28 19:29:35 +02:00
Abdullah Tahiri
12a2de626a
DrawSketchHandler: Cursor rework and preselect at point functionalities
2022-06-28 19:29:19 +02:00
Abdullah Tahiri
7842d78ff1
DrawSketchHandler: mechanism to update the cursor
2022-06-28 19:29:07 +02:00
Abdullah Tahiri
d991ac6d80
DrawSketchHandler: Functions to draw cursor position and direction
2022-06-28 19:28:56 +02:00
Abdullah Tahiri
c708c94332
DrawSketchHandler: refactor crosshairCursor
...
======================================================
-DrawSketchHandler manages both cursor bitmap setting and unsetting
2022-06-28 19:28:18 +02:00
Abdullah Tahiri
51f2c55334
Utils refactor w/o commandcreategeo
2022-06-28 19:28:06 +02:00
Abdullah Tahiri
eaa431f231
Utils: Conversion from 2d vector into XY plane 3d vector
2022-06-28 19:27:46 +02:00
Abdullah Tahiri
5411e5ffea
Sketcher-Utils: vector of smart pointers to vector of pointers
2022-06-28 19:27:37 +02:00
Abdullah Tahiri
2c58060524
Sketcher-Utils: Refactor common code up
2022-06-28 19:27:20 +02:00
Paddle
74d6d1855c
Sketcher: Create Geometry ConstraintToAttachment function
2022-06-28 19:27:04 +02:00
Abdullah Tahiri
5657b4e434
Sketcher: Cleanup obsolete DrawSketchHandlers
2022-06-28 19:22:58 +02:00
Abdullah Tahiri
7a2b2b4c39
PythonConverter-Sketcher: A class to convert sketcher geometries and constraints into the commands to generate them
...
===================================================================================================================
This class does not currently support all sketcher geometry and constraints, but it supports the most common types.
2022-06-28 18:59:06 +02:00
Abdullah Tahiri
5be75acdb0
ViewProviderSketch: Cursor movement and preselection at sketch coordinates
...
===============================================================================
- Support to programatically move the cursor to sketch coordinates
- Support to try preselection at a given sketch coordinates
2022-06-28 18:58:47 +02:00
Abdullah Tahiri
b0492010d0
Sketcher: SketchObject - Add ability to diagnose constraint redundancy before addition
...
======================================================================================
It preserves the SketchObject properties. Therefore it does not trigger any property update, redraws, ...
2022-06-28 18:58:15 +02:00
Abdullah Tahiri
ad6576d385
Sketcher: SolverGeometryExtension and sketch parameter information improvements
...
===============================================================================
* SolverGeometryExtension is extended to:
- Enable to determine whether the x or the y of a point is a dependent or independent parameter
- Extend SolverExtension to provide information on individual edge parameters
- Convenience access to DoF status
* Sketch (solver interface) is extended to store geometry parameter dependency state, for these reasons:
Geometry and Constraint solver information is generated when performing a full solve() [QR decomposition + minimization(e.g. DogLeg)].
Constraint information remains in the sketch object (not SketchObject, but sketch), which is then retrieved by SketchObject.
Geometry information is incorporated to the deep copy of Geometry that the sketch object comprises. However, this information is only
available outside the sketch object, if the Geometry property of SketchObject is assigned. This is always the situation after a successful
full solve. However, it is not the case in a successful temporary minimal diagnosis (here succesful relates to conflicting/redundant constraints and
convergence).
The lightweight solution is to keep a (shallow) copy of the SolverGeometryExtensions (shared pointer) to be retrieved by GeoId, which is what is provided.
2022-06-28 18:57:17 +02:00
Yorik van Havre
a445f7186d
Merge pull request #7109 from Roy-043/Draft-Fix-default-fillmode-in-DraftGui.py
...
Draft: Fix default fillmode in DraftGui.py
2022-06-28 15:50:21 +02:00
Roy-043
732489de2d
Draft: Fix default fillmode in DraftGui.py
2022-06-28 15:42:28 +02:00
wmayer
299c20e918
Gui: get rid of some const_cast
2022-06-28 15:26:02 +02:00
tomate44
63733dcaa2
Part: add method to project point on curve
2022-06-28 12:58:49 +02:00
wmayer
2c3ef52dba
Part: move BiArcs algorithm to its own class
2022-06-28 12:42:15 +02:00
wmayer
523d364c92
Part: fix GeomBSplineCurve::toBiArcs
...
If tangent of start and end point are parallel then also check a tangent in between to make sure that it can be considered a straight line
See https://forum.freecadweb.org/viewtopic.php?f=8&t=69710
2022-06-28 11:26:35 +02:00
Uwe
e4158ea615
[Base] remove unused MSC code
...
this part was initially part of #7036 but then accidentally reverted
2022-06-28 00:58:12 +02:00
mosfet80
c86f0ce670
Remove old msc ver. Freecad 0.20 require 64 bit and windows 7 or higher. For this reason, msc libraries less than 1800 will no longer be used. ( #7036 )
...
* remove msc<1800
2022-06-28 00:42:33 +02:00
sliptonic
32e6d9facc
Merge pull request #7096 from sliptonic/bug/camotics
...
[Path] Fix import error if camotics not installed.
2022-06-27 08:53:26 -05:00
Yorik van Havre
8598e4b8a8
Merge pull request #7105 from Roy-043/Draft-Fix-align-working-plane-to-DatumPlane-bug
...
Draft: Fix align working plane to DatumPlane bug
2022-06-27 11:52:31 +02:00
Yorik van Havre
29f5e2cc83
Update src/Mod/Draft/draftguitools/gui_selectplane.py
...
Co-authored-by: 0penBrain <48731257+0penBrain@users.noreply.github.com >
2022-06-27 11:51:51 +02:00
Roy-043
a574cdb6b2
Draft: Fix align working plane to DatumPlane bug
2022-06-27 10:26:59 +02:00
Uwe
5f5ae2fe4a
[FEM] fix point filter initialization issue
...
- on opening the task dialog of existing point filter, the point value must be displayed
2022-06-27 01:07:36 +02:00
Uwe
5ca796a162
[TD] fix linker error with MSVC
...
patch by @wwmayer: https://forum.freecadweb.org/viewtopic.php?p=605472#p605472
many thanks!
2022-06-26 22:38:49 +02:00