Zheng, Lei
b32369d185
App: insert UUID property to trace the source of copied object
...
A property _ObjectUUID will be added to an object before it is being to
copied, if the property does not exists. Anoter propert _SourceUUID
property will be added to any copied object, with value set to its
source objct's _ObjectUUID.
2021-12-21 21:41:02 -07:00
luz paz
a40c57786c
Base: translate doxygen from DE/FR to EN
...
For the purpose of making the source documentation uniform, source comments in this file were translated to english.
2021-12-22 01:17:06 +01:00
wmayer
56d86df5bb
Base: fix memory leak when creating object with factory method
2021-12-11 14:26:40 +01:00
wmayer
2f99b5b56d
Base: [skip ci] allow to access the twin pointer of a PyObjectBase
2021-12-11 08:33:50 +01:00
luz paz
0042f58e4c
Make source code comments use gender neutral pronouns
...
The changes also include some grammatical fixes as well.
2021-12-02 16:18:04 -05:00
wmayer
03dd79c155
Base: add methods to Vector2dPy
2021-11-14 20:05:22 +01:00
wmayer
3c1ea5883c
Base: implement number protocol for Vector2dPy
2021-11-14 19:25:29 +01:00
wmayer
50523fe951
Base: add factory method to Vector2dPy
2021-11-14 18:18:38 +01:00
wmayer
cd8ce95f53
Base: [skip ci] C++11: modernize use nullptr (replaces NULL or 0)
2021-10-27 19:26:26 +02:00
wmayer
b159144e13
Base: [skip ci] handle gimbal lock when computing Euler angles
2021-10-27 17:02:07 +02:00
wmayer
cd91c73382
Base: [skip ci] in Rotation class allow to set angle in radian
...
App.Rotation(axis, angle) still defines the angle in degree
App.Rotation(axis, Degree=angle) does the same as above
App.Rotation(axis, Radian=angle) defines the angle in radian
2021-10-27 10:59:34 +02:00
wmayer
4c886771d1
Base: harmonize Python API of Rotation class
2021-10-27 10:40:35 +02:00
wmayer
951a0be9c7
Base: [skip ci] expose Rotation.fromEuler() to Python
2021-10-27 00:34:36 +02:00
wmayer
4061c047a0
Base: implement a way to test translator for testing purposes
2021-10-26 16:58:42 +02:00
wmayer
9f2dd4a363
Base: [skip ci] Modify GetASCII to include empty strings
2021-10-23 22:56:45 +02:00
wmayer
0b63548ea1
Base: [skip ci] add method to check for null vector
2021-10-19 19:19:31 +02:00
Yorik van Havre
d95f085760
Merge pull request #4787 from chennes/addThemeSupport
...
[GUI] Add Preference Pack support
2021-10-14 12:41:06 +02:00
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
wmayer
dfe84ef123
Base: [skip ci] pass the full file path to the FileException
2021-09-29 14:02:46 +02: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
b432592fb2
Merge branch 'master' into addThemeSupport
2021-09-24 07:51:04 -05:00
wmayer
7f772ba227
port to MSYS2/clang
2021-09-20 18:15:44 +02:00
wmayer
e211b89cf8
port to MSYS2/clang
2021-09-19 19:49:44 +02:00
Preslav
d7ac25e3cf
Ammending stiffness units
2021-09-17 11:08:08 +02:00
wmayer
40d2955c66
Base: split export/import macros from FCConfig.h and move them to FCGlobal.h
...
The FCGlobal.h can be included in a Global.h header file of an extension module.
The reason is that some IDEs (e.g. QtCreator) fails to detect the export/import macros when only defined in the PreCompiled.h files and thus raise a parser warning.
2021-09-14 16:40:30 +02:00
Chris Hennes
075f9cdc74
Merge pull request #4791 from heewa/fix-lost-err-msg
...
[Base] Fix lost filename in err msg
2021-09-14 09:23:03 -05:00
0penBrain
59a4a4c361
[Core] Rotation : fix gimbal lock handling
...
+ fix Euler representation on GUI
2021-09-13 18:34:58 +02:00
Yorik van Havre
fa057ca7d3
Merge pull request #4772 from realthunder/EulerAngles
...
Base: add new API Rotation::get/setEulerAngles()
2021-08-31 10:40:23 +02:00
Chris Hennes
525a92cfc5
Modify GetASCIIMap to include empty strings
2021-08-20 20:04:19 -05:00
Yorik van Havre
cbdac756a8
Merge pull request #4963 from Helios113/stiffness
...
Base: Adding stiffness units
2021-08-18 10:04:46 +02:00
Preslav
4ab37fc0ca
Added stiffness units to FreeCAD [mN/m, N/m, kN/m, MN/m]
2021-08-16 12:27:41 +01:00
Syres916
e215c22519
[Base] Remove one unnecessary precision level
2021-08-12 11:13:29 +01:00
Syres916
463ff88a57
[Base] Increase precision
2021-08-12 10:55:50 +01:00
Heewa Barfchin
bf6dfb7572
Fix lost filename in err msg
...
In some circumstances, FileExceptions are constructed empty, then have a
filename assigned to them, but the error message in these scenarios is
left as the default "unknown" one, which is sometimes shown to users.
This change fixes that case to be consistent with instances that are
constructed with the filename.
2021-05-14 12:34:20 -04:00
wmayer
b69ef38c7f
allow to enable PCH for gcc and clang
2021-05-03 17:37:58 +02:00
Zheng, Lei
c1454dfbed
Base: add new API Rotation::get/setEulerAngles()
...
Exposed to Python as new constructor parameters and
Rotation.toEulerAngles()
This function uses the code from OCCT
gp_Quaternion::Get/SetEulerAngles() to support all 24 possible
generalized euler rotation sequences. Call Rotation.toEulerAngles()
without argument to obtain all possible sequence types.
2021-05-02 17:20:45 +08:00
wmayer
b5c49a6b77
Base: allow to use the classes XUTF8Str and StrXUTF8 outside FreeCADBase
2021-04-28 10:56:17 +02:00
wmayer
2f276601f8
Fix generation and build of python classes for 3.8
2021-04-27 14:35:34 +02:00
markus
aa0dcff74f
Fix generation and build of python classes for 3.9
2021-04-27 00:41:53 +02:00
wmayer
86b1308f45
Base: [skip ci] do not make PyBaseProxy class declaration dependent on ATTR_TRACKING
2021-04-26 15:57:17 +02:00
wmayer
f82af9eca2
Base: remove obsolete swig source files
2021-04-26 11:20:13 +02:00
wmayer
44e82ac3c4
App: remove some more deprecated Py2 code
...
and remove deprecated void from function signature and replace 0 or NULL with nullptr
2021-04-26 10:55:56 +02:00
wmayer
af16ab02a0
Base: remove some more deprecated Py2 code
...
and remove deprecated void from function signature and replace 0 or NULL with nullptr
2021-04-26 10:29:48 +02:00
luz paz
142c2c2c4d
Base: remove Py2 code
2021-04-26 09:23:58 +02:00
wmayer
56fb65de62
Base: use Python's weak reference mechanism to avoid memory leaks due to cyclic dependencies
2021-04-23 11:02:19 +02:00
wmayer
e084df62b9
Base: add convenience functions to create a QString from quantity
2021-04-20 14:56:29 +02:00
wmayer
cd9319f125
Base: add convenience functions to create a QString from quantity or double
2021-04-20 14:07:20 +02:00
Mateusz Skowroński
92683e1f63
Fix CMake warning: qt5_make_output_file is not part of the official API, and might be removed in Qt 6.
2021-04-19 15:10:53 +02:00
wmayer
d4e01609fe
Base: [skip ci] add convenience function to get PyObjectBase from GeometryT
2021-04-12 15:12:21 +02:00
wmayer
a2574987b4
Base: [skip ci] remove Py2 code from PyObjectBase
2021-04-12 14:17:16 +02:00