Commit Graph

505 Commits

Author SHA1 Message Date
Zheng, Lei
69efa47374 Selection: handle exception in observer callback
Selection callback are sometimes called while traversing Coin node tree.
If any unhandled exception is thrown while traversing the tree, FC 3D
rendering will become unstable and non-usable thereafter.
2018-08-26 17:29:14 +02:00
wmayer
f8f4cd76cc clear dict when invalidating Py object to fix possible cyclic references 2018-08-25 21:49:57 +02:00
wmayer
4211defb4a reduce compile time after each time cmake configure is executed 2018-08-21 13:53:33 +02:00
wmayer
b9c24f8a92 reduce compile time after each time cmake configure is executed (swig) 2018-08-21 13:20:58 +02:00
wmayer
68f6c82eb1 fix -Wcast-function-type 2018-08-19 13:11:08 +02:00
wmayer
e757e4f7e7 fix warning C4244: conversion from 'const double' to 'float', possible loss of data 2018-08-19 10:43:25 +02:00
luz.paz
a981753d2c Trailing whitespace fixes 2018-08-18 21:48:42 +02:00
luz.paz
781d007321 Misc. typos
Found via `codespell`
Trivial typos

Found via `codespell`
2018-08-18 21:48:42 +02:00
hgutsche
a097804cbd Add library for concurremcy in >= VS2015
revert conditional in Points.cpp (i.e. reactivate parallel handling)
2018-08-11 11:55:51 +02:00
wmayer
71088bfb94 suppress -Wcast-function-type for swig code 2018-08-08 18:18:53 +02:00
wmayer
a9c4bcb5d6 remove kwd argument for functions only with flag METH_VARARGS 2018-08-08 17:39:32 +02:00
wmayer
dc54f67d03 fix infinite recursion in case of non-DAG documents 2018-08-06 18:52:48 +02:00
wmayer
d3ef6905ff + add option to switch off precompiled header 2018-07-25 20:17:11 +02:00
wmayer
1fcfbcf1ab + move implementation of Base::ifstream and Base::ofstream to header and remove export macro.
This is needed for VS 2013 to avoid that it exports methods of the base class and thus causing linker errors for modules that link FreeCADBase
2018-07-25 17:50:30 +02:00
wmayer
3b3e4fd4ce minor fix 2018-07-25 17:49:28 +02:00
wmayer
806ad88c5a + implement a faster method to multiply vector with matrix
+ add convenience method to transform a point array
2018-07-25 17:31:11 +02:00
wmayer
b298e63bcc + implement direct and queued mode in console class 2018-07-25 17:25:32 +02:00
wmayer
b13f1562a3 handling of UTF-8 in zipios++ on Win32 2018-07-25 16:57:38 +02:00
luz.paz
be5e93ddfe Misc. typo & whitespace fixes
Found via `codespell -q 3 -I ../fc-word-whitelist.txt --skip="*.ts,*.po,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./.git,./src/zipios++"`
Revert IFC commit
2018-07-11 21:52:27 -04:00
luz.paz
c0014cbd3e Misc. comment typos
+ Found via `codespell -q 3 --skip="*.po,*.ts,./.git,./src/3rdParty,./src/CXX,./src/zipios++,./src/Mod/Assembly/App/opendcm" -I ~/Projects/fc-word-whitelist.txt`

+ crowdin translation refinements:  
- https://crowdin.com/translate/freecad/6766/en-en#6499546
- https://crowdin.com/translate/freecad/6766/en-en#6504496
2018-06-13 20:37:17 -04:00
wmayer
9ec4d83682 missing call to clear error indicator 2018-06-04 17:48:10 +02:00
luz.paz
7a09a5774e More misc. typos 2018-05-19 12:17:52 -04:00
luz.paz
6e64b4f75d Misc. typos 2018-05-19 12:06:34 -04:00
luz.paz
fb224b0090 Crowdin: fix in different WBs 2018-05-02 00:50:06 -04:00
luz.paz
505488c4f9 Misc. typos
Found via `codespell`
2018-04-25 09:41:33 -03:00
wmayer
840c9e8b3c prepare for PyCXX 7.0 2018-04-18 19:20:50 +02:00
wmayer
7ed84a6590 workaround for bug in VS 2013 that occurs at Python init time 2018-04-15 19:05:06 +02:00
wmayer
1cbc20b0b1 fix conversion factors for psi and ksi 2018-03-31 15:43:16 +02:00
wmayer
71f0f1a6d5 density is not an SI base unit 2018-03-28 11:47:08 +02:00
wmayer
7480544967 fix typo 2018-03-11 18:34:18 +01:00
Yorik van Havre
46acd2f6a2 Units: Fixed Building Imperial schema - closes #2792 2018-03-08 12:45:59 -03:00
luz.paz
11b8f91c5d Misc. typos 2018-01-27 19:43:18 +01:00
luz.paz
bbfbb0e7d3 Misc. comment typos 2018-01-14 12:11:35 -02:00
luz.paz
a35dd3feea Typos
The stepcode typos aren't to be found upstream. Recomend we merge nonetheless.
2018-01-08 21:07:00 +01:00
wmayer
78c9a34f50 fix compiler warning 2018-01-08 19:55:07 +01:00
luz.paz
8690d870a5 Misc. typos
+ stepcode typo submitted upsream https://github.com/stepcode/stepcode/pull/372
2018-01-07 18:41:29 -02:00
wmayer
83fe8f8c36 fix OpenSCAD importer 2018-01-01 16:45:06 +01:00
wmayer
9e2fa2d91a support some more handlers in VectorPy and throw better exceptions for unsupported operators 2018-01-01 15:45:21 +01:00
wmayer
401af92890 implement setting custom attributes for RotationPy to assign matrix or pair of vectors 2017-12-31 18:18:27 +01:00
luzpaz
128239b54a Typos: Various workbenches and misc.
[skip ci]
2017-12-25 10:58:10 +01:00
Unknown
a8ecffb652 Misc. typo fixes
Various workbenches
2017-12-23 14:30:30 +01:00
wmayer
77e3260522 add helper class to tmp. block a boost signal/slot connection 2017-12-21 22:22:33 +01:00
wmayer
0d7831e196 move Placement.isNull to Placement.isIdentity
add isNull for backward compatibility
2017-12-13 19:13:18 +01:00
wmayer
b22f231345 fix invalid syntax 2017-12-13 17:24:39 +01:00
wmayer
25bf33077e rename Placement.isNull to Placement.isIdentity
implement Rotation.isNull and Rotation.isIdentity
2017-12-13 17:00:38 +01:00
wmayer
a19faf16f7 preserve length of rotation axis 2017-12-13 17:00:38 +01:00
wmayer
aa201cba9c improve whitespaces 2017-12-13 17:00:38 +01:00
plgarcia
31c0230659 Improvement of rotations
Rotation:
-	Add a private attribute Vector to store the direction of the rotation, and manage not to erase this direction when the angle id 0.
-	Add a private attribute to store the angle as defined (no modulo etc)
-	Keep the quaternion for calculations

PropertyGeo
-	Saves the rotation with angle and direction instead of saving the quaternion.
-	Attribute name chosen: Ox, Oy and Oz for the coordinates of the axis and A for the angle in radians. This has to be validated.
-	Backward compatibility with the saved files with quaternion (test presence of A to determine which of  the Quaternion (old way) or the direction and angle is stored (new way). New files can be opened by old FreeCAD and vice-versa.

The only side effect I can imagine is that it was possible to set a vector to 0, 0, 0 if the angle was not 0, what is somehow non sense. Now when setting to 0, 0 0 the last not null vector is kept. The vector can not be null any longer.
2017-12-13 17:00:38 +01:00
Frederic Bonnard
651d2fd751 Fix "Unit overflow in pow()" error
During tests on Debian/Ubuntu :
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=836983 a problem was
found when raising a unit to a negative power on some architectures.
By default some architectures have "char" being
unsigned such as the ones listed here and others (
https://wiki.debian.org/ArchitectureSpecificsMemo ).
I just forced the sign-ness of pow()'s argument which fixes the issue.
2017-12-08 17:38:35 +01:00
Unknown
3579f38d62 Builder3D: doxy typo/grammar fixes
[skip ci]
2017-12-04 08:20:55 -05:00