Commit Graph

12824 Commits

Author SHA1 Message Date
wmayer
3692861136 improve whitespaces 2017-12-13 17:00:38 +01:00
plgarcia
c42330ef0a Add a function to compare 2 double allowing approximation errors 2017-12-13 17:00:38 +01:00
plgarcia
a0ea3ceec9 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
e272f02e59 Arch: Fixed creation of Spaces in no-GUI mode 2017-12-13 11:21:33 -02:00
Yorik van Havre
351c0fde12 Draft: Fixed default precision value 2017-12-13 10:57:55 -02:00
Zheng, Lei
3eba89df13 Path.Area: improve code readability
Fix Coverity CID 169508
2017-12-13 12:40:13 +01:00
Bernd Hahnebach
7562afaa08 FEM: cmake, sort in cmake 2017-12-13 12:38:22 +01:00
Bernd Hahnebach
4c9db520dc FEM: constraint flow velocity, fix task panel 2017-12-13 12:38:22 +01:00
Bernd Hahnebach
f69f039769 FEM: constraint transform, fixes #3283 2017-12-13 12:38:22 +01:00
Bernd Hahnebach
531ad99b69 FEM: make objects module, better name for ccx tools solver def 2017-12-13 12:38:22 +01:00
Unknown
5e2159cb74 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
89071f74b7 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
d64575a111 Sketcher: Merge, copy expressions
===================================

Support for copying expressions instead of hard values.

fixes #2936
2017-12-12 23:08:44 +01:00
Abdullah Tahiri
f2cca2e05a 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
a309e417fc Sketcher: New Setting for improved dragging mode 2017-12-12 22:20:27 +01:00
Abdullah Tahiri
a014c1cbc1 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
7b086ba8b2 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
b8200b9a9a Draft: crowdin tooltip typo fix
ref: https://crowdin.com/translate/freecad/548/en-cs#6500043
2017-12-12 21:57:44 +01:00
wmayer
ae6ce996ac fixes #0003281: STL object doesn't retain its rotation after change 2017-12-12 21:46:18 +01:00
WandererFan
e2655bc726 Allow user to modify Vertex size by parameter 2017-12-11 13:17:05 +01:00
DeepSOIC
bf752ea88f 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
bc27c0239c 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
bea4b2c163 fixes #0003185: Recompute should work if only subgraph is cyclic 2017-12-10 17:47:09 +01:00
wmayer
b0bbbe9421 move implementation of topologicalSort to private class DocumentP and add a parameter 2017-12-10 11:04:25 +01:00
wmayer
4e74ef0cf7 move global function to private class DocumentP 2017-12-10 10:53:34 +01:00
wmayer
c5847cf918 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
91142be1b2 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
3bf5993d27 Typo fix for recent commit
Introduced in 8bede4101cd35f2172a912b79c18f4ccedb38721
[skip ci]
2017-12-08 10:04:41 -05:00
wmayer
a802247ec1 fix possible build failure on Debian 9 2017-12-08 15:30:46 +01:00
Bernd Hahnebach
0439ed05e5 FEM: mesh api, fix tolerance in get the nodes by a solid 2017-12-08 07:16:09 +01:00
Yorik van Havre
796e5a148a Fixed gradient in last commit 2017-12-07 18:54:47 -02:00
Yorik van Havre
31db5c5b77 Bitacovir's new clone icon 2017-12-07 18:50:22 -02:00
Bernd Hahnebach
4b8c56fc97 FEM: command module, use active analysis from command manager module 2017-12-07 17:12:39 +01:00
Bernd Hahnebach
16859084ea FEM: command module, use selection from command manager module 2017-12-07 17:12:39 +01:00
Bernd Hahnebach
f6667102a0 FEM: commands, fix nonlinear material command for new solver framework 2017-12-07 17:12:39 +01:00
Bernd Hahnebach
1e1f1513dd FEM: command package, move equation commands into commtand class module 2017-12-07 17:12:39 +01:00
Bernd Hahnebach
15b3d75605 FEM: command package, move command modules in one module in new command package 2017-12-07 17:12:39 +01:00
Bernd Hahnebach
0559abbbd3 FEM: result package, move result tools module in new result package 2017-12-07 17:12:39 +01:00
Bernd Hahnebach
280ea2f6ad FEM: unit test, again add TestFem and import the test classes from new test package 2017-12-07 17:12:39 +01:00
Bernd Hahnebach
d4072318de FEM: test package, move unit test module in new test package 2017-12-07 17:12:39 +01:00
Bernd Hahnebach
86f98162b6 FEM: mesh package, move all mesh modules in new mesh package 2017-12-07 17:12:39 +01:00
Bernd Hahnebach
55052cc9aa FEM: package feminterface, move all import and export modules in new package feminterface 2017-12-07 17:12:39 +01:00
wmayer
65735ec96f fix cmake build failure 2017-12-07 14:42:38 +01:00
wmayer
75ed947e77 add combo box to select C++ standard 2017-12-07 12:05:44 +01:00
Abdullah Tahiri
c49981c41b Sketcher: Do not show support when entering sketch edit mode if it is a datum plane
=====================================================================================

https://forum.freecadweb.org/viewtopic.php?f=10&t=25700
2017-12-07 11:39:35 +01:00
Abdullah Tahiri
ea8652f54e Sketcher: Fixing Polyline Arc Endpoint autoconstraints
======================================================

fixes #3091

Autoconstraints did not check whether the arc was CW or CCW, as such the autoconstraint on the second position was sometimes assigned to the start point.
2017-12-07 11:31:35 +01:00
Abdullah Tahiri
5e6e289d69 Sketcher: Fixes no horizontal/vertical on edge if previous horizontal/vert aligment on vertex
=============================================================================================

fixes #3257
2017-12-07 11:11:40 +01:00
Abdullah Tahiri
f0a4d6a524 Sketcher: Fix Polygon disappearing on creation with autoconstraints on
======================================================================

Fixes #3154

About the fix:
- If a non-zero vector is passed to seekAutoConstraint, it will suggest a vertical/horizontal constraint, which does not
make sense in the construction method.
- Passing a zero vector enables to treat it like a point, so for example point on object will be suggested, but not vertical/horizontal constraints.
2017-12-07 10:59:49 +01:00
Abdullah Tahiri
0f021940b9 Sketcher: BSpline, prevent 0 mm Radius for poles on creation
============================================================

https://forum.freecadweb.org/viewtopic.php?f=10&t=25701
2017-12-07 10:52:28 +01:00
WandererFan
06eeef4281 Fix #1947 non-ASCII in file path
- this also fixes file path part of #3139
- this needs work for Py3
2017-12-06 19:51:22 -05:00