Commit Graph

5490 Commits

Author SHA1 Message Date
wmayer
0b40e1eb2a + fix cmake issue caused by patch 2015-09-11 14:47:47 +02:00
wmayer
b0da949be1 + don't use hardcoded height in PropertyItemDelegate::sizeHint 2015-09-11 10:35:48 +02:00
Johannes Obermayr
274f6f8bdd Robot: Fix last -Wreturn-type warning.
Since getTypeName() returns None for None and default both must be handled the same way in other switches.

After applying following bug will be fixed:
http://www.freecadweb.org/tracker/view.php?id=2212
2015-09-11 07:18:07 +02:00
Johannes Obermayr
9b90e1e14b libarea doesn't depend on parts from CMAKE_INSTALL_LIBDIR
Fixes:
 -- Installing: /home/abuild/rpmbuild/BUILDROOT/FreeCAD-0.15.99+git20150727.1925-1.1.x86_64/usr/lib64/FreeCAD/lib/area.so
 CMake Error at src/Mod/Path/libarea/cmake_install.cmake:53 (file):
   file RPATH_CHANGE could not write new RPATH:

     /usr/lib64/FreeCAD/lib

   to the file:

     /home/abuild/rpmbuild/BUILDROOT/FreeCAD-0.15.99+git20150727.1925-1.1.x86_64/usr/lib64/FreeCAD/lib/area.so

   No valid ELF RPATH or RUNPATH entry exists in the file;
2015-09-11 07:18:07 +02:00
Johannes Obermayr
5e016b0784 Avoid build time on generated files from pyside-rcc and pyside-uic.
Fixes build compare:
[ 3218s] RPM file checksum differs.
[ 3218s] Extracting packages
[ 3232s] /usr/lib64/FreeCAD/Mod/Arch/Arch_rc.py differs (Python script, ASCII text executable, with very long lines)
[ 3232s] --- old//usr/lib64/FreeCAD/Mod/Arch/Arch_rc.py2015-01-21 20:26:34.000000000 +0000
[ 3232s] +++ new//usr/lib64/FreeCAD/Mod/Arch/Arch_rc.py2015-01-23 11:41:24.000000000 +0000
[ 3232s] @@ -2,7 +2,7 @@
[ 3232s]
[ 3232s]  # Resource object code
[ 3232s]  #
[ 3232s] -# Created: Wed Jan 21 20:26:34 2015
[ 3232s] +# Created: Fri Jan 23 11:41:24 2015
[ 3232s]  #      by: The Resource Compiler for PySide (Qt v4.8.4)
[ 3232s]  #
[ 3232s]  # WARNING! All changes made in this file will be lost!
2015-09-11 07:18:07 +02:00
Przemo Firszt
5fbd2e8b36 FEM: Fix invalid update_displacement reset call
Reset parameter is not an option, empty parameters list call does the resetting.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-10 14:04:38 +01:00
Abdullah Tahiri
28c406c80e Sketcher: Renaming old get Coincident functions and introducing a extended one
==============================================================================

What is this?

method

getCoincidentPoints

actually only included (as indicated in the documentation comment) those points coincident by a single constraint.

That is not "all the coincident points".

However some methods currently using it are expecting exactly that (coincident points linked by a single constraint).

A new method is introduced:
const std::map<int, Sketcher::PointPos> getAllCoincidentPoints(int GeoId, PointPos PosId);

that provides all the points coincident with the given one, directly (via a single constraint) or indirectly (via multiple coincident constraints).

The old method is renamed to:
getDirectlyCoincidentPoints

So as to have a more meaningful name to differentiate between both methods.
2015-09-09 22:57:49 +02:00
Abdullah Tahiri
4b9a379b90 Sketcher bug/feature request: arePointsCoincident/coincidence creation
======================================================================

1. SketchObject::arePointsCoincident upgraded to check for indirect coincidence.
2. Coincidence constraint creation now checks for indirect coincidences and avoids
creating redundant coincidence constraints (for example during box selection).
2015-09-09 22:56:14 +02:00
Abdullah Tahiri
6035dc3336 Sketcher: Improvement: Horizontal/Vertical Autoconstraint creation with External Geometry
=====================================================================================

This fixes a bug related to:
http://www.freecadweb.org/tracker/view.php?id=2093

that during creation of a geometric element if a vertical/horiz autoconstraint is to be enforced, it is not enforced if the endpoints of the geometric element under creation are
coincident with external geometry.

According to the discussion here:
http://forum.freecadweb.org/viewtopic.php?f=10&t=12254&sid=eacf5bdee068cb71cc54dc5a62a6849d&start=20#p99359

this fixes the bug.

It does not fulfil the request on the ticket as it was decided to still allow an explicit addition of a vertical/horizontal constraint, as
it may be needed in some cases and the user expects to be able to add them, even if it will lead to an overconstrained sketch.

How to reproduce?
1. Create a rectange
2. Pad it
3. Create a new sketch on a face
4. link two corners as "external geometry" (but not the ones of a diagonal)
5. Create a line coincident with the first and second corners, so that the line is horizontal or vertical

In master it will force horiz or vert leading to a overconstrained sketch.
With this patch, the horiz/vert will not be enforced in this case.
2015-09-09 22:50:36 +02:00
wmayer
65a526ef46 + fix possible loss of data with recovery function, show auto-save message in status bar 2015-09-09 18:49:45 +02:00
Przemo Firszt
9a0579bb82 Tests, FEM: Add test for frequency analysis
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-09 12:17:12 -03:00
sgrogan
41bee890f6 Remove Hardcoded Icons from Drawing and Mesh WB 2015-09-09 12:15:55 -03:00
Przemo Firszt
850abd6683 FEM: Add reset_all funcion to FemTools
reset_all groups purge_results, reset_mesh_color and reset_mesh_deformation

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-09 13:57:50 +02:00
Przemo Firszt
6756038812 FEM: Add function documentation
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-09 13:57:49 +02:00
Przemo Firszt
f897e35293 FEM: Add option to limit max value of result being used to color FEM mesh
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-09 13:57:48 +02:00
Przemo Firszt
495b711b92 FEM: Add frequency analysis to FEM wb
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-09 13:57:47 +02:00
Przemo Firszt
7b95d99b1e FEM: Add get_results_object function
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-09 13:57:46 +02:00
Przemo Firszt
cd9cafb587 FEM: Raise exception on use or load of non existing results
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-09 13:57:46 +02:00
Przemo Firszt
3cc691d871 Material: Add generic glass FCMat file
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-09 13:57:45 +02:00
wmayer
fe9e6db5a1 + easier way to change license and url of an existing document 2015-09-09 13:53:07 +02:00
wmayer
9933e7ed37 Merge branch 'master' of https://github.com/FreeCAD/FreeCAD 2015-09-08 19:17:58 +02:00
wmayer
0bb008bb09 + fix inconsistencies between license note and url 2015-09-08 19:17:36 +02:00
Yorik van Havre
6534c320cc Draft: Further typos in DraftGeomUtils 2015-09-08 13:18:22 -03:00
Yorik van Havre
98326dd344 Draft: fixed typo in DraftGeomUtils 2015-09-08 12:41:49 -03:00
Yorik van Havre
2d269951ee Added Tools/githubstats.py script to check download stats from github 2015-09-08 00:18:31 -03:00
Yorik van Havre
a37025d5b6 Preferences->Document->License URL field is now editable 2015-09-07 20:10:02 -03:00
Yorik van Havre
6374f59627 Draft: Added preference setting to use the new C++ dxf importer 2015-09-07 16:46:08 -03:00
Mateusz Skowroński
763ccd0505 Fix for bugs #2236 & #2237 2015-09-07 15:28:18 -03:00
Yorik van Havre
4a08b71ac4 Arch: Fixed imports in ArchRoof 2015-09-07 15:10:29 -03:00
wmayer
5609b63be3 + add method to write/read BREP in binary format 2015-09-07 19:02:56 +02:00
Yorik van Havre
dd87a93bbe Draft: Added a pref option to disable SVG page scaling on import - fixes #2062 2015-09-05 23:35:52 -03:00
wmayer
1748818495 + fixes #0002238: Python: Environment Variable 'path' with mutated vowel 2015-09-05 14:52:06 +02:00
Yorik van Havre
b00d09ce66 Extending doxygen stuff for Draft & Arch 2015-09-04 19:14:36 -03:00
Yorik van Havre
c4f924fa52 Merge branch 'master' of github.com:FreeCAD/FreeCAD 2015-09-04 19:14:04 -03:00
wmayer
4f6ac53351 + fix switching to another mdi view when using the sketcher creation command from task panel 2015-09-04 21:34:26 +02:00
wmayer
6b539a70b4 + fix switching to another mdi view when using the sketcher creation command from task panel 2015-09-04 21:06:56 +02:00
Yorik van Havre
873234a533 Draft: Prepared support for dimensions in new DXF importer 2015-09-04 16:05:32 -03:00
wmayer
0dd9a437da Merge branch 'master' of https://github.com/FreeCAD/FreeCAD 2015-09-04 17:53:58 +02:00
wmayer
984608aaaa + issue #0000175: Auto save function 2015-09-04 17:53:22 +02:00
Yorik van Havre
eae6423979 Arch: bigger default section plane - fixes #2189 2015-09-04 12:49:03 -03:00
Yorik van Havre
8365f55643 Draft: fixed precision problem - fixes #1940 2015-09-04 12:43:09 -03:00
Yorik van Havre
f8571fb2a4 Changed all references to DraftGeomUtils.sortEdges to Part.__sortEdges__ 2015-09-04 11:54:57 -03:00
wmayer
5cfbde93da + issue #0000175: Auto save function 2015-09-04 15:08:12 +02:00
wmayer
7dc1b5ad6a + implement GUI to enable/disable auto-save and its timeout 2015-09-04 00:48:26 +02:00
wmayer
c7e7863ce5 Merge branch 'master' of https://github.com/FreeCAD/FreeCAD 2015-09-03 19:09:33 +02:00
wmayer
2d8c5b7870 + implement auto-save function for documents 2015-09-03 19:09:03 +02:00
Yorik van Havre
e7eafef4f4 Part.__sortEdges__ now reorients edges if needed 2015-09-03 11:17:46 -03:00
wmayer
01cebfa854 + allow to create a compound from a single part object 2015-09-03 13:19:21 +02:00
Yorik van Havre
ed8ae279b6 Draft: Allow Clones to clone a group 2015-09-02 20:07:17 -03:00
wmayer
eb4040d6d0 + support of exclusive Python command groups 2015-09-02 22:52:04 +02:00