wmayer
bd88162b9d
fix readability-*:
...
* readability-const-return-type
* readability-container-data-pointer
* readability-container-size-empty
* readability-delete-null-pointer
* readability-else-after-return
* readability-inconsistent-declaration-parameter-name
* readability-redundant-member-init
* readability-redundant-smartptr-get
* readability-redundant-string-cstr
* readability-use-anyofallof
* readability-static-definition-in-anonymous-namespace
* readability-static-accessed-through-instance
* readability-simplify-boolean-expr
2023-11-16 01:22:08 +01:00
wmayer
985def3416
Base: apply clang format
2023-11-13 12:01:26 -05:00
Chris Hennes
6bd1c6be49
Base: Wrap PyArg_ParseTupleAndKeywords
2023-08-25 14:52:30 -05:00
wmayer
097d5d6fee
Base: C++ core guidelines: init variables
2023-08-24 18:48:52 +02:00
wmayer
f195c3a0ca
Base: catch exception raised by Rotation::setValue
2023-03-01 18:43:15 +01:00
wmayer
f039789d0b
Base: add overloaded method isIdentity() to Rotation and Placement that accepts a tolerance
2023-01-03 10:54:47 +01:00
berniev
ba5c312a58
remove redundant void from Base
2022-07-31 14:10:34 +02:00
wmayer
4b483807c7
Base: replace several reinterpret_cast
2022-05-11 20:01:40 +02:00
wmayer
4183c45a01
Base: modernize C++11
...
* use nullptr
2022-03-23 16:57:25 +01:00
wmayer
e4d1ed8366
Base: rename BaseExceptionFreeCADError to PyExc_FC_GeneralError
2022-03-17 14:45:48 +01:00
Uwe
686a025416
[Base] Quantity, Rotation, Stream: remove unused includes
2022-03-01 11:27:54 +01:00
wmayer
c3f10e8e62
Base: [skip ci] C++11: modernize use nullptr (replaces NULL or 0)
2021-10-27 19:26:26 +02:00
wmayer
16c08ec96f
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
e424faa131
Base: harmonize Python API of Rotation class
2021-10-27 10:40:35 +02:00
wmayer
497c1895e8
Base: [skip ci] expose Rotation.fromEuler() to Python
2021-10-27 00:34:36 +02:00
Zheng, Lei
37d6752404
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
luz paz
59b7e9fdd0
Base: remove Py2 code
2021-04-26 09:23:58 +02:00
luz paz
01b21e0d06
Base: Fix header uniformity, whitespace, and doxygen
...
[skip ci]
2020-11-22 18:12:16 +01:00
wmayer
8451cb332a
Part: [skip ci] support of expressions of Euler angles in attachment dialog
2020-03-21 14:27:53 +01:00
wmayer
a92cf1a785
Base: [skip ci] do not normalize axis when changing angle of a Rotation object
2019-12-28 14:04:02 +01:00
wmayer
a276bf46ee
expose Roation.slerp to Python
2019-10-11 01:14:35 +02:00
wmayer
6222cb310b
add method RotationPy.toMatrix()
2019-10-07 19:27:54 +02:00
wmayer
edcb33f120
improve RotationPy::number_power_handler: make computation more efficient and less prone to round-off errors
2019-10-07 19:23:14 +02:00
Zheng, Lei
cc94eb9966
Base: add RotationPy.RawAxis
...
Expose rotation raw axis
2019-10-07 17:24:31 +02:00
Zheng, Lei
b2ba93c4fc
Base: fix __pow__ operator in MatrixPy/PlacementPy/RotationPy
2019-10-07 17:24:30 +02:00
Zheng, Lei
ff3ec0c7fd
Base: add Python number protocol support to Placement/Rotation
2019-09-28 15:32:00 +02:00
wmayer
3726006942
fix implementation of Rotation::isSame(const Rotation& q, double tol) and extend Python bindings
2019-09-10 14:17:07 +02:00
wmayer
808e06f118
implement setting custom attributes for RotationPy to assign matrix or pair of vectors
2017-12-31 18:18:27 +01:00
wmayer
df0a3ded78
rename Placement.isNull to Placement.isIdentity
...
implement Rotation.isNull and Rotation.isIdentity
2017-12-13 17:00:38 +01:00
DeepSOIC
62b0d35270
Base: new Rotation constructor - on vectors
...
The new constructor accepts wanted directions of x,y,z axes of rotated
frame, and a priority string that affects how the vectors are made
perpendicular to each other.
Example - construct placement for sketch on XZ plane:
v = App.Vector
App.Rotation(v(1,0,0),v(0,0,1),v())
2017-09-10 18:31:40 +02:00
wmayer
f3226a0867
+ fix == operator of Rotation class, + add method isSame()
2016-05-18 18:08:40 +02:00
wmayer
c3c11a9b81
+ implement rich compare protocol of Python interface for Placement & Rotation
2016-05-18 11:26:27 +02:00
jriegel
c88a8336dc
Several enhancements
...
+ PLMXML Reader
+ Some meta information sorting
+ Making ProductRefs invisibly in Tree
2016-04-12 18:12:03 +02:00
wmayer
707bc8a6a5
+ allow to modify placement via sub-attributes
2014-12-02 19:19:23 +01:00
wmayer
431f744958
0001285: update doc
2013-10-23 17:22:07 +02:00
wmayer
82081a6634
0001152: The output of __repr__() of Vector and Rotatio would create Objects with different Values do to inapropriate rounding
2013-06-17 13:21:25 +02:00
Sebastian Hoogen
38333cf048
add isNull() method to Rotation
2012-05-15 18:01:15 +02:00
wmayer
120ca87015
+ unify DLL export defines to namespace names
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00