Commit Graph

12836 Commits

Author SHA1 Message Date
Yorik van Havre
ca247d7ee4 Arch: fixed Arch Material not working in console mode 2017-12-15 16:06:42 -02:00
Yorik van Havre
77fab66ad3 Arch: Bugfix in stairs 2017-12-15 16:05:06 -02:00
wmayer
d95a65b260 add VTK related commands only if VTK was found at configure time 2017-12-14 14:07:07 +01:00
Yorik van Havre
5df83429cc Merge pull request #1163 from berndhahnebach/bhbdev110
FEM: cmake, use only one cmake file for Python packages and modules
2017-12-14 10:45:36 -02:00
Bernd Hahnebach
45b9386551 FEM: cmake, use only one cmake file for Python packages and modules 2017-12-13 22:00:45 +01:00
wmayer
467fdc69ff Merge branch 'master' of https://github.com/FreeCAD/FreeCAD 2017-12-13 19:13:34 +01:00
wmayer
0d7831e196 move Placement.isNull to Placement.isIdentity
add isNull for backward compatibility
2017-12-13 19:13:18 +01:00
Yorik van Havre
c3ca4bc899 Draft: Fixed bug in DXF import 2017-12-13 15:20:22 -02: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
28f7047bff use getRawValue in property editor to avoid normalizing the rotation axis 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
03427bf675 Add a function to compare 2 double allowing approximation errors 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
Yorik van Havre
28240a806e Arch: Fixed creation of Spaces in no-GUI mode 2017-12-13 11:21:33 -02:00
Yorik van Havre
2cf8e0ffd6 Draft: Fixed default precision value 2017-12-13 10:57:55 -02:00
Zheng, Lei
517ae4dd79 Path.Area: improve code readability
Fix Coverity CID 169508
2017-12-13 12:40:13 +01:00
Bernd Hahnebach
dfdd8fc829 FEM: cmake, sort in cmake 2017-12-13 12:38:22 +01:00
Bernd Hahnebach
53ae390562 FEM: constraint flow velocity, fix task panel 2017-12-13 12:38:22 +01:00
Bernd Hahnebach
9bcdd09473 FEM: constraint transform, fixes #3283 2017-12-13 12:38:22 +01:00
Bernd Hahnebach
3d862b8dea FEM: make objects module, better name for ccx tools solver def 2017-12-13 12:38:22 +01:00
Unknown
d949210aed Typos, grammar & uniformiity
3rd party KDL typos have been submitted upstream https://github.com/orocos/orocos_kinematics_dynamics/pull/121
2017-12-13 00:10:46 -05:00
Abdullah Tahiri
c54c08cca4 Sketcher: Wrong mapping of constraints to axes
==============================================

Expressions for remapping of geometry where simply wrong.

Surprisingly no bug reports were filed for this one.
2017-12-12 23:08:44 +01:00
Abdullah Tahiri
588f1bd795 Sketcher: Merge, copy expressions
===================================

Support for copying expressions instead of hard values.

fixes #2936
2017-12-12 23:08:44 +01:00
Abdullah Tahiri
9b781f9c54 Sketcher Solver: Means to reset the initilization of movement
=============================================================

Just amazed it was working "so well" without never reseting to zero this.

It might bring advantages and close bugs... who knows!
2017-12-12 22:20:27 +01:00
Abdullah Tahiri
ad855c99e3 Sketcher: New Setting for improved dragging mode 2017-12-12 22:20:27 +01:00
Abdullah Tahiri
023e319b84 Sketcher: Clean code and adapt previous solution only to non-relative cases
===========================================================================

Cleaning up ViewProviderSketch, as relative mode is never used for points.

Adapting the recalculation of the initial solution only to non-relative cases.

For relative movement cases (movePoint with relative=true) no cases where such a solution will be advantageous have been identified
and applying a similar solution involves changing the current behaviour too much, as to run the risk of introducing further bugs.

Decision to be revised if such cases where an advantage can be found are discovered.
2017-12-12 22:20:27 +01:00
Abdullah Tahiri
eff8529ec6 Sketcher: jumping while dragging - force recalculate initial solution
=====================================================================

fixes #1734

Upon dragging, the initial solution is first calculated and them DogLeg is left with the work of solving for a solution next to the initial solution.

When the change is too big and the gradients are no longer accurate to continue dragging, the dragging flips and jumps.

The solution offered here is, not to update always the solution, as this also creates artifacts, but update it if the dragging goes beyond 20 times the initial dragging distance.

https://forum.freecadweb.org/viewtopic.php?f=3&t=7589#p203580

https://forum.freecadweb.org/viewtopic.php?f=3&t=7589#p203712
2017-12-12 22:20:27 +01:00
Unknown
19254207c2 Draft: crowdin tooltip typo fix
ref: https://crowdin.com/translate/freecad/548/en-cs#6500043
2017-12-12 21:57:44 +01:00
wmayer
f9892009f6 fixes #0003281: STL object doesn't retain its rotation after change 2017-12-12 21:46:18 +01:00
WandererFan
87271d0cbb Allow user to modify Vertex size by parameter 2017-12-11 13:17:05 +01:00
DeepSOIC
f919eb6a64 fix object.getGlobalPlacement
was confused by expressions in Placement of containers.
Fixes #3217 Sketcher not drawing at mouse position.
2017-12-11 12:48:07 +01:00
looooo
a3ea9e561b circle-ci + conda-build
This enables the possebility to build FreeCAD with conda-packages on linux
2017-12-10 20:46:33 +01:00
wmayer
91bb7ed0c5 fixes #0003185: Recompute should work if only subgraph is cyclic 2017-12-10 17:47:09 +01:00
wmayer
c6f89e6e5d move implementation of topologicalSort to private class DocumentP and add a parameter 2017-12-10 11:04:25 +01:00
wmayer
42aa80bb74 move global function to private class DocumentP 2017-12-10 10:53:34 +01:00
wmayer
6a785f9afd fixes #0003262: normal vector returned by Face.normalAt(u,v) is not always a unit vector 2017-12-09 13:33:30 +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
3627cf2b1a Typo fix for recent commit
Introduced in 9376138d06
[skip ci]
2017-12-08 10:04:41 -05:00
wmayer
df3440e698 fix possible build failure on Debian 9 2017-12-08 15:30:46 +01:00
Bernd Hahnebach
a8c31221ed FEM: mesh api, fix tolerance in get the nodes by a solid 2017-12-08 07:16:09 +01:00
Yorik van Havre
564f977dbd Fixed gradient in last commit 2017-12-07 18:54:47 -02:00
Yorik van Havre
04e4e59ada Bitacovir's new clone icon 2017-12-07 18:50:22 -02:00
Bernd Hahnebach
6388a323fc FEM: command module, use active analysis from command manager module 2017-12-07 17:12:39 +01:00
Bernd Hahnebach
65bc90d508 FEM: command module, use selection from command manager module 2017-12-07 17:12:39 +01:00
Bernd Hahnebach
6a5408b5db FEM: commands, fix nonlinear material command for new solver framework 2017-12-07 17:12:39 +01:00
Bernd Hahnebach
e7b813f178 FEM: command package, move equation commands into commtand class module 2017-12-07 17:12:39 +01:00
Bernd Hahnebach
76c6512267 FEM: command package, move command modules in one module in new command package 2017-12-07 17:12:39 +01:00
Bernd Hahnebach
8599dd59ba FEM: result package, move result tools module in new result package 2017-12-07 17:12:39 +01:00