Commit Graph

5793 Commits

Author SHA1 Message Date
wmayer
93f32d4dd1 + prepare string for translation 2016-02-29 13:22:49 +01:00
vginkeo
f14758d5e5 FEM: C++98 compatible fix to constraint displacement reference deletion, update vertice, edge, face selection 2016-02-29 13:06:16 +01:00
vginkeo
e47560003e FEM: do not hide constraints for result view 2016-02-29 13:06:15 +01:00
vginkeo
187894d8b5 FEM: remove some trailing whitespaces 2016-02-29 13:06:14 +01:00
vginkeo
fcd2882ad7 FEM: remove module ccxInpWriterFemConstraintDisplacement
which was intoduced in commit b1dc2cb by an accident
2016-02-29 13:06:13 +01:00
wmayer
5574419293 + set range for quantity boxes 2016-02-29 12:29:02 +01:00
Yorik van Havre
6f636e0ae9 Start: Updated startpage - fixed some links + restored commits feed 2016-02-28 22:03:03 -03:00
Yorik van Havre
5bdbe2db61 Draft: better docstring for offset - fixes #2199 2016-02-28 19:28:35 -03:00
wmayer
a59b915132 + code clean-up 2016-02-28 19:01:23 +01:00
wmayer
4e29db90c6 + fixes #0002200: Application crash when modifying fillet 2016-02-28 18:56:21 +01:00
Yorik van Havre
9bd89e7e29 Arch: Fixed bug in extrusion of structures - fixes #2458 2016-02-28 14:03:29 -03:00
wmayer
9e01a08eaf + use quantity boxes in mesh segmentation dialog 2016-02-28 12:48:55 +01:00
wmayer
1fd06ef59b + use quantity boxes in mesh solid creation dialog 2016-02-28 12:44:29 +01:00
wmayer
32a5340b0b + use application-wide number of decimals in primitive creation dialog 2016-02-28 12:30:42 +01:00
wmayer
3f15ae80d0 + fixes #0002049: 0.15 and 0.16 Part Revolve ignores unit accuracy setting beyond 2 decimals 2016-02-28 12:12:10 +01:00
wmayer
d9e47e5896 + make fillet/chamfer dialog narrower 2016-02-28 11:39:32 +01:00
wmayer
92c2b18350 + use quantity boxes in fillet/chamfer dialog 2016-02-28 11:24:36 +01:00
Ian Rees
d811b585b7 Resolve clang compile error 2016-02-28 10:33:55 +13:00
wmayer
e1e0777c7b + add quantity boxes to mirroring dialog 2016-02-27 22:10:28 +01:00
wmayer
236f1666db + use quantity boxes in box & cylinder creation dialogs 2016-02-27 21:39:37 +01:00
wmayer
d56357f764 + use quantity boxes in revolution dialog 2016-02-27 21:31:54 +01:00
Yorik van Havre
67257633d6 Merge pull request #102 from triplus/SVG_WB_Icons
Add SVG workbench icons
2016-02-27 16:06:13 -03:00
wmayer
206e183f52 + use quantity box in offset dialog 2016-02-27 19:43:48 +01:00
wmayer
da9656dd7a + use quantity boxes in cross section dialog 2016-02-27 19:25:19 +01:00
wmayer
f868120a77 + use quantity boxes in inspection dialog 2016-02-27 19:07:29 +01:00
wmayer
3fc7b6bfb2 + use quantity box for length on extrusion dialog 2016-02-27 18:37:53 +01:00
Yorik van Havre
6fe6863001 Draft: Fixed placement bug in clones 2016-02-27 13:30:01 -03:00
Yorik van Havre
0c5484335d Merge pull request #103 from triplus/RadiosityOutdoorHQ
Add RadiosityOutdoorHQ.pov Raytracing Template
2016-02-27 13:17:13 -03:00
wmayer
ede0dbdff7 + use quantity box in DlgSettingsImportExport 2016-02-27 17:16:38 +01:00
wmayer
37e9c9732f + use quantity box in tessellation dialog 2016-02-27 16:02:37 +01:00
wmayer
18a61c0ef8 + use quantity box in image orientation dialog 2016-02-27 15:10:31 +01:00
wmayer
202a1be3f5 Merge branch 'master' of https://github.com/FreeCAD/FreeCAD 2016-02-27 15:07:59 +01:00
wmayer
461bc33fbf + fix typo in Raytracing dialog 2016-02-27 15:07:16 +01:00
triplus
e53e0ab0f5 Added RadiosityOutdoorHQ.pov 2016-02-27 03:11:45 +01:00
triplus
f66998e996 Create RadiosityOutdoorHQ.pov 2016-02-27 03:10:01 +01:00
triplus
d432c72a15 Add SVG workbench icons 2016-02-26 23:17:43 +01:00
Yorik van Havre
28b6c82555 Added updated translations from crowdin - fixes #2443 2016-02-26 18:32:02 -03:00
Yorik van Havre
d3870968df Draft: Fixed undo mode of wires - fixes #2456 2016-02-26 16:11:13 -03:00
Yorik van Havre
a1f16cabec Merge pull request #101 from wood-galaxy/sketcher-micro-sizing
Sketcher : Allow µm in sketcher grid size
2016-02-25 12:00:01 -03:00
Jonathan Wiedemann
a7e05382ad Merge branch 'master' into bim-ifcproperty-6 2016-02-25 11:24:27 +01:00
Jonathan Wiedemann
604fc320cf Arch - IFC : Handle case where NominalValue is None 2016-02-25 11:23:10 +01:00
maurerpe
3f3d8a95f5 Fix remaining toAscii/fromAscii
Qt5 does not have toAscii or fromAscii.  Use toLatin1 and fromLatin1
respectively.  Both replacement functions exist in Qt4.8.
2016-02-24 23:56:43 +01:00
wmayer
63e09bcbc2 + add convenience methods to query/alter selection of mesh object 2016-02-24 21:31:12 +01:00
wmayer
d891ddba33 + fix a memory leak in mesh selection 2016-02-24 21:00:26 +01:00
wmayer
5342b67122 + when cutting scattered points then also remove colors, grey values or normals if available 2016-02-23 19:47:54 +01:00
wmayer
869e7870f5 + in pad dialog make sure not to compare quantities with different units 2016-02-23 11:34:04 +01:00
Yorik van Havre
9e551e0fdb Merge pull request #95 from wood-galaxy/bim-ifcproperty5
Arch BIM IFC : Add IFC Properties spreadsheet container
2016-02-22 20:35:28 -03:00
Yorik van Havre
c6af697230 Draft: avoid blocking keys in fields that can be used for units 2016-02-22 20:16:51 -03:00
Daniel Taylor
e5f1f4df3d Basic helical plunge and linear-ramp plunging 2016-02-21 09:45:29 -06:00
Daniel Taylor
377595647d Fixed "prnt" function to properly limit to 4 decimal places
Greatly simplify rebaseWire
2016-02-21 09:45:29 -06:00
wmayer
a3209e1aee + do some code cleanup and renaming in Points module 2016-02-21 16:18:28 +01:00
wmayer
24e4e08be5 + view provider for scattered and organized point clouds 2016-02-21 13:52:17 +01:00
wmayer
7bdecf9b38 + handling of organized point cloud 2016-02-20 22:19:47 +01:00
Jonathan Wiedemann
6b7190d3f0 Arch BIM IFC : Add IFC Properties spreadsheet container 2016-02-20 13:25:26 +01:00
Yorik van Havre
4928624d14 Arch: Small workaround in IFC importer 2016-02-19 18:08:12 -02:00
Jonathan Wiedemann
f16a26662d Sketcher : Allow µm in sketcher grid size 2016-02-19 16:32:25 +01:00
Jonathan Wiedemann
e37cdf15cf Arch Change default value
Comment some print
2016-02-19 16:20:57 +01:00
Yorik van Havre
577f208da7 Revert "FEM: Updated fix to constraint displacement reference deletion, update hide show, remove custom input writer, update vertice, edge, face selection."
This reverts commit ac4d466443.
2016-02-19 00:05:55 -02:00
Yorik van Havre
fa6046ea19 Draft: fixes in line/wire creation by angle 2016-02-18 20:09:19 -02:00
vginkeo
ac4d466443 FEM: Updated fix to constraint displacement reference deletion, update hide show, remove custom input writer, update vertice, edge, face selection. 2016-02-18 19:15:16 -02:00
Eivind Kvedalen
9606fb144a Spreadsheet: Updated test cases. 2016-02-18 16:54:43 +01:00
Eivind Kvedalen
b74b3f3358 Spreadsheet: Refactor code and reuse visitors from ExpressionVisitors.h 2016-02-18 16:54:42 +01:00
Eivind Kvedalen
1802d94a1a Spreadsheet: Override DocumentObject::renameObjectIdentifiers() to get better renaming support. 2016-02-18 16:54:42 +01:00
Eivind Kvedalen
8c943d0ad7 Spreadsheet: Refactored code to use AtomicPropertyChangeInterface. 2016-02-18 16:54:40 +01:00
Eivind Kvedalen
53dcaccd4e Spreadsheet: Refactored alias checking code, so GUI and Python error messages are aligned. 2016-02-18 16:54:39 +01:00
Bernd Hahnebach
183f8dfebe FEM: fix unit test cases 2016-02-17 19:36:16 +01:00
Bernd Hahnebach
2f2e6e8f8c FEM: infile fix, youngs modulus and poisons ratio
have to be in one line for ccx 2.9
2016-02-17 19:36:16 +01:00
wmayer
1a64c3f2dc + fixes #0001592: Import colored PCL point clouds 2016-02-14 22:46:27 +01:00
wmayer
fbd6f9002c + fix to load mesh with colours 2016-02-13 20:01:47 +01:00
Yorik van Havre
0e897b86c0 Merge pull request #93 from ianrrees/20160213-fix-non-gui-build
Add cmake checks for BUILD_GUI to some modules
2016-02-13 14:37:58 -02:00
wmayer
408d7a9ba8 + translation fixes 2016-02-13 16:48:24 +01:00
Ian Rees
e242e4643b Add cmake checks for BUILD_GUI to some modules 2016-02-13 13:45:27 +13:00
Yorik van Havre
d0bc467e6a Path: Fixed some more translation contexts 2016-02-12 20:29:28 -02:00
Yorik van Havre
a649c3ca31 Arch: Fixed window bug - fixes 2449 2016-02-12 20:19:59 -02:00
Yorik van Havre
6a35ef38c7 Updated ts files 2016-02-12 14:22:04 -02:00
vginkeo
b1dc2cbf94 FEM: Implement constraint displacement in C++ 2016-02-12 11:09:58 +02:00
Yorik van Havre
6a103493a1 Arch: small fix in IFCexport 2016-02-11 20:06:06 -02:00
Yorik van Havre
5388520a20 Merge branch 'master' of github.com:FreeCAD/FreeCAD 2016-02-11 14:57:11 -02:00
Yorik van Havre
ce8ed2ade3 Path: Enabling highlight/selection colors in paths 2016-02-11 14:55:37 -02:00
Jonathan Wiedemann
5c5e62ffbd Arch BIM IFC : Handle utf8 for IfcDescriptiveMeasure 2016-02-11 15:49:58 +01:00
Yorik van Havre
f942bf2729 Arch: Enabled IFC4 export and fixed a couple of bugs 2016-02-10 15:35:21 -02:00
Yorik van Havre
381dcfe7e3 Draft: Fixed problem with addPoint and delPoint buttons 2016-02-10 15:34:54 -02:00
wmayer
33344be035 + support of colors per vertex in obj mesh format 2016-02-10 15:09:04 +01:00
Yorik van Havre
45f059d3a9 Draft: replaced the Draft OK task button with a more clear 'Create Point' button. 2016-02-09 17:58:22 -02:00
Yorik van Havre
7ff4e28599 Path: Fixed translation stuff - issue #2443 2016-02-09 17:05:57 -02:00
Yorik van Havre
42c42fd064 Draft: removed redundant transactions in Draft edit mode 2016-02-09 13:11:46 -02:00
wmayer
beb52c4e65 + replace old C cast with static_cast 2016-02-09 16:02:44 +01:00
wmayer
fe8be472a9 + fix unit tests 2016-02-09 16:00:38 +01:00
Yorik van Havre
1324575b35 Arch: Fixed missing views of windows 2016-02-05 19:05:15 -02:00
Yorik van Havre
32b6d4af9c Added draft & arch tests to the Test GUI 2016-02-05 16:47:36 -02:00
Yorik van Havre
d4d9b7aee1 Arch: small fix in window placements 2016-02-05 13:09:40 -02:00
Jonathan Wiedemann
df3648a864 Arch - little IFC Spreadsheet adjustement 2016-02-05 02:08:23 +01:00
Jonathan Wiedemann
980b8dbeda Arch - Fix #2430 - Add IFC Spreadsheet properties system 2016-02-04 20:55:45 +01:00
Yorik van Havre
ba9e43abc4 Arch: simplifications of Window tool
* If an arch object is selected when creating a window, the window is always inserted in that object
* No more "create from scratch" mode.
* Now needs to create the sketch first, then press the window button
* Added "Auto-include" checkbox in window creation task, to disable auto-embedding
* Fixed wrong orientation of windows
2016-02-04 13:55:39 -02:00
Yorik van Havre
2e2192f88a Added slovenian language 2016-02-03 13:36:51 -02:00
Yorik van Havre
88be837f72 Arch: fixed bugs in IFC importer 2016-02-03 13:01:34 -02:00
Yorik van Havre
f3d66aa674 OpenSCAD: allow to enable verbose output in preferences 2016-02-03 12:04:48 -02:00
Yorik van Havre
35cc2879e5 Arch: fixed wrong syntax in IFC importer 2016-02-03 10:50:19 -02:00
Yorik van Havre
ab89c9af94 Draft: redraw wire arrow on file load - fixes #2424 2016-02-02 19:26:34 -02:00
Yorik van Havre
79a615f222 DXF and IFC pref pages can now be set to show on each import/export 2016-02-02 16:13:40 -02:00
Yorik van Havre
388ea0629c OpenSCAD: set legacy options when using importDXF 2016-02-02 14:19:40 -02:00
Bernd Hahnebach
e214567a64 Start: add FEM example to Start page 2016-02-02 07:18:48 +01:00
Bernd Hahnebach
b3f77dcc35 FEM: material task panel, save density in kg per m3 to material dictionay 2016-02-02 07:18:48 +01:00
Bernd Hahnebach
e9606a241a FEM: fix, transient material was used in some cases even if material was not changed 2016-02-02 07:18:47 +01:00
Bernd Hahnebach
efc9b712ae FEM: small changes in CalculiX standard steel material 2016-02-02 07:18:47 +01:00
Bernd Hahnebach
3690313065 FEM: use transient material for a saved None material too
this will reload material data saved into the None material
2016-02-02 07:18:46 +01:00
Bernd Hahnebach
60cdca01a8 FEM: fix, use uniqe names for materials in CalculiX input file 2016-02-02 07:18:46 +01:00
Yorik van Havre
37b1bdbe27 Updated translations with latest from crowdin 2016-02-01 23:32:58 -02:00
Yorik van Havre
fc9fe3ee00 Draft: fixed bug introduced by OK button 2016-02-01 20:28:30 -02:00
Yorik van Havre
04e9392e37 Draft: added a note to DXF options 2016-02-01 19:47:50 -02:00
Yorik van Havre
2688a2f501 Material: Fixed return value of the material editor 2016-02-01 19:35:48 -02:00
Yorik van Havre
704d3caf08 Draft: small bugfix in wires 2016-02-01 17:56:20 -02:00
Yorik van Havre
fdcd605498 Merge remote-tracking branch 'ovginkel/rtd_arrowssinglecommit' 2016-02-01 12:44:14 -02:00
Yorik van Havre
fe959b8986 Draft: bugfix in legacy DXF importer 2016-02-01 12:15:50 -02:00
vginkeo
80a791021b FEM: Constraint view sizing and scaling of indicators for force, pressure and fixed constraints and limit on steps. 2016-02-01 10:52:37 +02:00
Yorik van Havre
4cb5de6848 Arch: fixed OBJ import without GUI - fixes #2305 2016-01-31 16:53:54 -02:00
Yorik van Havre
87da750d56 Draft: fixed bug in task panels 2016-01-31 16:28:13 -02:00
Yorik van Havre
15a4976c97 Draft: implemented OK button in task dialogs - fixes #2423 2016-01-30 15:07:29 -02:00
Yorik van Havre
287e741210 Draft: Added Tick style for dimensions and wire/line arrows - fixes #2425 2016-01-30 14:46:38 -02:00
Yorik van Havre
d45abca952 Draft: fixed end arrow of lines/wires - fixes #2424 2016-01-30 14:31:32 -02:00
Yorik van Havre
645a83ad32 Arch: New behaviour against circular dependency can now be switched off in preferences 2016-01-29 12:29:03 -02:00
Yorik van Havre
3702820f00 Arch: Added an IFC pref option to disable clones creation on import 2016-01-29 00:28:47 -02:00
Yorik van Havre
5fbdd4ac66 Arch: bugfix in Structure creation 2016-01-28 13:53:58 -02:00
Jose Luis Cercos Pita
feb9b58a7e Added the matplotlib navigation toolbar, and methods to toogle it on/off 2016-01-28 10:25:53 +01:00
Jose Luis Cercos Pita
f07f047bbf Fixed deprecation warning when matplotlib 1.4 is used 2016-01-28 10:24:35 +01:00
Yorik van Havre
2eb194776b Merge pull request #82 from bblacey/matplotlib-1.5
Upgraded Plot module to comply with matplotlib 1.5.x API
2016-01-27 21:55:02 -02:00
Yorik van Havre
23cc9ba32e Path: small fix in arcs rendering 2016-01-27 19:27:24 -02:00
wmayer
173f19eff4 + move handwritten Python classes to PyCXX 2016-01-27 18:07:48 +01:00
Bruce Lacey
9f907f5d1b Upgraded Plot module to comply with matplotlib 1.5.x API
Plot.py will check the version of matplotlib imported using the
distutils.version.StrictVersion class.  If the version is less
than 1.5.0, it will import the legacy gt4agg NavigationToolbar
from matplotlib, otherwise the 1.5.x version.

Resolves #2421
2016-01-26 22:31:29 -08:00
wmayer
c6740162bc + cleanup spreadsheet tests and corrected date & author 2016-01-26 21:33:31 +01:00
wmayer
d7dd512428 + small fixes in spreadsheet tests 2016-01-26 15:29:39 +01:00
wmayer
e0b12695b1 + write unit tests for Spreadsheet and expression stuff 2016-01-26 15:07:29 +01:00
Ed Martin
d71a12db05 Spreadsheet: Issue #2355: Do not recompute the spreadsheet and its dependents unless the change affects the spreadsheet 2016-01-26 12:04:55 +01:00
Eivind Kvedalen
ed29d8ef9a Spreadsheet: Fixed crash when removing aliases. 2016-01-26 11:14:06 +01:00
Eivind Kvedalen
bcff5d21ca Spreadsheet GUI: Issue #2402: Check for existing aliases in Properties dialog box. 2016-01-26 11:07:51 +01:00
Eivind Kvedalen
e8eef1dfcb Spreadsheet: Issue #2402: Added getAlias function. 2016-01-26 10:53:26 +01:00
Eivind Kvedalen
610466284b Spreadsheet: Issue #2402: Allow set to also accept alias name (in addition to cell address). 2016-01-26 10:53:03 +01:00
Eivind Kvedalen
301fcc2ab7 Spreadsheet: Issue #2402: Don't allow duplicate aliases. 2016-01-26 10:52:34 +01:00
Eivind Kvedalen
d45a95bf3a Spreadsheet: Issue #2402: Added functionality to get cell address given an alias. 2016-01-26 10:52:00 +01:00
wmayer
a583697e5a + fix CMakeLists.txt file of Ship module 2016-01-25 21:46:01 +01:00
Jose Luis Cercos Pita
621f7f49e0 Fixed index typo 2016-01-25 15:29:53 +01:00
Jose Luis Cercos Pita
ec752fd076 Merge remote-tracking branch 'upstream/master' 2016-01-25 15:26:18 +01:00
Jose Luis Cercos Pita
499c685668 Added the GZ curves computation tool to the console interface 2016-01-25 15:15:04 +01:00
Jose Luis Cercos Pita
f0770a7456 Added the loading conditions creation to the console interface 2016-01-25 09:11:19 +01:00
Jose Luis Cercos Pita
83d5217795 Added the capacity curve computation tool to the console interface 2016-01-25 08:50:57 +01:00
Yorik van Havre
cbdd18cef6 Path: Added pref setting to disable auto-include of new paths in projects 2016-01-24 21:04:02 -02:00
wmayer
57fadb1663 + handle crash with setup of Join commands in Part module in case PySide can't be found 2016-01-23 23:37:52 +01:00
Yorik van Havre
380b4a7b62 Path: Fixed non-functioning Path From Shape 2016-01-23 19:39:34 -02:00
Yorik van Havre
baf103ad0a Path: Added Simple Copy tool + Inspect tool can now save changes 2016-01-23 15:58:00 -02:00
Jose Luis Cercos Pita
c3ccd0f72c Added a console interface to the tanks generation 2016-01-23 14:35:56 +01:00
Jose Luis Cercos Pita
a615380027 Added a console interface to the weights generation 2016-01-23 14:21:25 +01:00
wmayer
27fbccaeab + rename method 'transform' to 'tramsformGeometry' for the classes PropertyNormalList and PropertyCurvatureList
+ make transformGeometry method ready for undo/redo
2016-01-22 13:18:24 +01:00
Jose Luis Cercos Pita
0a4a8191a2 Added all the Hydrostatics to the console interface 2016-01-22 13:17:13 +01:00
Yorik van Havre
7bba2ee9aa Path: better colors for PAth Inspector 2016-01-21 18:07:47 -02:00
Jose Luis Cercos Pita
c65dbe1db1 Implemented a generic method to move the ship shape in order to compute the hydrostatics 2016-01-21 20:14:57 +01:00
Jose Luis Cercos Pita
e1aa844e95 Added the possibility of computing the transversal areas from the console interface 2016-01-21 19:57:55 +01:00
Jose Luis Cercos Pita
55c63f414d Corrected the translation environment 2016-01-21 19:26:47 +01:00
Jose Luis Cercos Pita
94cc4b4e36 Updated the copyright notifications 2016-01-21 18:56:28 +01:00
Jose Luis Cercos Pita
495308905c Added a console interface to create the ship instance 2016-01-21 18:46:08 +01:00
Yorik van Havre
2ed8e5dd99 Path: misc bugfixes + restored node markers 2016-01-21 14:02:56 -02:00
wmayer
5033983c64 + code clean-up 2016-01-21 16:43:27 +01:00
wmayer
f47cc169ae + make code more readable 2016-01-21 16:07:07 +01:00
wmayer
c9f168d3a2 + simplify porting of Mesh module to Python3 2016-01-21 15:49:22 +01:00
wmayer
aa7aa64724 + simplify porting of Drawing module to Python3 2016-01-21 14:49:57 +01:00
wmayer
bf10bf33f6 + simplify porting of Fem module to Python3 2016-01-21 13:42:08 +01:00
wmayer
094a4352f1 + simplify porting of Complete module to Python3 2016-01-21 12:38:17 +01:00
wmayer
85d8d70411 + simplify porting of Image module to Python3 2016-01-21 12:27:12 +01:00
wmayer
a5b6e5d48a + simplify porting of Import module to Python3 2016-01-21 12:08:29 +01:00
Yorik van Havre
44ad4d94c7 Path: made tooltable editable by right-clicking the machine 2016-01-20 20:36:53 -02:00
wmayer
a07b9cd0d4 + simplify porting of Inspection module to Python3 2016-01-20 22:48:26 +01:00
wmayer
b5bf7d6b9d + simplify porting of MeshPart module to Python3 2016-01-20 22:38:45 +01:00
wmayer
3185e09806 Merge branch 'master' of https://github.com/FreeCAD/FreeCAD 2016-01-20 22:06:20 +01:00
wmayer
b10f838687 + simplify porting of Part module to Python3 2016-01-20 22:05:53 +01:00
Yorik van Havre
ba63d7af11 Path: reorganized tools 2016-01-20 19:05:12 -02:00
Yorik van Havre
08dda60d00 Path: ToolChange command + added Inspect command to context menu 2016-01-20 18:53:04 -02:00
Yorik van Havre
2262e7d60f Path: minor improvements to some icons 2016-01-20 17:44:19 -02:00
wmayer
91d6e24f1e + simplify porting of PartDesign module to Python3 2016-01-20 17:00:43 +01:00
Jose Luis Cercos Pita
9770cca561 Finished the GZ curve implementation 2016-01-20 15:13:00 +01:00
Jose Luis Cercos Pita
6315084f58 Slightly improved the capacity curve plot 2016-01-20 12:36:05 +01:00
Jose Luis Cercos Pita
d8e511f1dc Moved to a more robust Part module based boolean common operator 2016-01-20 12:35:47 +01:00
wmayer
ebc6d37262 + simplify porting of DraftUtils module to Python3 2016-01-20 11:57:59 +01:00
Jose Luis Cercos Pita
2814565850 Cleared out some debug messages 2016-01-20 11:52:36 +01:00
Jose Luis Cercos Pita
65df5010f8 Fixed a typo in the transformation angles 2016-01-20 11:51:59 +01:00
wmayer
cbe9c39a96 + fix typo 2016-01-20 11:22:27 +01:00
wmayer
f85d168ef0 + simplify porting of Path module to Python3 2016-01-20 11:21:06 +01:00
wmayer
281447780b + simplify porting of ReverseEngineering module to Python3 2016-01-20 10:26:50 +01:00
wmayer
a643463733 + simplify porting of Test module to Python3 2016-01-20 10:26:12 +01:00
Yorik van Havre
fa42bc451a Merge branch 'master' of github.com:FreeCAD/FreeCAD 2016-01-19 22:35:43 -02:00
Yorik van Havre
0d22ca8eaf Path: Added new series of tools and fixes
* Fixed UsePlacement property of Path Compounds
* Added Path FaceProfile command - does a simple 2D contour of a face
* Added Path FacePocket command - does a simple 2D pocket of a face
* Added Path Array command - does an array with copies of a path
* Added Path Custom command - to add custom G-Code
* Added Inspect command - to inspect the G-Code of a path
2016-01-19 22:31:46 -02:00
wmayer
cb92240458 + simplify porting of Points module to Python3 2016-01-20 00:00:41 +01:00
Yorik van Havre
f480791472 Made last commit non-C++11 compatible 2016-01-19 11:25:16 -02:00
Jose Luis Cercos Pita
3644dcbcab Added a much more robust displacement tool for the GZ computation 2016-01-19 13:16:32 +01:00
Jose Luis Cercos Pita
a5d7344f5a Modified the ship shpae transformation process during the hydrostatics computation 2016-01-19 11:16:36 +01:00
Jose Luis Cercos Pita
8cc3e62589 Improved the transversal areas computation 2016-01-19 10:14:02 +01:00
Ian Rees
b6a1fd85ea Added ability to change mesh export tolerance. 2016-01-19 20:44:17 +13:00
wmayer
05279d2846 + simplify porting of Raytracing module to Python3 2016-01-18 19:14:57 +01:00
wmayer
108149297f + simplify porting of Robot module to Python3 2016-01-18 18:26:37 +01:00
Jose Luis Cercos Pita
63f976e25a Implemented a draft of the GZ computation tool 2016-01-18 18:04:01 +01:00
Jose Luis Cercos Pita
a0a2a1012e Fixed typo in the capacity curve tool 2016-01-18 16:11:02 +01:00
Jose Luis Cercos Pita
7a53c17fde Added a weights and tanks collector 2016-01-18 15:38:44 +01:00
Jose Luis Cercos Pita
c99f4921ca Implemented GZ tool variables saving and loading 2016-01-18 14:41:50 +01:00
Jose Luis Cercos Pita
cf76a92996 Added console messages to know the computation progress 2016-01-18 13:15:05 +01:00
Jose Luis Cercos Pita
ce52c4b024 Set a different color to the z-vol curve (in order to make possible3 to differentiate that from the level-vol curve) 2016-01-18 13:10:53 +01:00
Jose Luis Cercos Pita
3ea9f6245d Removed the uneeded pivy imports 2016-01-18 13:01:23 +01:00
wmayer
65fe62d93b + simplify porting of Sketcher module to Python3 2016-01-18 12:19:54 +01:00
wmayer
bfdaa46feb + simplify porting of Sandbox module to Python3 2016-01-18 11:43:20 +01:00
Jose Luis Cercos Pita
e002c9e66d Merge remote-tracking branch 'upstream/master' 2016-01-18 10:49:36 +01:00
wmayer
36383135a8 + simplify porting of Spreadsheet module to Python3 2016-01-17 23:15:24 +01:00
wmayer
d78d747760 + simplify porting of Start module to Python3 2016-01-17 22:13:32 +01:00
wmayer
a467612b9f + simplify porting of Web module to Python3 2016-01-17 19:17:34 +01:00
wmayer
372704f44b + implement 'swap' for point kernel class to efficiently copy data 2016-01-15 23:20:06 +01:00
Yorik van Havre
9a27d5845f Draft: fixed gui bug in trimex 2016-01-14 13:39:24 -02:00
wmayer
6ed52e479b + fix crashes in ortho view panel 2016-01-13 17:40:20 +01:00
wmayer
ffcbb0b66c + improve error handling in projection panel in Drawing workbench 2016-01-13 14:48:51 +01:00
Yorik van Havre
0ba829de41 Fixed typo in last commit 2016-01-11 22:18:31 -02:00
Yorik van Havre
97aea8a4ed Arch: search for profiles.csv also in current dir 2016-01-11 22:08:02 -02:00
sgrogan
99731988d3 Copy Profiles.csv to data dir of build dir 2016-01-11 21:58:58 -02:00
Abdullah Tahiri
7fc7bdc302 Gui Enhancement: Support for macros in AppUserHome/Macro
=====================================================

What?
It was suggested that the macros should be moved to AppUserHome/Macro
http://forum.freecadweb.org/viewtopic.php?f=10&t=13433

Solution:
The solution is backwards compatible in the sense that if you have a running
configuration, updating should not change anything.

For new installations the macro directory will default to AppUserHome/Macro. However
this would break all the installation scripts (probably also ME's plugin manager).

Conflicts:
	src/Mod/Path/Gui/AppPathGuiPy.cpp
2016-01-11 19:24:22 +01:00
Yorik van Havre
86a1897eca Arch: small encoding fixes 2016-01-11 13:08:28 -02:00
wmayer
89cb247923 + handle degenerated ellipse for SVG output 2016-01-11 13:01:01 +01:00
Yorik van Havre
1e6a29eecf Path: added slic3r pre script 2016-01-10 19:58:02 -02:00
Yorik van Havre
fa3d8c4824 Arch: updated license block 2016-01-09 16:13:05 -02:00
Yorik van Havre
6121e8dea4 Arch: new presets system for structures 2016-01-09 16:04:11 -02:00
Abdullah Tahiri
81f216f9e3 Sketcher Bug fix: Solver information update on over-constrained situation
==================================================================================

Why?
if lastDoF<0, then an over-constrained situation has ensued and geometry is not to be updated, as geometry can not follow the constraints.
However, solver information needs to be updated.

Solution:
Just trigger a constraint change so that signaling is sent to ViewProviderSketch via boost and the solver information updated, using
Constraints.touch().
2016-01-09 13:42:12 +01:00
Eivind Kvedalen
d53cb8146e Spreadsheet: Issue #2388: The SheetObserver should ignore changed properties that don't have a name. 2016-01-08 23:09:00 +01:00
Eivind Kvedalen
a760487ad2 Spreadsheet: Don't update line edit on top unless we have to. 2016-01-08 23:09:00 +01:00
Eivind Kvedalen
160d88c883 Spreadsheet: Clear line edit on top when current cell is cleared. 2016-01-08 23:09:00 +01:00
Eivind Kvedalen
e523638c75 Spreadsheet: Enable tooltip for error messages. 2016-01-08 23:09:00 +01:00
Yorik van Havre
bf19e80de1 Arch: fixed encoding bugs 2016-01-07 15:27:49 -02:00
Yorik van Havre
7691e22c59 Arch: handle ifcopenshell error when shape is not available 2016-01-07 12:09:17 -02:00
Bernd Hahnebach
edac98b7ee FEM: small improvements in the regard of flake8 compatiblity 2016-01-06 11:13:38 -02:00
Bernd Hahnebach
c60c70eb7b FEM: delete no longer needed EditorMode Setting
the properties are set to read only in the C++ constructor allready.
See commit 1a8c643d50
2016-01-06 11:13:38 -02:00
Bernd Hahnebach
0ba0f7a55d FEM: set solver type property to read only the hard way 2016-01-06 11:13:38 -02:00
Bernd Hahnebach
feb8c0685e FEM: make result stats read only in property editor 2016-01-06 11:13:38 -02:00
Yorik van Havre
fd14c1e3c3 Draft: small change in DXF pref page layout 2016-01-06 10:56:25 -02:00
Yorik van Havre
5c2ed74292 Merge branch 'master' of github.com:FreeCAD/FreeCAD 2016-01-05 20:20:42 -02:00
Yorik van Havre
87397a2512 Drawing: support for text alignment in Spreadheetview 2016-01-05 20:20:25 -02:00
wmayer
53024a6140 + do not include from .qrc generated .cpp file from other .cpp file but add it to build system 2016-01-05 17:35:58 +01:00
wmayer
a9189fb052 + use TRUE and FALSE for Vrml output (reverts part of commit 7d0e892d3) 2016-01-05 17:27:56 +01:00
Mateusz Skowroński
7d0e892d36 Qt4's qglobal.h defined TRUE and FALSE. Qt5 does not do it anymore. Replace it with true and false.
158f39ec78

This change is Qt4/Qt5 neutral.
2016-01-05 16:43:33 +01:00
Mateusz Skowroński
db345cb624 Change includes in Spreadsheet to be compatible with Qt5.
This change is Qt4/Qt5 neutral.
2016-01-05 16:10:40 +01:00
Mateusz Skowroński
3b463f2138 Qt::WFlags is obsolete in Qt5. Replace it with Qt::WindowFlags.
This change is Qt4/Qt5 neutral.
2016-01-05 16:07:58 +01:00
Mateusz Skowroński
cd2db00f22 QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
This change is Qt4/Qt5 neutral.
2016-01-05 16:07:25 +01:00
Mateusz Skowroński
d5c074f80d QString::toAscii() is obsolete in Qt5. Replace it with toLatin1().
This change is Qt4/Qt5 neutral.
2016-01-05 16:06:48 +01:00
Yorik van Havre
c5b8b7c0a4 Draft: fixed bug in DXF export because of last commit - fixes #2391 2016-01-05 12:15:44 -02:00
Yorik van Havre
1e578c4f1a Draft: don't check anymore for python DXF libs if using the C++ importer 2016-01-04 22:19:13 -02:00
Yorik van Havre
273131c088 Draft: finished new DXF importer - fixes #2205 2016-01-04 18:01:34 -02:00
wmayer
da83100728 + fix major flaw in Spreadsheet module: do not include precompiled header in other header files
+ fix linking errors in drawing module
2016-01-04 16:03:00 +01:00
wmayer
1d05f9c66e + support cutting of coloured mesh 2016-01-04 14:39:54 +01:00
Yorik van Havre
1747fb643f Updated ts files prior to translation cycle 2016-01-03 19:45:29 -02:00
Yorik van Havre
85fdc8c76b Drawing: Add SpreadsheetView command - fixes #1805 2016-01-03 16:44:56 -02:00
wmayer
145fe4a364 + fix build failure with gcc 2016-01-03 19:30:03 +01:00
wmayer
b6faaefaf8 + handling of colored mesh in view provider 2016-01-03 01:16:00 +01:00
wmayer
dd9e8c5bb1 + make faster reading ply mesh files 2016-01-03 01:14:48 +01:00
wmayer
0ea477b420 + fix rendering bug for colored 2016-01-01 15:37:05 +01:00
wmayer
50d7793442 + introduce proper enum for property status to replace plain integers 2016-01-01 15:36:24 +01:00
wmayer
342198ea87 + support reading mesh files with colors 2015-12-31 21:07:04 +01:00
wmayer
5e0f2ae418 + use custom points feature to read in ply with properties 2015-12-31 15:50:56 +01:00
wmayer
3b139c9bb1 + add custom points feature 2015-12-31 15:40:19 +01:00
wmayer
07b36e6bca + extended ply reader based on pcl to read-in attached properties 2015-12-31 15:36:16 +01:00
wmayer
ebbb68d978 + fixes #0002385: unable to set value higher than 99.99 on Distance value in Part->Cross Sections 2015-12-31 12:25:54 +01:00
wmayer
715ae4e225 + fix compiler warning 2015-12-30 16:49:51 +01:00
wmayer
0135094133 Merge branch 'master' of https://github.com/FreeCAD/FreeCAD 2015-12-30 16:25:27 +01:00
wmayer
17d7dd840e + add points view feature and command to triangulate it 2015-12-30 16:25:08 +01:00
Yorik van Havre
39a55cf951 Draft: small fix in patterns 2015-12-30 12:30:40 -02:00
wmayer
7d96d0f0c8 + optimize view provider for points, improve white spacing 2015-12-30 15:19:47 +01:00
wmayer
1274967208 + add support to PointKernel to get valid points 2015-12-30 15:18:05 +01:00
wmayer
4e3856acc8 + remove feature classes to import/export points 2015-12-30 15:16:22 +01:00
wmayer
ad2c4c23d0 + fix compiler warnings 2015-12-30 10:58:14 +01:00
wmayer
c2b66766b2 + optimize algorithm to get curvature on mesh points and drop dependency to WildMagic 2015-12-30 10:26:53 +01:00
Yorik van Havre
d989acaae8 Draft: Added a grid toggle button to the snap toolbar 2015-12-29 12:10:22 -02:00
Yorik van Havre
ed037c138e Arch: Fixed section plane's clipping - fixes #2063 2015-12-28 16:56:53 -02:00
Yorik van Havre
353b2df3d3 Draft: fixed bug when loading objects with pattern set 2015-12-28 12:56:53 -02:00
Yorik van Havre
bbfacbc883 Arch: fixed vanishing windows when host wall is hidden - fixes #1604 2015-12-28 12:27:37 -02:00
Abdullah Tahiri
86f0454414 Sketcher: Solver: FullPivLU::compute for Eigen-3.3
==================================================

This fix enables usage of the Eigen SparseQR starting in Eigen-3.3. It optimizes the code enabling it
to work with the new assignation interface of Eigen-3.3, which is more strict than that of Eigen-3.2.

It provides the same optimization for DenseQR code, and omits the extraction of the Q matrix in DenseQR
as this is not used anywhere else.

[NOTE: This is only to be merged after Debian has updated the Eigen-3.3-alpha1 package]

See:
http://forum.freecadweb.org/viewtopic.php?f=10&t=12769&start=30#p104740
https://forum.kde.org/viewtopic.php?f=74&t=129115
2015-12-28 11:51:34 -02:00
Abdullah Tahiri
e9af05f911 Sketcher: Solver: FullPivLU::compute for Eigen-3.3
==================================================

This fix enables usage of the Eigen own compute function starting in Eigen-3.3, as now it is fixed in Eigen.

[NOTE: This is only to be merged after Debian has updated the Eigen-3.3-alpha1 package]

See:
http://forum.freecadweb.org/viewtopic.php?f=3&t=4651&start=40
http://forum.freecadweb.org/viewtopic.php?f=10&t=12769&start=60#p106492
https://forum.kde.org/viewtopic.php?f=74&t=129439
2015-12-28 11:51:34 -02:00
wmayer
e0683f4db0 + fixes #0002347: freecad fails to build with Boost 1.60.0 2015-12-28 13:54:40 +01:00
Yorik van Havre
1f4f94017a Draft: Unified in-drawing shortcuts with what is shown in the GUI 2015-12-27 14:00:02 -02:00
wmayer
462ec49297 + fixes #0001956: FreeCAD 0.14.370x hangs when attempting to edit sketch containing ellipse 2015-12-27 11:44:47 +01:00
Yorik van Havre
e98347960d Draft: x,y and z fields are now auto-masked when second point is horizontal or vertical 2015-12-26 20:19:52 -02:00
Yorik van Havre
026dc8678c Merge pull request #73 from wood-galaxy/arch-wall-negative-offset
Arch/Wall : allow negative value to Offset property
2015-12-26 17:57:57 -02:00
Yorik van Havre
08b79eb4dd Draft: fixed focus on first field when starting a draft command 2015-12-26 13:45:09 -02:00
Yorik van Havre
93ccc88f74 Draft: fixed non-focused taskview fields 2015-12-25 20:05:55 -02:00
wmayer
d8088c5db0 + improve whitespaces 2015-12-25 10:56:03 +01:00
wmayer
51c7a8eecc + improve whitespaces 2015-12-25 10:37:52 +01:00
wmayer
632eaeadeb + fixes #0002372: Application terminates on attempt to change external geometry from a sketch
+ fixes #0002373: When Measuring in the distance between two external geometry Freecad crashes
2015-12-25 09:47:25 +01:00
Jonathan Wiedemann
3c0927650d Arch/Wall : allow negative value to Offset property 2015-12-24 03:04:37 +01:00
Yorik van Havre
3bbddc8675 Drawing: Added python feature to ViewProviderDrawingView - fixes #2276 2015-12-23 17:03:46 -02:00
Yorik van Havre
aac4205d1d Draft: small fix in trimex snap mode 2015-12-23 15:19:03 -02:00
wmayer
ff806af026 Merge branch 'master' of https://github.com/FreeCAD/FreeCAD 2015-12-23 15:44:38 +01:00
wmayer
4f2291f420 + implement property editor item for FEM mesh 2015-12-23 15:44:11 +01:00
wmayer
b55defa4f3 + add missing comma in property item 2015-12-23 15:43:29 +01:00
Jonathan Wiedemann
7913e608be Arch : Add Align property to StructuralSystem 2015-12-23 12:35:01 -02:00
Yorik van Havre
a1f82e443e Draft: small fix in Arch Axes SVG output 2015-12-23 12:13:29 -02:00
Yorik van Havre
94dd07297d Draft: Fixed display of Arch axes on Drawing views 2015-12-23 11:55:34 -02:00
Yorik van Havre
474c114e66 Arch: fixed projection of Drawing views of arch sectionplanes - fixes #2233 2015-12-23 11:32:36 -02:00
Yorik van Havre
38d90ab4c2 Draft: Fixed arc bug in DXF export - fixes #2208 2015-12-22 11:54:55 -02:00
Mateusz Skowroński
99ca18f541 QInputDialog::getInteger() is obsolete in Qt4. Replace it with getInt().
This change is Qt4/Qt5 neutral.
2015-12-22 14:18:47 +01:00
Mateusz Skowroński
d3d01db9e2 QFileDialg::setFilters() is obsolete in Qt4. Replace it with setNameFilters().
This change is Qt4/Qt5 neutral.
2015-12-22 14:18:45 +01:00
Mateusz Skowroński
4d85f0e40b QWidget::setShown() is obsolete in Qt4. Replace it with setVisible().
This change is Qt4/Qt5 neutral.
2015-12-22 14:18:45 +01:00
Yorik van Havre
eca0e54bf3 Arch: small encoding bugfix 2015-12-21 12:37:57 -02:00
Yorik van Havre
aad6ef004d Arch: improvements to Axis - fixes #2138
* Fixed small bugs
* More options to position the bubble (start, end or both)
* Properties for text size and font
2015-12-21 12:21:31 -02:00
Eivind Kvedalen
fca2e2671a PropertyConstraintList: Use correct indices when checking the constraint type. 2015-12-21 14:11:14 +01:00
Yorik van Havre
19fd2c3195 Arch: set the Lenght property of walls automatically when based on baselines 2015-12-20 12:41:25 -02:00
Yorik van Havre
5fa85ad31b Draft: disabled moving siblings when moving an object 2015-12-19 22:32:56 -02:00
Yorik van Havre
d6920a07c3 Arch: Walls now adopt the current working plane orientation on creation - fixes #2175 2015-12-19 12:53:20 -02:00
Yorik van Havre
5b750aabe3 Arch: Creating windows no longer removes external refs from base sketches - fixes #2326 2015-12-18 22:11:53 -02:00
wmayer
73a716c82f Merge branch 'master' of https://github.com/FreeCAD/FreeCAD 2015-12-18 22:48:53 +01:00
Eivind Kvedalen
db2f868bbe Sketcher: Fixed setPathValue to convert angles to radians before they are stored in the Constraint object. This mimics the setDatum implementation. 2015-12-18 22:05:30 +01:00
Yorik van Havre
dab7ef4262 Draft: workaround for exporting DXF with R14+ templates - fixes 2177
- Adapted Drawing algos to export R14+ compatible DXF code
- Added option in DXF prefs to disable groups (not supported in R14+ templates)
2015-12-18 10:47:14 -02:00
Yorik van Havre
45292eb9ee Arch: IFC bugfix + added pref option to use DAE triangulation options 2015-12-18 10:39:40 -02:00
DeepSOIC
4057de6346 OpenSCAD: fix replaceChild
was broken because it failed trying to set a read-only
"ExpressionEngine" property
2015-12-17 03:34:16 +03:00
Yorik van Havre
43e0083c72 Draft: Added editmode to facebinders - fixes #2165 2015-12-16 15:30:43 -02:00
Jonathan Wiedemann
2669aa6206 Allow negative value in Draft's pref : Ext Line size 2015-12-16 13:03:46 +01:00
Yorik van Havre
e71787d37a Draft: fixed bug in wire offsets - fixes #1975 2015-12-15 11:11:57 -02:00
Yorik van Havre
472e6b777a Draft: shape2Dview now projects along the current view direction - fixes #2367 2015-12-14 19:32:35 -02:00
wmayer
f7a2ffc457 Merge branch 'master' of https://github.com/FreeCAD/FreeCAD 2015-12-13 19:19:58 +01:00
wmayer
1a8c643d50 + make properties of FEM result object read-only for property editor 2015-12-13 19:19:38 +01:00
Yorik van Havre
c850d622b7 Draft: Added properties to subdivide rectangles into columns and rows - fixes #2340 2015-12-13 12:32:43 -02:00
Yorik van Havre
c66be818b9 Path: added .gcode extension to available gode file formats 2015-12-13 12:31:53 -02:00
wmayer
f26844e1bc + allow to clear installed firewall 2015-12-13 14:36:41 +01:00
wmayer
f46393efe7 Report 'None' for successfully executed commands in server, implement a simple firewall to block commands 2015-12-13 14:24:15 +01:00
Yorik van Havre
97311dfd0a Merge remote-tracking branch 'sgrogan/Idf-fix' 2015-12-12 13:00:36 -02:00
Yorik van Havre
18346619ae Draft: Changing text or arrows of a Dimension now marks it to be recomputed 2015-12-12 12:31:36 -02:00
Yorik van Havre
3dcc557e65 Draft: more consistent behaviour for Clones when trying to edit them - fixes #2198 2015-12-11 11:08:30 -02:00
Bernd Hahnebach
0f7a13a8a8 FEM: fix loading frequency in solver control command 2015-12-11 13:32:23 +01:00
sgrogan
4d4d292cf0 Make Idflibs consistent for installed and uninstalled builds 2015-12-10 16:37:25 -05:00
Yorik van Havre
be9920a132 Arch: obj exporter now skips bad objects instead of stopping 2015-12-10 15:46:09 -02:00
Yorik van Havre
b7a9bf9505 Merge pull request #68 from l3iggs/patch-1
fixes #0002358
2015-12-10 13:23:11 -02:00
Yorik van Havre
d65c96099e Draft: Lines and Wires now have a Subdivisions property - fixes #1593 2015-12-10 13:20:48 -02:00
l3iggs
4901553a2d fix for 0002358
This strips off any trailing '-' text reported by openscad when asking it for its version.
2015-12-10 14:50:01 +00:00
wmayer
7e261db1a2 Merge branch 'master' of https://github.com/FreeCAD/FreeCAD 2015-12-09 15:09:57 +01:00
Yorik van Havre
b876489b46 Arch: small fix in Structure - fixes #2186 2015-12-09 11:30:51 -02:00
Stefan Tröger
dcad131357 Expressions: Fix property editor behavior
- change responsibility of python code emition
- Correct python code handling for expressions
- handle constraints expressions handling
2015-12-09 14:08:50 +01:00
Stefan Tröger
4203a6f35b Expressions: Integrate into the property editor
- basic infrastructure for handling of expressions
- port the unit properties editor to support expressions
- port placement editor to support expressions
- expressions for double spinbox
- expressions in sketch constraints
2015-12-09 14:08:48 +01:00
Abdullah Tahiri
501fa80e4d Sketcher: Fix Sketch Mirror functionality
=========================================

The problem:
Mirror stopped working.

How to reproduce:
Select a sketch, and apply "Mirror Sketch" from the menu.

Why?
With the introduction of expressions, mirror sketch stopped working. The reason is that mirror functionality did use the "clone" function to make copies of constraints
and then modify their values. After expessions introduction, which introduces a unique tag per constraint, this copy was regarded as a "rename" of the original constraint
as they shared the unique tag.

Fix?
New function "copy()" for a constraint, that copies all the content but the tag.
2015-12-09 13:32:12 +01:00
wmayer
118d2eb531 + fix typo in FEM 2015-12-09 13:19:13 +01:00
Eivind Kvedalen
ae6b934207 Spreadsheet: Fixed PropertySheet::Paste(); undo did not work correctly. 2015-12-09 12:15:15 +01:00
Eivind Kvedalen
aef7bbdf62 Spreadsheet: AggregateFunctionExpression missed its own implementation of copy().
This causes a crash during undo if this class is used.
2015-12-09 12:15:15 +01:00
Eivind Kvedalen
71605e63ef Spreadsheet: Fixed issue #2352, removal of rows and columns. 2015-12-09 12:15:13 +01:00
Eivind Kvedalen
4b5ae54e88 App: Removed VariableExpression::setName(), and replace call by setPath(); it's use caused a crash (#2352). 2015-12-09 12:15:12 +01:00
Yorik van Havre
c67b2bed45 Draft: Fixed offset of arcs - fixes #1993 2015-12-08 12:01:28 -02:00
Yorik van Havre
a97992a537 Arch: added button to edit text position in Arch Spaces edit mode - fixes #2339 2015-12-07 12:30:20 -02:00
Yorik van Havre
1da0ec65c3 Draft: added radial & diameter dim support to DXF import - fixes #2162 2015-12-05 16:50:30 -02:00
Yorik van Havre
2e91633da9 Draft: Added mirror tool (more graphical version of Part Mirror) - fixes #2215 2015-12-05 14:19:35 -02:00
Yorik van Havre
cf3e69de08 Arch: removed global state of ifcfile 2015-12-05 13:49:02 -02:00
Bernd Hahnebach
6d2877444c Arch: ifc: fix import of archobj walls if structobj import is activated 2015-12-05 13:46:34 -02:00
wmayer
93b53f1662 + add several surface reconstruction methods from pcl to Reen module 2015-12-05 16:19:18 +01:00
Yorik van Havre
fd191b802e Draft: Fixed grid jump in edimode - fixes #2104 2015-12-03 22:59:50 -02:00
Bernd Hahnebach
9e114a8b59 FEM: make cccFrdReader flake8 compatible 2015-12-03 18:50:06 -02:00
fandaL
cf22522290 FEM: frd mesh import rearrange repeating if 2015-12-03 18:50:06 -02:00
fandaL
98cd075a84 FEM: frd import mesh - added HEX20, PENTA6, PENTA15 2015-12-03 18:50:06 -02:00
Bernd Hahnebach
32624cbe94 Arch: on ifc import do no longer decode unicode strings before encode them 2015-12-03 18:46:23 -02:00
Yorik van Havre
cf1c02271f Draft: more consistent offset result - fixes #2027 2015-12-03 18:25:32 -02:00
Yorik van Havre
3414ec8af1 Arch: IFC importer doesn't choke anymore on rebars 2015-12-02 21:51:27 -02:00
Yorik van Havre
7594bb6f31 Merge branch 'master' of github.com:FreeCAD/FreeCAD 2015-12-02 21:31:28 -02:00
Yorik van Havre
047998de87 Draft: other bugfix in downgrade - fixes #2260 2015-12-02 21:31:23 -02:00
Yorik van Havre
d0dac0c658 Draft: fixed bug in downgrade - fixes #2261 2015-12-02 21:25:37 -02:00
wmayer
7eb7be3936 + add Poisson surface reconstruction 2015-12-02 23:36:26 +01:00
Yorik van Havre
1acf487040 Arch: Added more meshing options for Collada exporter - fixes #2341 2015-12-02 18:42:30 -02:00
Yorik van Havre
9f4c54d33a Draft: small bugfix 2015-12-01 22:14:59 -02:00
wmayer
2b2358e70b + fix warnings with Win32 build 2015-12-01 00:51:57 +01:00
wmayer
244054ff1f + reorder header to fix warnings with Win32 build 2015-11-30 20:38:19 +01:00
Yorik van Havre
fd802bad80 Arch: Allow to draw walls by entering length, width and height on the GUI - fixes #2000 2015-11-30 15:40:52 -02:00
Yorik van Havre
a557cd4cc5 Draft: fixed buggy global copy mode 2015-11-30 15:39:43 -02:00
Bernd Hahnebach
c78f57a78a FEM: fix node order of seg3 in ViewProwiderFemMesh 2015-11-30 11:21:51 -02:00
Bernd Hahnebach
d8af8693b4 FEM: fix node order of seg3 (B32) in writeAbaqus 2015-11-30 11:21:51 -02:00
Yorik van Havre
8bc013140e Draft: Fixed arrows at endpoints of wires - fixes #2066 2015-11-29 12:47:06 -02:00
Bernd Hahnebach
b2080f945a FEM: fix not closing taskd of _CommandSolverJobControl 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
ea2a0d12c2 FEM: do not allow to add multiple soler with gui 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
ce3284624f FEM: make selection of quick analysis consistent with solverJobControl 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
f3a1ef31db FEM: raise exception if multiple solver or mesh are in an analysis, they are not yet supported 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
592e26fc41 FEM: replace Calculix with CalculiX in strings 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
a25c4ac7da FEM: delete FemExample since there is no example inside 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
fb7153d5fe FEM: delete not used import FemGui 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
9d2d92336e FEM: rename modul MechanicalAnalysis to FemAnalysis 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
03d1d32e38 FEM: rename command MechanicalJobControl to SolverJobControl 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
882db04b3c FEM: activate CommandMechanicalJobControl with_Solver selected 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
181262b39d FEM: rename TaskPanelJobControl to TaskPanelFemSolverCalculix 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
39c3662da8 FEM: include calculix solver objekt if new analysis is created 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
42913ca0cf FEM: fix test frame work 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
6865e35fd9 FEM: add CalculiX solver object 2015-11-28 20:04:22 -02:00
Author qingfengxia
80cf664ec8 FEM: new solver object implementation of the object 2015-11-28 20:04:22 -02:00
Author qingfengxia
3918d9fbe5 FEM: new solver object icon 2015-11-28 20:04:22 -02:00
Bernd Hahnebach
006bf802f4 FEM: fix some line endings 2015-11-28 20:04:22 -02:00
Yorik van Havre
9d0f4ba46e Arch: Added editmode to Section Planes - fixes #2098 2015-11-28 14:51:40 -02:00
wmayer
6111f55a89 + correctly handle toggle selection in BRep shape nodes 2015-11-28 16:21:20 +01:00
Abdullah Tahiri
19c840e1ab Sketch: Solver: Extended Advanced Solver configuration
========================================================

This is an advanced setting just for allowing increased choices to power users that have problems with a given sketch and want to
test different flavours of DogLeg algorithm.

This commit does not change the default behaviour of FreeCAD. It is only intended to give more options to power users.

The advanced solver configuration is extended to support three different Gauss-newton steps for DogLeg:

FullPivLU => h_gn = Jx.fullPivLu().solve(-fx);
LeastNormFullPivLU => h_gn = Jx.adjoint()*(Jx*Jx.adjoint()).fullPivLu().solve(-fx);
LeastNormLdlt => h_gn = Jx.adjoint()*(Jx*Jx.adjoint()).ldlt().solve(-fx);

This setting is applied only to DogLeg. It is applied to DogLeg as normal or redundant solver, if DogLeg is the selected solver.

Selecting a solver different from DogLeg for both normal and redundant disables the setting.

We have been told:
https://forum.kde.org/viewtopic.php?f=74&t=129439#p346104

that our default Gauss-Newton step in DogLeg may not be adequate in general (we generally deal with underconstraint systems
unless we have a fully constraint sketch, and even then it is many times overconstraint at least for redundant solving).

We have been told that maybe these LeastNorm options are more suitable for us (performance set aside). This enables you as power
user to test if it works fine with FreeCAD.
2015-11-28 13:08:31 +01:00
Abdullah Tahiri
aa6908b144 Sketch: Solver Defaults: Sketch size multiplier OFF
===================================================

This commit sets the sketch size multiplier OFF by default (so the number of iterations DogLeg/BGFS/LM is not sketch size dependent).

In complicated sketches having a high number of parameters, with sketch multiplier on, the number of iterations is extremely high (100 parameters*100 iterations => 10000 iterations).

The idea of disabling this comes from tests performed by DeepSOIC and from my own experience using the Sketcher. In general
sketch multiplier makes FreeCAD unresposive (very high amount of iterations, not a real freeze) in big sketches so that users
end up killing the application. This is preventing the users from taking appropriate action, Developers from getting the information of the failure and
users angry.

The idea is that even for complicated sketchs N iterations (100 by default) should be enough to converge, if it is ever going to converge. Experience will tell us
if we have to increase this number in the range [100-300]. 100 iterations in complicated dossiers is in my experience generally under 30 seconds.

N.B.: This commit does not change the defaults stored in your computer, so if you have the sketcher multiplier on, the advanced solver dialog will still enforce this local setting. You
may disable it or click the "defaults" button to disable the sketcher multiplier.
2015-11-28 13:08:24 +01:00
Eivind Kvedalen
87c6af3547 Spreadsheet: Removed setPosition() function. 2015-11-28 12:56:28 +01:00
Eivind Kvedalen
b7480210fd Spreadsheet: Issue #2301: Handle enter/return and tab keys the same as e.g OpenOffice and Excel. 2015-11-28 12:56:27 +01:00
Eivind Kvedalen
2e5175c7be Spreadsheet: Fixed typo. 2015-11-28 12:56:26 +01:00
Eivind Kvedalen
45a2207f81 Spreadsheet: Improve python code when the Delete key is pressed. 2015-11-28 12:56:25 +01:00
wmayer
898e0fb359 + make API of InventorBuilder more flexible and add new methods 2015-11-26 15:27:40 +01:00
wmayer
b3e0e8272f Merge branch 'master' of https://github.com/FreeCAD/FreeCAD 2015-11-25 21:02:17 +01:00
wmayer
6a6a2d5669 + fix whitespaces 2015-11-25 21:02:00 +01:00
Abdullah Tahiri
7c1c56a550 Sketcher: Solver Debug functionality: Ability to export a subsystem
===================================================================

It allows to export the c++ code to create a subsystem with the same information as the one solved using LM/DL/BGFS.

In this commit the functionality is disabled (for production).

To enable the functionality uncomment this line in planegcs/Constraints.h:
//#define _GCS_EXTRACT_SOLVER_SUBSYSTEM_

When enabled, upon solving with LM/DL/BGFS, the c++ code to generate the subsystem is added to a subsystem.txt that is created in the FreeCAD
execution directory.

Note that the file is created in append mode, so it will append all normal/redundant solvings until the file is deleted.

The resulting code can be directly pasted into a project similar to:
https://github.com/abdullahtahiriyo/Eigen_LUPiv_Convergence

Such a project only has libeigen as external dependency.
2015-11-25 20:39:04 +01:00
Yorik van Havre
14a771bf05 Arch: small fix in Arch git dialog 2015-11-25 13:17:54 -02:00
Yorik van Havre
a5852dd8f2 Material: Fixed the material editor dialog, thanks to rockn 2015-11-24 22:57:50 -02:00
wmayer
a029d90a98 FEM: Rename Display Modes 2015-11-23 18:17:10 +01:00
Abdullah Tahiri
ad1210f4bb Sketcher: Advanced solver dialog bug fix LM-tau
================================================

Due to a typo the code was setting LM-tau to 1E-80 by default instead of the intended 1E-3.
2015-11-21 22:48:02 +01:00
Bernd Hahnebach
8ebf64ac3f FEM: add nodes of quad8, hexa20, penta6, penta15, pyra5, pyra13 to ViewProvider nodes are displayed 2015-11-19 19:01:23 +01:00
Bernd Hahnebach
758f3ec77e FEM: FemMesh VP throw exception instead of assert(0) 2015-11-19 19:01:07 +01:00
Bernd Hahnebach
2f5706262d FEM: add SMESH supported volumes to Python API of FemMesh 2015-11-19 19:00:52 +01:00
wmayer
c8e241c9f3 + PLate surface approximation 2015-11-19 18:52:19 +01:00
wmayer
13e2b24ddf + add Python binding to Plate surface 2015-11-19 15:27:35 +01:00
Przemo Firszt
fe522bc66b FEM, Tests: Fix line end problem in compare_inp_files
Add new function to force unix line ends and use it in compare_inp_files
and compare_stats.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-19 10:26:24 +01:00
DeepSOIC
ed8eab273d API: Update docu strings of methods of BSplineCurve
Mainly exposing argument types and meanings, but also updating a few
descriptions by copy-paste-editing documentation of corresponding
OpenCASCADE.
2015-11-19 02:53:48 +03:00
Przemo Firszt
c9cfc369d6 FEM: Use exisitng mesh property as link to mesh in result objects
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-18 11:22:02 +00:00
Przemo Firszt
3788670038 FEM: Tidy up long lines and spacing
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-18 11:21:27 +00:00
wmayer
c159a8ddc2 + fix inconsistencies in using DynamicProperty class 2015-11-17 12:22:07 +01:00
wmayer
78e9319587 Merge branch 'master' of https://github.com/FreeCAD/FreeCAD 2015-11-16 22:48:00 +01:00
wmayer
1225a7ac06 + support of adding/removing dynamic properties in property editor 2015-11-16 22:47:29 +01:00
Bernd Hahnebach
d37ac54c8e FEM: fix mixed line endings in VP FemMesh 2015-11-16 19:19:01 -02:00
Bernd Hahnebach
49b002beaf FEM: Mesh VP fix FreeCAD crash if not supported face is added to VP 2015-11-16 19:19:01 -02:00
Bernd Hahnebach
eec2b56629 FEM: add some documentation to FemTools 2015-11-16 19:19:01 -02:00
Bernd Hahnebach
01d3b3ecad FEM: substitute some camel style variable names in frdReader 2015-11-16 19:19:01 -02:00
Bernd Hahnebach
d14e79eafa FEM: use proper command to create a Mechanical Anaylsis with all properties 2015-11-16 19:19:01 -02:00
fandaL
36ffb450f1 FEM: frd import mesh 2015-11-16 19:18:11 -02:00
Przemo Firszt
dee8809454 FEM, Tests: Force unix line ends for comparing calculation stats
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-16 19:15:44 -02:00
Yorik van Havre
58b41b9550 Arch: Fixed flipped Space names 2015-11-16 16:11:32 -02:00
wmayer
4f4d747968 + fix undefined behaviour in determining grid length for planar meshes 2015-11-16 11:59:41 +01:00
Przemo Firszt
629a89218d FEM: Fix Von Mises calculation formula and update FEM test results
Reported-by: fandaL
Fixed-by: fandaL
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-14 14:53:37 +01:00
Przemo Firszt
b0fbd60835 FEM: Use format to avoid error is the message is not pure string
Traceback (most recent call last):
  File "/home/przemo/software/FreeCAD/build/Mod/Fem/TestFem.py", line
229, in test_new_analysis
    ret = self.compare_stats(fea, static_expected_values)
  File "/home/przemo/software/FreeCAD/build/Mod/Fem/TestFem.py", line
147, in compare_stats
    fcc_print(sf_content)
  File "/home/przemo/software/FreeCAD/build/Mod/Fem/TestFem.py", line
55, in fcc_print
    FreeCAD.Console.PrintMessage(message + '\n')
TypeError: can only concatenate list (not "str") to list

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-14 14:53:36 +01:00
wmayer
7848d08121 + properly handle case of degenerated bounding box when creating mesh grid 2015-11-14 14:08:01 +01:00
wmayer
821cd696c5 + do not set edit mode for spreadsheet 2015-11-14 02:18:29 +01:00
wmayer
53d323b5e0 + make isReadOnly & isHidden of PropertyContainer non-virtual 2015-11-14 02:07:57 +01:00
DeepSOIC
61a3997ef2 API: update distToShape built-in docu
It was way too short, and incorrect
2015-11-13 18:13:20 +03:00
wmayer
48027e1586 + fix memory leaks 2015-11-13 16:06:43 +01:00
wmayer
45af17e39c + Code cleanup:
+ do not include header of itself
+ do not include unneeded header files
+ removed unneeded forward declarations
+ do not translate C string to get a QString
+ break too long lines
+ replace tabs with spaces
+ use virtual keyword on destructors
2015-11-13 15:47:03 +01:00
wmayer
bf0d8d68bb + Add selected sketches to one Face, implement specialized view provider for Face 2015-11-13 13:38:24 +01:00
wmayer
6944658bd4 + Add parametric feature to create face from sketches 2015-11-12 19:44:24 +01:00
Bernd Hahnebach
74270c23d2 FEM: allow to make a mesh from shape without an analysis 2015-11-12 13:39:51 +01:00
Bernd Hahnebach
78ac00180f FEM: fromShape not needed modul loading deleted 2015-11-12 13:37:11 +01:00
Przemo Firszt
391cdf816d FEM: Update except catch to python3
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-11 22:41:12 +00:00
Przemo Firszt
1e8e0877f3 FEM: Windows workaround to avoid blinking terminal window
Reported-by: wmayer
Tested-by: wamyer, sgrogan
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-11 22:21:21 +00:00
Przemo Firszt
f74e016f30 FEM: Fix unexpected error with ccx_* unset if Popoen fails
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-11 22:20:34 +00:00
Przemo Firszt
e90ed4bf65 FEM: Cheange margins in TaskPanelMechanicalAnalysis for Analysis Type
Reported-by: wmayer
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-11 21:47:36 +00:00
Mateusz Skowroński
f3860faaef Fix file encoding. Go from ISO8859-1 to UTF-8. 2015-11-11 18:54:42 +01:00
wmayer
4af7d95a6d + support of linear b-spline/bezier curves and planar b-spline/bezier surfaces to get direction 2015-11-11 18:27:26 +01:00
Bernd Hahnebach
e22431ea77 FEM: use ConsolePrints instead off print in beamsection and shellthickness 2015-11-11 09:14:50 +01:00
Bernd Hahnebach
c6989acd55 FEM: use new selection observer class for material reference shape selection 2015-11-11 09:14:50 +01:00
Bernd Hahnebach
ba394818a3 FEM: separate selection observer class from _TaskPanel shellthickness and beamsection 2015-11-11 09:14:49 +01:00
wmayer
dc20525edc + don't switch tab when creating new web page 2015-11-10 17:32:55 +01:00
wmayer
7546a39b12 + Allow to open link in new web view 2015-11-10 16:40:04 +01:00
Eivind Kvedalen
be5e79601a PartDesign: Fixed similar issue compared to #2302 with unit handling when using an expression for the chamfer size. 2015-11-09 21:37:24 +01:00
Eivind Kvedalen
acd0f6a79e PartDesign: Fixed issue #2302 with unit handling when using an expression for the fillet radius. 2015-11-09 21:37:08 +01:00
wmayer
dff58e5df3 + fix documentation of task dialog 2015-11-09 19:22:19 +01:00
Bernd Hahnebach
9d856fbd7a FEM: use addItem to add list items in shellthickness, beamsection and multimat ref shape list 2015-11-08 13:44:37 +01:00
Bernd Hahnebach
5e234486b2 FEM: rename uis of python task panels to TaskPanelName 2015-11-08 09:32:01 +01:00
Bernd Hahnebach
5e001f3e15 FEM: delet unused import FreeCAD 2015-11-07 20:04:10 +01:00
Bernd Hahnebach
062895c626 FEM: sort modules in CMakefiles 2015-11-07 18:36:28 +01:00
Bernd Hahnebach
c542a88e5e FEM: move CalculiX test files to test_files/ccx directory 2015-11-07 17:23:31 +01:00
Bernd Hahnebach
737fa891f8 FEM: make Init.py flake8 compatiple 2015-11-07 16:41:31 +01:00
Bernd Hahnebach
b1e67a7e0a FEM: use unix linefeeds in Init.py 2015-11-07 16:41:22 +01:00
Bernd Hahnebach
d10d18bd4d FEM: rename ObjectsTaskPanel into TaskPanelObjects 2015-11-07 16:41:11 +01:00
Bernd Hahnebach
7847c6fcac FEM: print console message if a task dialog is open already for beamsection and shellthickness 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
ea6e65f9f8 FEM: add author to material files 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
81cf730791 FEM: unused imports deleted 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
05a20ecc77 FEM: split MechanicalMaterial into separate modules 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
49c12c5e3d FEM: use ConsolePrints instead of prints for MechanicalMaterial 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
746bad9f18 FEM: shape typte test in selection of multiple material reference shapes 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
3ef7d3ce3a FEM: put prints in brackets in MechanicalMaterial 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
cb690eca62 FEM: multiple materials, support for solids 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
0c55f927f5 FEM: add getNodesBySolid()
Conflicts:
	src/Mod/Fem/App/FemMesh.cpp
2015-11-07 13:24:45 -02:00
Bernd Hahnebach
52ad0bcc9d FEM: selection of Faces and Edges as References for multiple MechanicalMaterial 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
cb0a48c849 FEM: add Reference selection to Mechanicalmaterial ui 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
8cb6ed7d6a FEM: multiple materials for shell and beam meshes 2015-11-07 13:24:45 -02:00
Bernd Hahnebach
f02ba31d02 FEM: add spaces to FemTools license 2015-11-07 13:24:45 -02:00
wmayer
94a62e015c + allow to set u/v dirs for B-Spline fit 2015-11-06 16:43:58 +01:00
wmayer
0bb6dc4cf1 + add task dialog to perform B-Spline fit 2015-11-06 14:30:26 +01:00
wmayer
8645d56acf + get initial plane fit from B-Spline fit if required 2015-11-06 00:27:33 +01:00
wmayer
e8048a4968 + fix build failure with occ 6.9.1 2015-11-05 19:40:34 +01:00
Bernd Hahnebach
39d6d68366 FEM: use super class FemCommands for ShellThickness and BeamSection Commands 2015-11-05 17:31:03 +01:00
Bernd Hahnebach
59bafd51c0 FEM: split FemBeamSection into separate modules 2015-11-05 17:31:02 +01:00
Bernd Hahnebach
5d9954d3da FEM: split FemShellThickness into separate modules 2015-11-05 17:31:02 +01:00
Bernd Hahnebach
c3328d6b4e FEM: use unix linefeeds in InitGui.py 2015-11-05 17:31:02 +01:00
wmayer
44a54e417c + (hopefully) fix build failure with occ 6.9.1 2015-11-05 17:06:04 +01:00
wmayer
e5f805a773 + optimize B-spline approximation 2015-11-04 14:39:20 +01:00
wmayer
38ca335a1f + check if pcl is built opennurbs support 2015-11-04 12:16:35 +01:00
Przemo Firszt
64950056b8 FEM: Fix typos in property definitions
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-03 20:04:23 +00:00
Przemo Firszt
d025f1e109 FEM: Replace invalid ElementNumbers with NodeNumbers
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-03 20:04:23 +00:00
Przemo Firszt
a85c68aa65 FEM: Add EigenmodeFrequency property to result object
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-03 20:04:23 +00:00
Przemo Firszt
9531c0b088 FEM: Add Eigenmode property to result object
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-03 20:04:23 +00:00
Przemo Firszt
30e2ec315b FEM: Add simple dat file reader
It's a simple CalculiX dat file reader used to extract eigenmode
frequencies after freqyency analysis.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-03 20:04:23 +00:00
Przemo Firszt
3e20529210 FEM: Remove redundant base_name variable
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-03 20:04:23 +00:00
Przemo Firszt
d2469cac6e FEM: Replace GetString with GetFloat/GetIntiger for eigenmode parameters
Reported-By: bernd
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-03 10:50:15 +01:00
wmayer
466d1a60b1 + optimize B-spline approximation 2015-11-03 00:55:15 +01:00
wmayer
2d4d60d2ab + allow in approxSurface() to also pass points object 2015-11-02 17:36:45 +01:00
wmayer
85ac79aaf2 + double check that internal data is valid when leaving edit mode of sketcher view provider 2015-11-02 12:42:18 +01:00
wmayer
caec2d98a0 + fixes #0002321: Build failure on current (71be79e) master 2015-11-01 18:07:56 +01:00
wmayer
71be79e09e + add toggle action to context-menu of spline view provider 2015-10-31 16:10:26 +01:00
wmayer
ff320f465f + ignore colour information of ply point files 2015-10-31 16:09:38 +01:00
wmayer
77f148350b + reorder include files to fix re-definition of macro BOOST_PARAMETER_MAX_ARITY 2015-10-31 13:32:01 +01:00
DaviKaur
0120942c46 Materials: New Glass Materials 2015-10-31 13:01:39 +01:00
wmayer
212e2bf19c + include pcl bspline fit into Reverse Engineering module 2015-10-30 22:06:34 +01:00
Yorik van Havre
e7d16c5f62 Arch: added IFC export preference option to choose triangulation style for non-planar shapes 2015-10-28 17:24:43 -02:00
Przemo Firszt
fc8e2eed64 FEM, Tests: Fix FEM tests
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-26 18:35:43 +00:00
Przemo Firszt
50ab6a3111 FEM: Move writing inp section headers to front of function
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-26 17:17:23 +00:00
Bernd Hahnebach
cc3fee5f9c FEM: print in brackets 2015-10-26 13:13:57 +01:00
Bernd Hahnebach
02be8e65ab FEM: fix in ccxfilewriter for ccxelset if multiple materials and beam mesh 2015-10-26 13:13:56 +01:00
Bernd Hahnebach
13e7841b41 FEM: edge load ccxwriter fix if duplicate edges in refshapes 2015-10-26 13:13:55 +01:00
Bernd Hahnebach
e5adec94b7 FEM: ccxwriter, much more exact results for cload on edges 2015-10-26 13:13:55 +01:00
Bernd Hahnebach
9c0bcb7a7c FEM: cload in ccxwriter, some changes in preparation for adding better edge load calculation 2015-10-26 13:13:54 +01:00
Bernd Hahnebach
7b1a4f1297 FEM: add defs to make the code better reuseable for cload on edges 2015-10-26 13:13:53 +01:00
Bernd Hahnebach
c74a8392de FEM: small changes in shellth and beamsec task panel 2015-10-26 13:13:52 +01:00
triplus
6fe2923d52 OpenSCAD IncreaseTolerance (edges and faces support) 2015-10-26 11:48:20 +01:00
wmayer
e3221376e1 + use right namespace for template instantiation to fix linker errors on Windows 2015-10-25 23:06:21 +01:00
wmayer
15a6a463b3 + need dummy class for FeaturePython class to work 2015-10-25 22:42:50 +01:00
Przemo Firszt
d58ccf7fd3 FEM: Use brackets for print
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:30 +01:00
Przemo Firszt
e3c081be54 FEM: Use eigenmode number to decide if we're dealing with frequency analysis
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:29 +01:00
Przemo Firszt
098e46f686 FEM: Fix invalid check for frequency analysis
eigenmode = 0 for static and it's greater than 0 for frequency analysis.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:29 +01:00
Przemo Firszt
304e71e371 FEM: Remove imported but not used FreeCADGui
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:28 +01:00
Przemo Firszt
cf979fa040 FEM: Do not activate FEM wb from ccxFrdReader
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:27 +01:00
Przemo Firszt
55bc72b7b4 FEM: Make sure result_object exist before accesing it
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:26 +01:00
Przemo Firszt
bba3543efe FEM: Initialise result_object to None to fix crash on empty results
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:25 +01:00
Przemo Firszt
80b82dd955 FEM: Fix invalid check for empty resutls
Even when readResult was not producing any resuts the check was passing
fine as len({'Nodes': {}, 'Tet10Elem': {}, 'Results': []}) is 3

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:25 +01:00
Przemo Firszt
3dcc189e8b FEM: Add new properties to FEM preferences
The new properties are NumberOfEigenmode, EigenmodeHighLimit and
EigenmodeLowLimit. All 3 are linked with analysis object properties.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:24 +01:00
Przemo Firszt
6ab7a434ac FEM, Tests: Make sure eigenmode parameters are always the same.
The parameters were taken from FEM prefs, so the test could fail.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:23 +01:00
Przemo Firszt
068ba4793d FEM: Add EigenmodeHighLimit property to analysis object
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:22 +01:00
Przemo Firszt
042ded01e0 FEM: Add EigenmodeLowLimit property to analysis object
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:22 +01:00
Przemo Firszt
fcf19ff8ec FEM: Add NumberOfEigenmode property to analysis object
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:21 +01:00
Przemo Firszt
26cd01e346 FEM: Add WorkingDir property
that allows to set individual directory to be used for each analysis
object

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:20 +01:00
Przemo Firszt
8055b189be FEM: Use AnalysisType in FemTools by default
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:19 +01:00
wmayer
977411b4cc + check input of approxSurface for obviously wrong values 2015-10-25 12:46:02 +01:00
wmayer
e82a780774 + move module Python stuff into C++ class 2015-10-24 18:04:53 +02:00
wmayer
c336f0757c + do error checking of input values and use keywords conforming with attributes of BSplineSurface 2015-10-24 15:40:24 +02:00
wmayer
fe7c3cda44 + extend Python interface of approxSurface 2015-10-23 17:56:24 +02:00
wmayer
6fecb87053 + fix documentation 2015-10-23 16:15:23 +02:00
wmayer
abec1c4b1d + improve whitespaces, replace floats with doubles 2015-10-23 15:32:54 +02:00
wmayer
67d8469069 + fix bug in B-Spline approximation 2015-10-23 13:52:58 +02:00
wmayer
1c90c3794d + remove unused line in CMake file 2015-10-23 11:08:22 +02:00
Abdullah Tahiri
e1dd86f0a9 Sketcher: Bug fix: unable to move geometry after addition of a constraint
=========================================================================

This fixes issue:
http://www.freecadweb.org/tracker/view.php?id=2281

Discussed in:
http://forum.freecadweb.org/viewtopic.php?p=101910#p101910

How to reproduce?
With Auto-Update mode unchecked, execute the sequence in the bug tracker. You will reach to a geometry assembly successfully solved that can not be moved.

Why?
The coincident constraint is partially redundant within the meaning of redundancy of the solver.
The solve within "addconstraint" in SketchObjectPy.cpp causes the geometry to move to meet the coincident constraint.
At the end of the solve, the initial solution used in diagnostics is no longer valid (the geometry moved). This causes a subsequente move not to be executed.

The Solution:
Recalculate just the initial solution after the addition.
2015-10-23 00:13:20 +02:00
Abdullah Tahiri
fc128d357d Sketcher: Solver information: Bug fix
=====================================

When the solver converged (but did not succeed) or when the solver succeded but the solution is not OCC-valid, no error message was shown in the solver messages dialog.
2015-10-22 23:48:04 +02:00
Przemo Firszt
4fb15f2a1b FEM: Move module loading to InitGui.py
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-22 11:20:03 +01:00
wmayer
60c8180079 + fix initialization order in initFemGui 2015-10-22 11:11:47 +02:00
wmayer
abd6e8c438 + proper exception handling of FemGui module 2015-10-22 11:01:21 +02:00
wmayer
62da38339f + allow to set parameters for surface triangulation from outside 2015-10-21 23:18:53 +02:00
wmayer
e7a3dc48e8 + support of Python feature classes without an execute() method
+ if execute() method of Python feature is missing or if it returns false call the execute() method of the C++ feature
+ fix SketchObjectPython
2015-10-21 00:22:40 +02:00
Jose Luis Cercos Pita
74ed253f51 Improved the objects representation 2015-10-20 13:09:40 +02:00
Jose Luis Cercos Pita
9b6b171b04 Using the smart expression in the spreadsheet to manage the entities labels 2015-10-20 13:05:27 +02:00
Jose Luis Cercos Pita
c16c27cd0e Merge remote-tracking branch 'upstream/master' 2015-10-20 10:53:52 +02:00
wmayer
169b2e356e + clean-up, fix and new methods added in unit test module 2015-10-19 21:51:43 +02:00
Przemo Firszt
28abf3585b FEM: remove comment lines for _CommandNewMechanicalAnalysis.py
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:28:08 +02:00
Przemo Firszt
ffdc7a45df FEM: change purge_results to operate on analysis document
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:28:08 +02:00
Przemo Firszt
499630034b FEM: improve enabling/disabling commands
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:28:07 +02:00
Przemo Firszt
f76933eb87 FEM: Migrate _CommandMechanicalMaterial to FemCommands
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:28:07 +02:00
Przemo Firszt
ddb20e7329 FEM: Remove Frequency Analysis from GUI
Separate Frequency analysis button is no longer required.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:28:06 +02:00
Przemo Firszt
35632147ad FEM: Add new analysis properity AnalysisType
To run frequency analysis user have 2 options:
1. Run normal aalysis, set "frequency" and start ccx
2. Set Analysis Type in Analysis object properties to "frequency" and
use Quick Analysis

With that workflow we no longer need a separate button for frequency
analysis. Also it's much easier to prepare & run a dediacted analysis
for frequency calculiations and separate analysis objects for
different load cases.
2015-10-19 21:28:05 +02:00
Przemo Firszt
2c21325353 FEM: Remove not used OutputDir analysis property
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:28:05 +02:00
Przemo Firszt
f33f573199 FEM: Change the way set_analysis_type works - use FEM prefs
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:28:04 +02:00
Przemo Firszt
26d18db2d3 FEM: Make sure ccx working dir is set
Also TestFem and check_prerequisities are corrected

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:28:04 +02:00
Przemo Firszt
b79cc695a1 FEM: Add AnalysisType to Prefs and use it in analysis control window.
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:28:03 +02:00
Przemo Firszt
d5cf69b646 FEM: Make sure it's clear what failed when ccx is not set and cannot be found
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:28:02 +02:00
Przemo Firszt
d8488027d7 FEM: Fix WorkingDir problem
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:28:01 +02:00
Przemo Firszt
23dd479cb9 FEM: Typo + move debug print to be the first command in calculixStarted
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:28:01 +02:00
Przemo Firszt
6116231e32 FEM: Rename pushButton_generate to pb_run_ccx
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:28:00 +02:00
Przemo Firszt
14740f9202 FEM: Rename pushButton_edit to pb_edit_inp
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:27:59 +02:00
Przemo Firszt
7c0a53596c FEM: Rename pushButton_write to pb_write_inp
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:27:58 +02:00
Przemo Firszt
50bcdaa90f FEM: Rename label_Time to l_time
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:27:58 +02:00
Przemo Firszt
cf7f82c48a FEM: Move known_analysis_type definition to class definition
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:27:57 +02:00
Przemo Firszt
f0951065c9 FEM: print should use brackets for python3 compatibility
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:27:56 +02:00
Przemo Firszt
cfc2a4d1f2 FEM: Fix invalid exception raise call
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:27:55 +02:00
Przemo Firszt
ac0f3a650d FEM: Test ccx binary before use
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:27:54 +02:00
Przemo Firszt
554f4f5fc9 FEM: Add documentation to FemTools
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:27:54 +02:00
Przemo Firszt
da7d499595 FEM: Constraints should be enabled only when there is an active analysis
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:27:53 +02:00
Przemo Firszt
eda566e572 FEM: Use fem-constraint-pulley and fem-constraint-gear icon names
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:27:52 +02:00
wmayer
e416ec0dc3 + add more unit tests for bounding box 2015-10-19 17:27:55 +02:00
wmayer
861dc86093 + make FEM beam section and shell thickness ready for drag and drop 2015-10-19 14:48:07 +02:00
wmayer
eff27994e5 + Do not rely on active document but active analysis object 2015-10-18 22:36:36 +02:00
wmayer
00cdea7b74 + allow to activate an analysis object from context-menu 2015-10-18 16:10:32 +02:00
wmayer
337a36ceb8 + write out nodes sorted by id to abaqus file 2015-10-18 12:32:09 +02:00
Przemo Firszt
a0d8042bff FEM, Tests: Add setting static analysis
The tests from GUI were failing if FEM prefs were set to frequency analysis

Debugged by: sgrogan

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-17 12:20:48 -03:00
Przemo Firszt
b4352a18d1 FEM, Tests: Include detailed information in test report after failure
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-17 12:20:48 -03:00
Przemo Firszt
7554d2a8a8 FEM, Tests: Close files as soon as possible
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-17 12:20:48 -03:00
wmayer
ad96714fe8 + issue #0002245: BRep File cannot be written 2015-10-17 17:13:27 +02:00
wmayer
692e9e6b96 + fixes #0002291: Invalid sketch warning should allow to directly open sketch validation tool 2015-10-17 15:34:14 +02:00
wmayer
051ad564d1 + use correct context for translatable strings in ViewProviderSketch 2015-10-17 15:21:37 +02:00
wmayer
4208b0840d + truncate text when too long in message box in unit test panel and show the full text in detailed section 2015-10-17 14:33:54 +02:00
wmayer
efd3a494d7 + fixes #0002297: 'Export to PDF...' from drawing view does not show an error if existing file can not be overwritten 2015-10-17 00:31:30 +02:00
wmayer
9abedaf0d2 + fix & suppress msvc warnings 2015-10-16 18:26:30 +02:00
Yorik van Havre
a36bf71632 Draft: fixed small bug in Draft unit test 2015-10-16 12:38:49 -03:00
Jose Luis Cercos Pita
ee070344ee Slightly improved the load condition data sheet 2015-10-16 13:50:00 +02:00
Jose Luis Cercos Pita
1f74c1d413 Filtered out the bad entities from the ship before the load condition generation 2015-10-16 13:43:04 +02:00
Jose Luis Cercos Pita
1d00b9f250 Fixed the unclaimed load conditions 2015-10-16 13:00:31 +02:00
Jose Luis Cercos Pita
5467d0aec2 Created utilities to purge usless data inside the Ship instance 2015-10-16 12:58:23 +02:00
Jose Luis Cercos Pita
bd594136a0 Added DATA identifier to the headers 2015-10-16 11:53:27 +02:00
Jose Luis Cercos Pita
02e908ae18 Added tooltips to the checkboxes 2015-10-16 11:53:07 +02:00
Jose Luis Cercos Pita
bfebdaeb16 Merge remote-tracking branch 'upstream/master' 2015-10-16 11:15:44 +02:00
Jose Luis Cercos Pita
d28faee03a Imported the areas curve tool improvements from sourceforge 2015-10-16 11:14:53 +02:00
Jose Luis Cercos Pita
b8ede9747a Imported the loading conditions definition tool from sourceforge 2015-10-16 11:13:09 +02:00
wmayer
2e6c94fc8e + suppress kdl related warnings with msvc 2015-10-15 19:18:07 +02:00
Yorik van Havre
52d5b8ab7f Robot: Added missing header in KDL 2015-10-15 11:55:52 -03:00
Yorik van Havre
ba2e003b92 Added changes to KDL brought after the SVN merge, where applicable
Taken from commits 470880e, df4c99f, cd0ae20, efb0823, c519989
2015-10-14 18:00:22 -03:00
Yorik van Havre
9304f7a78a Added Juergen's original changes to KDL 2015-10-14 18:00:11 -03:00
Yorik van Havre
1908e852f0 Added doxygen fixes from svn commit 3590 to KDL 2015-10-14 17:59:50 -03:00
Yorik van Havre
9f4e7c4085 Upgraded KDL to latest version 2015-10-14 17:59:25 -03:00
wmayer
85994d17b8 + replace || operator in BoundBox2D with real function names 2015-10-14 18:45:13 +02:00
Yorik van Havre
409ee71087 Path: removing leftover KDL stuff 2015-10-14 11:18:10 -03:00
Yorik van Havre
e380001762 Fixed Path's cmake file 2015-10-13 17:22:05 -03:00
Yorik van Havre
167b094258 Merge branch 'master' of github.com:FreeCAD/FreeCAD 2015-10-13 16:44:33 -03:00
Yorik van Havre
e4ac34ecb0 Path: Removed KDL/Robot dependency 2015-10-13 16:44:09 -03:00
Przemo Firszt
cddb6aa390 FEM: Migrate _CommandQuickAnalysis to FemCommands
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-13 21:41:06 +02:00
Przemo Firszt
b122cb5866 FEM: Migrate _CommandMechanicalShowResult to FemCommands
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-13 21:41:05 +02:00
Przemo Firszt
6725c540a6 FEM: Migrate _CommandMechanicalJobControl to FemCommands
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-13 21:41:04 +02:00
Przemo Firszt
1ad481b435 FEM: Migrate _CommandFemFromShape to FemCommands and add new is_active type
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-13 21:41:03 +02:00
Przemo Firszt
217103affb FEM: Migrate _CommandPurgeFemResults to FemCommands and add new is_active type
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-13 21:41:03 +02:00
Przemo Firszt
044c16d218 FEM: Migrate _CommandNewMechanicalAnalysis to FemCommands
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-13 21:41:02 +02:00
Przemo Firszt
f1f67b2298 FEM: Add FemCommand class and use it in _CommandFrequencyAnalysis
FemCommand class will gather all common functions/propertied od FEM gui
commands. That should allow to reduce some common code.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-13 21:41:01 +02:00
Yorik van Havre
60ac7e4cb8 Sketcher's GCS solver fixed for eigen3.3 2015-10-13 16:38:35 -03:00
Abdullah Tahiri
dc224265fa Sketcher: Bug fix: Constraints dissapear after a sketch loses support
=====================================================================

Issue:
http://freecadweb.org/tracker/view.php?id=2292

Constraints dissapear after a sketch loses support

Steps To Reproduce:
1. Make a sketch on a face.
2. Constrain it
3. Select "reorient sketch"
4. Do you want to lose support? Yes
5. Click cancel on the reorientation dialog.
6. Enter edit mode: No constraints...

Why?
GeoUndef not checked when deleting all external geometry (on dettaching from the support).

Solution:
Check for GeoUndef.
2015-10-13 21:32:55 +02:00
wmayer
1d04ce9ea0 + port SurfaceFit to Eigen3 and add unit tests 2015-10-13 20:03:47 +02:00
Jose Luis Cercos Pita
d63348acf9 Started the GZ tool 2015-10-13 18:39:19 +02:00
Jose Luis Cercos Pita
925b861fc0 Generated the User Interface for the GZ tool 2015-10-13 18:38:54 +02:00
Przemo Firszt
aac2b26c11 FEM: Don't call _ViewProviderMechanicalMaterial in headless mode
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-11 09:59:07 +02:00
Eivind Kvedalen
e2650860cc Spreadsheet: Expressions using a spreadsheet cell address are now correctly renamed when rows/columns are removed/inserted. 2015-10-11 09:41:16 +02:00
Eivind Kvedalen
29695a8ae7 Spreadsheet: Removed unused function. 2015-10-11 09:41:15 +02:00
Eivind Kvedalen
a80ccb9451 Spreadsheet: Renaming an alias will now traverse the document and update expressions referencing it. 2015-10-11 09:41:15 +02:00
Eivind Kvedalen
9fe3b0146a Spreadsheet: Added alias as tooltip. Made background of cell light yellow if an alias is defined for it. Can be overridden by setting a background color. 2015-10-11 09:41:14 +02:00
Eivind Kvedalen
e334ac3aed Spreadsheet: Added direct alias command. 2015-10-11 09:41:14 +02:00
Przemo Firszt
27cfcc5995 FEM: Add licence and module info to _Command files
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-11 09:36:42 +02:00
Przemo Firszt
9b816905f1 FEM: Move _CommandNewMechanicalAnalysis class to separate file
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-11 09:36:41 +02:00
Przemo Firszt
cf8ef4d9bc FEM: Move _CommandFemFromShape class to separate file
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-11 09:36:41 +02:00
Przemo Firszt
dfb2335421 FEM: Move _CommandMechanicalJobControl class to separate file
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-11 09:36:40 +02:00
Przemo Firszt
7a0c300aa3 FEM: Move _CommandPurgeFemResults class to separate file
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-11 09:36:39 +02:00
Przemo Firszt
039b632758 FEM: Move _CommandQuickAnalysis class to separate file
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-11 09:36:39 +02:00
Przemo Firszt
fc12db7b26 FEM: Remove get_results_object from MechanicalAnalysis.py
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-11 09:36:38 +02:00
Przemo Firszt
ad68cad1bf FEM: Move _CommandFrequencyAnalysis class to separate file
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-11 09:36:38 +02:00
Przemo Firszt
dec1563c95 FEM: Move _CommandMechanicalShowResult class to separate file
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-11 09:36:37 +02:00
Przemo Firszt
d6392b751a FEM: Move _FemAnalysis class to separate file
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-11 09:36:36 +02:00
Przemo Firszt
c5d0fd8d4b FEM: Move _ViewProviderFemAnalysis class to separate file
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-11 09:36:36 +02:00
Przemo Firszt
0f71211602 FEM: Move _JobControlTaskPanel class to separate file
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-11 09:36:35 +02:00
Przemo Firszt
e3a7a7955e FEM: Move _ResultControlTaskPanel class to separate file
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-11 09:36:35 +02:00
wmayer
a4d1dbe5f0 + rework BoundingBox class and its Python binding 2015-10-11 00:18:53 +02:00
Bernd Hahnebach
48d67aa4cd FEM: fix beamsection property in CalculiX file writer 2015-10-09 17:39:40 +02:00
Bernd Hahnebach
41852c4c50 FEM: use MechanicalMaterial instead App::MaterialObjectPython in TestFem 2015-10-09 08:19:24 +02:00
Bernd Hahnebach
a7f96cb838 FEM: only change MechanicalMaterial object if taskd is accepted 2015-10-09 08:19:24 +02:00
Bernd Hahnebach
57b65cf405 FEM: add space to licence according flake8 2015-10-09 08:19:24 +02:00
Bernd Hahnebach
177e0d2665 FEM: typo in GUI 2015-10-09 08:19:23 +02:00
Bernd Hahnebach
b51155e289 FEM: use generic get_elset methods in CalculiX file writer 2015-10-09 08:19:23 +02:00
wmayer
70d86ce907 + add security checks to SoBrep nodes 2015-10-07 23:08:03 +02:00
wmayer
b7be7aec13 + Prefer prefix ++/-- operators for non-primitive types 2015-10-07 13:38:17 +02:00
wmayer
5a78a6ab79 + Prefer prefix ++/-- operators for non-primitive types 2015-10-07 11:32:38 +02:00
Eivind Kvedalen
b68ae65f56 Sketcher: Fixed keeping sign of constraints. 2015-10-06 21:26:22 +02:00
wmayer
f53a691bba + Prefer prefix ++/-- operators for non-primitive types 2015-10-06 21:16:44 +02:00
wmayer
48bf07e622 + split file extension from descriptive text of file format to avoid that invalid translation breaks file dialog 2015-10-06 18:45:06 +02:00
wmayer
967eead27a + split file extension from descriptive text of file format to avoid that invalid translation breaks file dialog
+ add method to make image view unclosable for user
+ fix possible crash in MeshAlgorithm::GetMeshBorder
+ fix possible crash in MeshAlgorithm::ConnectLines
2015-10-06 17:28:52 +02:00
wmayer
72a260cc6e + clear highlighting when re-creating shape 2015-10-06 00:19:43 +02:00
Bernd Hahnebach
24a3b27150 FEM: add brackets to print statements in CalculiX file writer 2015-10-05 18:34:07 +02:00
Bernd Hahnebach
f19d4c44df FEM: rewriting some defs in CalculiX input file writer 2015-10-05 18:33:52 +02:00
Bernd Hahnebach
d86b0e8f76 FEM: CalculiX writer, rename elset for solid meshes 2015-10-05 18:33:33 +02:00
Bernd Hahnebach
33fed6a630 FEM: add licence information to CalculiX inpwriter 2015-10-05 18:33:16 +02:00
Bernd Hahnebach
f411000a0f FEM: add calculiX input file comment lines to FemTest input file diff 2015-10-05 18:33:01 +02:00
Bernd Hahnebach
b2262058c8 FEM: visual output for beam and shellelements added 2015-10-05 18:32:38 +02:00
Bernd Hahnebach
b4d99aa570 FEM: fix in ShellThicness and BeamSection 2015-10-05 18:32:18 +02:00
Bernd Hahnebach
2b89aab8f3 Fem: fix in ShellThickness selectionobserver 2015-10-05 18:25:57 +02:00
wmayer
3998bd7f98 + fix warnings: -Wunused-private-field and -Wtautological-compare 2015-10-04 13:27:44 +02:00
wmayer
aa5b388f4a + unlimit the value for occurrences 2015-10-04 10:32:58 +02:00
wmayer
36dd6946a9 + fix clang warnings 2015-10-02 23:32:01 +02:00
wmayer
e4768c1c75 + fix clang warning: -Woverloaded-virtual 2015-10-02 20:42:16 +02:00
Eivind Kvedalen
5dc75b73bf PartDesign: bugfix, invoke ui->spinOccurrences->apply(). 2015-09-30 15:54:19 +02:00
Eivind Kvedalen
9a0c58986f PartDesign: Replaced QuantitySpinBox by SpinBox for "occurrences" input field. 2015-09-30 15:54:19 +02:00
Eivind Kvedalen
eecb6f3536 Spreadsheet: Fixed too liberal decoding of cell addresses. 2015-09-30 15:54:14 +02:00
Yorik van Havre
f439208282 Merge pull request #54 from cpollard1001/DPIFixes
Made slight tweaks for high DPI displays
2015-09-29 23:45:32 -03:00
Jan Kantert
a2ef7f244d properly add layer for blocks during export 2015-09-29 10:46:36 -03:00
Chris Pollard
4a802befbb Made slight tweaks for high DPI displays 2015-09-28 13:42:00 -04:00
Abdullah Tahiri
94851bc14f Sketcher Bug fix: External geometry shown after reorient
========================================================================

Reported here:
http://forum.freecadweb.org/viewtopic.php?f=10&t=12517&p=100388#p100429

Solution:
When a sketch loses support, all external geometry is deleted right away.
2015-09-28 11:45:06 +02:00
Abdullah Tahiri
56c29e27f7 Sketcher: Bug fix: Building Vertex Index on Restore
===================================================

The bug was introduced by myself here:
47c0859c1b

[code]
void SketchObject::onDocumentRestored()
 {
     try {
-        rebuildExternalGeometry();
+        if(Support.getValue()) {
+            validateExternalLinks();
+            rebuildExternalGeometry();
+        }
         Constraints.acceptGeometry(getCompleteGeometry());
     }
[/code]

The issue is that "rebuildExternalGeometry" calls "rebuildVertexIndex". So for any sketch not having external geometry, if you open it, select everything and hit del, you will have a crash because
I effectively removed the creation of the index in this dossier. You won't have one if you do anything rebuilding the index before hitting del, like creating geometry, though.
2015-09-28 11:42:56 +02:00
Abdullah Tahiri
01ba165d9a Bug fix: deletion of groups of external geometry
================================================

Issue reported inter alia here:
http://forum.freecadweb.org/viewtopic.php?f=10&t=12380#p99456

How to reproduce:
1. Make an external geometry hexagon (make a hexagon, pad it, make a sketch on a hexagonal face and make all the lines external geometry)
2. Box select the external lines and press "del"

On the first pressing of "del" 3 lines were deleted and 3 remained, select again, on the second press 1 remains, select again, on the last press all are deleted.

Why?
Internal and External geometry were handled together in a single set. Group deletion of geometry is effected starting from the highest index,
so that upon deleting an element, the index of the remaining elements does not change. Handling both groups together caused that the external geometry
was actually deleted on the inversed order (as they are (decreasing) negative values for representation, but increasing positive indexes in the external geometry array).

Solution:
Internal and External geometries are handled separatedly
2015-09-28 11:14:30 +02:00
wmayer
ee28daa669 + replace old C casts with static_cast in generated C++ code, remove unused parent structure of Python classes, support of -1 as return value of setCustomAttributes 2015-09-27 22:08:08 +02:00
wmayer
6fea753584 fix warnings 2015-09-27 22:05:01 +02:00
wmayer
0ef3a052c3 + ignore color of PLY file for point clouds 2015-09-27 22:04:16 +02:00
wmayer
fa5b160887 + fix export of ASCII STL 2015-09-27 10:58:51 +02:00
wood-galaxy
c94c203843 Arch : little fix in ArchComponent 2015-09-25 20:02:38 +02:00
wood-galaxy
9b1fc9e705 Arch : Fix ViewProviderComponent if vobj have not DiffuseColor attribute
Comment PropertyPartShape in Equipement because it
doesn't work if base object is a solid.
2015-09-25 19:48:31 +02:00
wmayer
f8d3210730 + fix build failure with gcc 2015-09-25 01:19:22 +02:00
wmayer
202b51171c + improve ply support 2015-09-24 23:19:33 +02:00
Przemo Firszt
8c38e25377 Materials: Fix BOM problem in FCMat files
BOM is byte order mark and it was crashing ConfigParser:

Traceback (most recent call last):
  File
"/home/przemo/software/FreeCAD/build/Mod/Fem/MechanicalMaterial.py",
line 109, in setEdit
    taskd = _MechanicalMaterialTaskPanel(self.Object)
  File
"/home/przemo/software/FreeCAD/build/Mod/Fem/MechanicalMaterial.py",
line 138, in __init__
    self.import_materials()
  File
"/home/przemo/software/FreeCAD/build/Mod/Fem/MechanicalMaterial.py",
line 264, in import_materials
    self.add_mat_dir(user_mat_dirname,
":/icons/preferences-general.svg")
  File
"/home/przemo/software/FreeCAD/build/Mod/Fem/MechanicalMaterial.py",
line 245, in add_mat_dir
    self.materials[a_path] = Material.importFCMat(a_path)
  File "/home/przemo/software/FreeCAD/build/Mod/Material/Material.py",
line 57, in importFCMat
    Config.read(fileName)
  File "/usr/lib64/python2.7/ConfigParser.py", line 305, in read
    self._read(fp, filename)
  File "/usr/lib64/python2.7/ConfigParser.py", line 512, in _read
    raise MissingSectionHeaderError(fpname, lineno, line)
<class 'ConfigParser.MissingSectionHeaderError'>: File contains no
section headers.
file: /home/przemo/.FreeCAD/Materials/AlMg3F24.FCMat, line: 1
'\xef\xbb\xbf; AlMg3F24 - 3.3535.26 - DIN 1725\n'

Reported-by: sgrogan
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-24 11:07:23 -03:00
wmayer
12050b4c7d + use escaped unicode for mesh import 2015-09-24 10:10:22 +02:00
wmayer
10786c65b8 + support of unicode names for sketch constraints 2015-09-24 03:17:47 +02:00
Bernd Hahnebach
8e8ecdd36f FEM: icons for FemShellThickness and FemBeamSection 2015-09-23 20:11:11 -03:00
Bernd Hahnebach
705c339f21 FEM: added object FemShellThickness and FemBeamSection to enable shell and beam analysises 2015-09-23 20:11:11 -03:00
Yorik van Havre
2b172a9f41 Materials: Applied rockn's bugfix in material editor 2015-09-23 19:34:50 -03:00
Przemo Firszt
f85352d93d FEM: Fix file names in MechanicalAnalysis.py
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-22 20:09:53 -03:00
Przemo Firszt
d29f3fa276 FEM: FemTools - add function documentation
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-22 20:09:53 -03:00
Przemo Firszt
8cd0939fff FEM: Update inp_file_name after base_name or working_directory change
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-22 20:09:53 -03:00
Przemo Firszt
cee4fc688f FEM: Fix icon names
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-22 20:09:53 -03:00
Przemo Firszt
9ce1020d84 FEM: Fix white spaces
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-22 20:09:53 -03:00
Przemo Firszt
ee7beea983 FEM: Fix file paths + tidy up naming
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-22 20:09:53 -03:00
wmayer
60062892a6 + backward compatibility of Linear and Polar pattern 2015-09-22 18:04:07 +02:00
Mateusz Skowroński
43a4a5938c Fix files encoding. Go from ISO8859-1 to UTF-8. 2015-09-21 19:50:49 -03:00
Yorik van Havre
0ce3d46e92 Materias: Fixed small bug in material editor 2015-09-21 19:49:04 -03:00
wmayer
037ec5be78 + fix build failure 2015-09-21 23:42:18 +02:00
Przemo Firszt
b25d2cd54d FEM: FemTest rework
- move test files to a separate directory
- use real life model to generate .inp files (model included)
- change format of csv node/volume files to allow direct copy&paste from .inp files
- use pre prepared real-life .dat & .frd files to test analysis results loading functions
- much more fine grained error reporting
- remove empty lines for output
- add helper function to print to console

Example run of the FEM test:

--------------- Start of FEM tests ---------------
Checking FEM new analysis...
Checking FEM new mesh...
sh: SMDS_MemoryLimit: command not found
Checking FEM new material...
Checking FEM new fixed constraint...
Checking FEM new force constraint...
Checking FEM new pressure constraint...
Checking FEM inp file prerequisites...
Checking FEM inp file write...
Setting up working directory /tmp/FEM_static
Writing /tmp/FEM_static/Mesh.inp for static analysis
Comparing /home/przemo/software/FreeCAD/build/Mod/Fem/test_files/cube_static.inp to /tmp/FEM_static/Mesh.inp
Setting up working directory to /home/przemo/software/FreeCAD/build/Mod/Fem/test_files in order to read simulated calculations
Setting base name to read test cube_static.frd file...
Checking FEM frd file read from static analysis...
Result object created as "Results"
Reading stats from result object for static analysis...
Setting analysis type to 'frequency"
Setting up working directory /tmp/FEM_frequency
Writing /tmp/FEM_frequency/Mesh.inp for frequency analysis
Comparing /home/przemo/software/FreeCAD/build/Mod/Fem/test_files/cube_frequency.inp to /tmp/FEM_frequency/Mesh.inp
Setting working directory to read simulated calculations...
Setting base name to read test cube_frequency.frd file...
Checking FEM frd file read from frequency analysis...
Last result object created as "Mode_10_results"
Reading stats from result object for frequency analysis...
--------------- End of FEM tests ---------------

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-21 11:16:03 -03:00
wmayer
b936514937 + fix build problems with MSVC and libpack 2015-09-21 14:51:12 +02:00
Eivind Kvedalen
4a3de89af0 Spreadsheet: Added round, trunc, ceil, and floor functions. 2015-09-21 14:51:12 +02:00
Eivind Kvedalen
310a684251 Spreadsheet: Added auto completer. 2015-09-21 14:51:11 +02:00
Eivind Kvedalen
4d5646fa5d Spreadsheet: Replaced own Expression classed by the ones in App. 2015-09-21 14:51:11 +02:00
Eivind Kvedalen
67800ec8c4 Sketcher: Added support for expressions. 2015-09-21 14:51:10 +02:00
Eivind Kvedalen
ddfbe349cf PartDesign: Added support for expressions. 2015-09-21 14:51:09 +02:00
Eivind Kvedalen
3f0fc98d72 Part: Added getPaths(...) method to PropertyPartShape. 2015-09-21 14:51:04 +02:00
Eivind Kvedalen
3474419925 Spreadsheet: Updated documentation. 2015-09-21 14:51:02 +02:00
Eivind Kvedalen
4f589f6d60 Spreadsheet: Use Base::fromStdString/toStdString. 2015-09-21 14:51:01 +02:00
Eivind Kvedalen
bee11897a1 Spreadsheet: Fixed bug with dangling pointer when a document object is deleted. 2015-09-21 14:51:01 +02:00
Eivind Kvedalen
61cbad8a12 Spreadsheet: Removed 'using namespace App'; preparation for moving Expression
classes to App.
2015-09-21 14:51:00 +02:00
Eivind Kvedalen
f7625481a2 Spreadsheet: Made freecad_dynamic_cast calls unambiguous (preparation for next commit). 2015-09-21 14:50:58 +02:00
Eivind Kvedalen
2206e1cd7f Added -Wno-sign-compare -Wno-reorder -Wno-switch -Wno-unused-variable -Wno-unused-but-set-variable -Wno-comment to mask warnings when compiling salomesmesh. 2015-09-21 14:50:58 +02:00
Yorik van Havre
d3d7387da2 Arch: fixed bug in material dialog 2015-09-20 21:17:12 -03:00
wmayer
7d09444dd9 + fixes #0001237: the project file is not saved when the /tmp directory is full, but the user is not aware of it 2015-09-19 18:59:22 +02:00
wmayer
2991bbf033 + fixes #0001238: Preferences: set temp files directory 2015-09-19 16:07:33 +02:00
wmayer
300e176eb3 + fixes #0002268: Segmentation Fault when using sketcher 2015-09-17 13:31:10 +02:00
wmayer
32367b1744 + save Brep in binary format for recovery files 2015-09-16 22:58:47 +02:00
wmayer
739e643f2f + check returned mdi view to be of the requested type 2015-09-16 16:15:19 +02:00
wmayer
6dfc395a06 + fix method ViewProviderDocumentObject::getActiveView()
+ fix SoAutoZoomTranslation and SoZoomTranslation to get correct scaling factor
(do not rely on active view because this can be the wrong one and thus delivers wrong results)
2015-09-16 11:32:35 +02:00
wmayer
470b9ff756 + add convenience method to get editing view of a view provider 2015-09-15 22:09:28 +02:00
wmayer
5652ca2c61 + fix crash due to sloppy reference counting 2015-09-15 18:19:36 +02:00
wmayer
fa1d43345a + fixes #0000870: Center sketch to a constraint that has been double clicked in the constraint list. 2015-09-15 17:24:23 +02:00
Bernd Hahnebach
75fbb93180 FEM: CalculiX writer comments regarding load calculation algorithm 2015-09-15 15:30:15 +02:00
Bernd Hahnebach
4f31fc44e6 FEM: ccxInpWriter formating according flake8 2015-09-15 15:13:30 +02:00
Bernd Hahnebach
04b6024e64 FEM: update FemAnalysis class description 2015-09-15 15:13:30 +02:00
Bernd Hahnebach
c618962cd0 FEM: use more obvious method names in ccxInpWriter 2015-09-15 15:13:29 +02:00
Bernd Hahnebach
84e2b9ebbf FEM: make MechanicalMaterial less noisy 2015-09-15 15:13:29 +02:00
Bernd Hahnebach
40d35f23e4 FEM: fix typo in class type definition in MechanicalMaterial 2015-09-15 15:13:29 +02:00
Bernd Hahnebach
fb9f43667d FEM: delete Debug prints in ccxInpWriter 2015-09-15 15:13:28 +02:00
Bernd Hahnebach
5a2940fb82 FEM: add to ccxInpWriter: CLOAD for shell meshes and solid meshes without face data 2015-09-15 15:13:28 +02:00
Bernd Hahnebach
b553d9895d FEM: TestFem, use no space in materialname 2015-09-15 15:13:28 +02:00
Bernd Hahnebach
c7ab1fd98b FEM: add FEM Mesh Type to the CalculiX elementset up to date only solid is supported 2015-09-15 15:13:27 +02:00
Bernd Hahnebach
bab3ec689a FEM: CalculiX file writer move getTriangleArea to helpers 2015-09-15 15:13:27 +02:00
wmayer
7dc59751cc + fixes #0002117: problems with rendering an arc - NAN 2015-09-15 12:53:22 +02:00
wmayer
2a569497b9 + fixes #0002118: Units conversion when using Imperial decimal (in/lb) 2015-09-15 11:30:11 +02:00
sgrogan
60cd098ae9 Remove Specific Weight from .FCMat files 2015-09-14 17:36:44 -03:00
sgrogan
2d1b79cbb0 Replace Specific Weight with Density 2015-09-14 17:36:44 -03:00
sgrogan
7d771c7a36 Make alternate material directory UserAppData/Materials 2015-09-14 17:36:44 -03:00
Yorik van Havre
163d206513 Updated ts files 2015-09-14 14:31:47 -03:00
wmayer
694c409caf + minor changes 2015-09-13 23:24:12 +02:00
wmayer
d3281a66eb + fix whitespace, fix notification of changed property in view provider 2015-09-13 18:46:06 +02:00
Yorik van Havre
216a747978 Draft: bumped minimum dxf lib to 1.39 2015-09-12 15:20:51 -03:00
Yorik van Havre
ac84b8171e Draft: Added fix from Draft-dxf-importer issue 6 2015-09-12 14:32:50 -03:00
Yorik van Havre
83988ca831 Draft: Added wiki instructions URL to DXFimporter download fail message 2015-09-12 14:28:25 -03:00
wmayer
9fb882b103 Merge branch 'master' of https://github.com/FreeCAD/FreeCAD 2015-09-12 12:41:56 +02:00
sgrogan
3274f42bb0 [PATCH] fix missing drawing vs fem 2015-09-12 12:41:31 +02:00
Jon Nordby
e81c4cf62a Path: Basic .rml postprocessor for Roland Modela MDX
Jog, drill, linear and arc motions works.
Tested on machine with some trivial projects,
dimensions and feedrate speeds verified.

Safe-Z/clearance command currently not respected (defaults to max height, super conservative).
2015-09-11 18:54:19 -03:00
Yorik van Havre
7189c727bc Merge remote-tracking branch 'jonnor/path-cli-fixes' 2015-09-11 18:51:17 -03:00
wmayer
29b2c9ab6c + improve code style 2015-09-11 22:00:25 +02:00
Abdullah Tahiri
47c0859c1b Sketcher: Bug fixes: inability to create links to external geometry
=================================================================

First bug: Inability to create links to external geometry as described here:
http://forum.freecadweb.org/download/file.php?id=16668

Second bug: FC crashes on changing the support after having imported external geometry as described here:
http://forum.freecadweb.org/viewtopic.php?f=10&t=12380

and solving this ticket:
http://www.freecadweb.org/tracker/view.php?id=2225

Solution to first bug:

If for some reason a sketch ends up having a list of external geometries (property) that can not be recreated (rebuilt),
they remain latent, do not show the external elements in the elements widget or in the screen and prevent adding the
elements again.

In cases where the saved file contains invalid external geometry links (which will give raise to a handled exception that would prevent external geometry creation),
this condition gets detected during restore and the invalid links are deleted before external geometry creation, so as to allow the rest of external links to be recreated.

Solution to second bug:

It is also related to invalid external links (the link was existing, but upon change on the support, it is possible that an external edge is no longer valid, reduction of edges in support).
This situation is detected upon entering into edit mode, and the invalid ones are deleted.

Note that there is still the possibility for the user to remap an invalid sketch BEFORE editing, if the remapping is successful, it may not be necessary to delete links (all depends on the
specific case).
2015-09-11 21:25:58 +02:00
wmayer
731b2567b3 Mod/Sandbox: Remove -Wunused-result warnings. 2015-09-11 18:42:25 +02:00
wmayer
9da3580b3d WildMagic: Remove -Wunused-result warnings. 2015-09-11 18:20:49 +02:00
wmayer
470880ebed Mod/Robot: Removed -Wreorder warnings. 2015-09-11 16:48:36 +02:00
wmayer
7f0c5b5f23 Mod/Robot: Removed -Wunused-variable warnings. 2015-09-11 16:14:17 +02:00
wmayer
df4c99f157 Mod/Robot: Removed -Wsign-compare warnings. 2015-09-11 16:09:11 +02:00
wmayer
1f1660a860 Mod/Robot: Removed -Wunused-result warnings. 2015-09-11 15:45:21 +02:00
wmayer
98ab26ce12 Mod/Sketcher: Removed -Wreorder warnings. 2015-09-11 15:34:34 +02:00
Eivind Kvedalen
b4ee6b9be6 Mod/Spreadsheet: Removed unused method. 2015-09-11 15:24:12 +02:00
Eivind Kvedalen
e0f3ab2473 Mod/Spreadsheet: Removed -Wsign-compare warnings. 2015-09-11 15:23:37 +02:00
wmayer
4d9af51470 Mod/Path: Removed-Wuninitialized warnings. 2015-09-11 15:19:18 +02:00
Eivind Kvedalen
1f93879a0c Mod/Path: Removed -Wunused-but-set-variable warnings. 2015-09-11 15:16:02 +02:00
Eivind Kvedalen
cbee95494e Mod/Path: Removed -Wunused-function warnings. 2015-09-11 15:13:58 +02:00
wmayer
c05baee29a + fix warnings in Fem 2015-09-11 15:11:55 +02:00
Eivind Kvedalen
6d84d419c2 Mod/Fem: Removed -Wunused-variable warnings. 2015-09-11 14:52:32 +02:00
Johannes Obermayr
9bceab911b 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
Przemo Firszt
7446930f69 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
53320b260e 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
82e41125da 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
224b3ec7d7 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
Przemo Firszt
32c96b4267 Tests, FEM: Add test for frequency analysis
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-09 12:17:12 -03:00
sgrogan
8cfc4b66be Remove Hardcoded Icons from Drawing and Mesh WB 2015-09-09 12:15:55 -03:00
Przemo Firszt
25b501e215 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
0ba28a5ba6 FEM: Add function documentation
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-09 13:57:49 +02:00
Przemo Firszt
89d795ff90 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
b516e35b19 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
7bf1bcdec3 FEM: Add get_results_object function
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-09 13:57:46 +02:00
Przemo Firszt
d52ad7e4bf 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
2f681ab928 Material: Add generic glass FCMat file
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-09 13:57:45 +02:00
Jon Nordby
685865ce31 Draft: Fix typos in circleFrom2PointsRadius()
Can't have been used in a while...
2015-09-08 21:19:43 +02:00
Jon Nordby
6f89398b07 Path: Allow PostUtils to be used in CLI mode 2015-09-08 21:19:43 +02:00
Jon Nordby
b195afc8ca Path: Fix unable to import from CLI
Need to guard 'import FreeCADGui' in this case.
2015-09-08 21:18:31 +02:00
Yorik van Havre
c515004611 Draft: Further typos in DraftGeomUtils 2015-09-08 13:18:22 -03:00
Yorik van Havre
9972dfbec9 Draft: fixed typo in DraftGeomUtils 2015-09-08 12:41:49 -03:00
Yorik van Havre
6b792952c3 Draft: Added preference setting to use the new C++ dxf importer 2015-09-07 16:46:08 -03:00
Yorik van Havre
23b1ed5c79 Arch: Fixed imports in ArchRoof 2015-09-07 15:10:29 -03:00
wmayer
7f9aa7b4a5 + add method to write/read BREP in binary format 2015-09-07 19:02:56 +02:00
Yorik van Havre
3665b77827 Draft: Added a pref option to disable SVG page scaling on import - fixes #2062 2015-09-05 23:35:52 -03:00
Yorik van Havre
220afa90db Extending doxygen stuff for Draft & Arch 2015-09-04 19:14:36 -03:00
Yorik van Havre
39035fc252 Draft: Prepared support for dimensions in new DXF importer 2015-09-04 16:05:32 -03:00
Yorik van Havre
fa550f0957 Arch: bigger default section plane - fixes #2189 2015-09-04 12:49:03 -03:00
Yorik van Havre
989a5fa933 Draft: fixed precision problem - fixes #1940 2015-09-04 12:43:09 -03:00
Yorik van Havre
91b2506ccc Changed all references to DraftGeomUtils.sortEdges to Part.__sortEdges__ 2015-09-04 11:54:57 -03:00
wmayer
a811a3bf03 Merge branch 'master' of https://github.com/FreeCAD/FreeCAD 2015-09-03 19:09:33 +02:00
wmayer
60b555d64b + implement auto-save function for documents 2015-09-03 19:09:03 +02:00
Yorik van Havre
3dfc22231e Part.__sortEdges__ now reorients edges if needed 2015-09-03 11:17:46 -03:00
wmayer
ada32f936a + allow to create a compound from a single part object 2015-09-03 13:19:21 +02:00
Yorik van Havre
60e63e12d6 Draft: Allow Clones to clone a group 2015-09-02 20:07:17 -03:00
Yorik van Havre
0d9dc9414d Draft: fixed display mode of objects converted from sketches - fixes #2166 2015-09-02 13:37:00 -03:00
wmayer
890f1f10c3 + fix linking error in Sandbox module 2015-09-02 14:08:43 +02:00
Alexander Golubev
0603c3fb61 App/DocumentObserver: make slot methods unimplemented rather pure-virtual and clenup derived classes accordingly 2015-09-02 13:54:44 +02:00
wmayer
993a8a8583 + fix build failure in debug build type 2015-09-01 19:39:34 +02:00
wmayer
979d1299cc + fix various warnings with gcc 2015-09-01 19:29:39 +02:00
Yorik van Havre
d0e43137ce Draft: Fixed translation again 2015-09-01 10:50:23 -03:00
Yorik van Havre
d38863538c Merge branch 'master' of github.com:FreeCAD/FreeCAD 2015-09-01 10:47:47 -03:00
Yorik van Havre
2aff34eab8 Draft/Arch: Used new PropertyVectorDistance where needed 2015-09-01 10:47:25 -03:00
Yorik van Havre
4daf44b925 Draft: Fixed small issue in translation 2015-09-01 10:46:21 -03:00
wmayer
3a4e93bb3d + implement method getPointNormals 2015-09-01 14:59:14 +02:00
wmayer
86a7ed44e0 + fix various warnings with VC++ 2015-09-01 12:50:10 +02:00
Yorik van Havre
1ed0ec974a Arch: Fixed crash when loading old files 2015-08-31 18:17:29 -03:00
Abdullah Tahiri
650f3282d5 Sketcher: Rename of the "Defaults" button of the advanced solver dialog
=======================================================================

Just renaming the button and adding a tooltip as discussed here:
http://forum.freecadweb.org/viewtopic.php?f=8&t=12180&start=30#p98221
2015-08-31 13:58:12 +02:00
wmayer
3807cbdb23 + improve whitespaces 2015-08-31 13:53:48 +02:00
Abdullah Tahiri
27bace846e Part Design: Bug fix Sketcher tools Menu in Part Design Menu
============================================================

As per forum request:
http://forum.freecadweb.org/viewtopic.php?f=10&t=11840&start=40#p97205

This actually was a bug of last year when I wanted to introduce it, coded it, but failed to actually make it shown.
2015-08-30 12:08:46 +02:00
Abdullah Tahiri
35b1b5bb04 Sketcher: SelectElementsAssociatedWithConstraints added to tools toolbar
========================================================================

By express request:
http://forum.freecadweb.org/viewtopic.php?f=10&t=11840&start=40#p97202
2015-08-30 12:08:46 +02:00
Abdullah Tahiri
927fca0ece Sketcher: Bug fix addGeometry list creation and construction lines
==================================================================

A recent improvement was to allow to create an object (several geometric elements) as construction lines
by providing an additional parameter as true (that defaults to false).

This introduced a bug, that when a list of geometries mixing construction and normal lines was added (with the parameter as false),
construction lines would be converted to normal lines.

This fixes the bug.
2015-08-30 12:08:45 +02:00
Abdullah Tahiri
9583ce4c70 Sketcher: Clone Copy and Sketcher Mirror icons by Jim 2015-08-30 12:08:45 +02:00
Abdullah Tahiri
d795eb2b7d Sketcher: New Functionality: Mirror full sketch
===============================================

Support for mirroring a full sketch.

A dialog appears allowing to select X, Y axis mirroring or mirroring about the origin of the sketch.
2015-08-30 12:08:44 +02:00
Abdullah Tahiri
0e01764f0b Sketcher: UI Copy/Clone as a single dropdown toolbar icon
=========================================================

This commit provides with a single toolbar button to select between a copy and clone.

Copy just copies the constraints.
Clone modifies the dimensional constraints to geometric constraints, so that the constrained geometry follows the changes in the original object.
2015-08-30 12:08:44 +02:00
Abdullah Tahiri
97d551b551 Sketcher: Extension of Copy/Array functionality to clone
=============================================================

This commit allows the user to select in advance whether he wants a simple copy or a clone.

This involves substitution of dimensional constraints in the copies by equality and parallel constraints.

Terminology change for Arrays, now it is Rectangular array
2015-08-30 12:08:43 +02:00
Abdullah Tahiri
6ea93a4a04 Sketcher: Symmetry/Copy/2DLinearArray art by Jim
SVG and XPM icons for copy and array creation by Jim
2015-08-30 12:08:42 +02:00
Abdullah Tahiri
6a16910ba5 Sketcher: UI Copy Support & 2D Array python command rework
==========================================================

- Support for copying geometric elements in the sketcher with Ctrl+C (or using the still missing icon). It will show you the vector of displacement from the
"reference point". The reference point can be chosen by the user (although it is not necessary to do it so) by making the point the user wish to be the reference point
the last selected element. It conveniently incorporates "autoconstraints", so that you can make this point (the one of the copy) directly coincident with any other point in the sketch.

- Python 2D array command modified to lock elements position using construction lines and constraints.
- Support for different spacing between u and v directions (the direction of the cols and the direction of the rows).

- Support to avoid copying DistanceX and DistanceY constraints when used for locking a point. This means that if the geometry that you copy(array) is
fully constraint, the resulting 2D array is also fully constraint.

- UI support for creating 2D linear arrays in the sketcher.
- Bug fix in python addArray, wrong line copy startingpoint calculation fixed.

How to create a 2D array in the sketcher:
1. Select your geometric elements.
2. Click the button
3. Fill in the rows/cols and preferences on spacing and constraining each element of the array
4. Click Ok
5. Define the direction of the cols of the array and click
2015-08-30 12:08:42 +02:00
Abdullah Tahiri
ee43612125 Sketcher: AddSymmetric End-to-End point tangency bug fix
========================================================

For a while End-to-endpoint tangency is implemented via AngleViaPoint constraint. The code was not recalculating the "value" of the constraint in this case.

This also forces to set the geometry first and constraints afterwards, as the AutoLockTangencyAndPerpty function requires a valid GeoId to operate (not a big deal anyway).

Correction of the condition to allow the symmetry when a single line is mirrored about a point pertaining to a geometric element.
2015-08-30 12:08:41 +02:00
Abdullah Tahiri
3eb8f21116 Sketcher: New Features: Python copy and array commands
======================================================

Two new python commands (no UI yet).

Copy: Copies the geoids in a list by a displacement given by a Vector3d:

App.ActiveDocument.Sketch001.addCopy([0,1,2,3,4,5],App.Vector(150,150,0))

Array: Copies the geoids in a list cols times in the displacement vector
direction and rows times in the perpendicular to the displacement vector:

App.ActiveDocument.Sketch001.addArray([0,1,2,3,4,5], App.Vector(150,150,0),3,4)

N.B.: You need to recompute or solve to update the view

App.ActiveDocument.recompute()

or

App.ActiveDocument.Sketch001.solve()
2015-08-30 12:08:40 +02:00
Abdullah Tahiri
359e9a5d78 Sketcher: New Feature: Symmetric tool
=====================================

Creates geometry symmetric to the selected one with respect to the last selected point or line.

It does not support the following constraints:

- Angle
- Horiz/vertical distance
- SnellLaw

Horizontal and Vertical (directional) dimensions removed from the the copying process when created
on a single edge (by picking one edge instead of two points), i.e. Constraint involving only one GeoId at "First".
2015-08-30 12:08:40 +02:00
Abdullah Tahiri
fbc6ed5c77 Sketcher: Bug fix: Wrong solver information upon failed solve
=============================================================

http://forum.freecadweb.org/viewtopic.php?f=10&t=11341&start=80#p92820

...I already have a minor bug, if you insert a conflicting dimensional constraint,
the solver information is not updated, the work-around is to hit "Manual Update".
2015-08-30 12:08:39 +02:00
wmayer
32bcbda232 + fix various warnings 2015-08-30 11:48:26 +02:00
wmayer
cac09437c8 + fix various warnings 2015-08-29 23:01:19 +02:00
wmayer
13fa571c41 + fix 'switch' warnings 2015-08-29 22:26:48 +02:00
wmayer
f7eb1ef924 + fix various warnings 2015-08-29 22:12:33 +02:00
wmayer
cb16fec6bb + fix various warnings 2015-08-29 22:05:09 +02:00
wmayer
1a12d109e9 + fix strict-aliasing warnings 2015-08-29 19:48:08 +02:00
wmayer
023de9b0f8 + fix author notice 2015-08-29 18:49:16 +02:00
Alexander Golubev
4fcbff9d34 Mod/Complete: suppress a minor warning
The warning was dedicated to using of char as an array index.
2015-08-29 18:36:04 +02:00
Alexander Golubev
2d6e82fb2c Mod/Robot: fix yet another warning (potentialy harmful)
Warning was -Woverloaded-virtual
2015-08-29 18:36:03 +02:00
Alexander Golubev
d2176be234 Mod/Spreadsheet: fix yet another warning (potentialy harmful)
Warning was -Woverloaded-virtual
2015-08-29 18:36:02 +02:00
Alexander Golubev
cf652c8410 Mod/Mesh: suppress bunch of warnings on C++11 usage
Warnings was like:
src/Mod/Mesh/App/WildMagic4/Wm4Vector4.cpp|21 col 49| warning: first declaration of static data member specialization of 'ZERO' outside namespace 'Wm4' is a C++11 extension [-Wc++11-extensions]
2015-08-29 18:36:00 +02:00
Alexander Golubev
de2f8a26b2 Mod/Spreadsheet: suppress warnings
Warnings was:
src/Mod/Spreadsheet/App/Expression.cpp|788 col 20| warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
2015-08-29 18:35:59 +02:00
Alexander Golubev
bbbefaf188 Mod/Sketcher: suppress warning
Warning was:
src/Mod/Sketcher/Gui/CommandConstraints.cpp|1031 col 28| warning: '&&' within '||' [-Wlogical-op-parentheses]
2015-08-29 18:35:58 +02:00
Alexander Golubev
cd9488daf7 Mod/Sketcher: add missing brackets in conditions
Warning was:
src/Mod/Sketcher/Gui/CommandConstraints.cpp|131 col 99| warning: '&&' within '||' [-Wlogical-op-parentheses]
2015-08-29 18:35:58 +02:00
Alexander Golubev
95f0decaa5 Mod/Robot: fix missing return statement
Warning was:
src/Mod/Robot/App/kdl_cp/chainjnttojacsolver.cpp|46 col 5| warning: control may reach end of non-void function [-Wreturn-type]
2015-08-29 18:35:57 +02:00
Alexander Golubev
cd0ae20ef5 Mod/Robot: fix some spaces and a couple of warnings
Warnings wsa:
src/Mod/Robot/App/kdl_cp/chaindynparam.cpp|105 col 5| warning: control may reach end of non-void function [-Wreturn-type]
src/Mod/Robot/App/kdl_cp/chainidsolver_recursive_newton_euler.cpp|82 col 5| warning: control may reach end of non-void function [-Wreturn-type]
2015-08-29 18:35:56 +02:00
Alexander Golubev
efb08237ac Mod/Robot: fix spacing and add a couple of FIXME's
It's to be considered to delete the class ChainIkSolverVel_pinv_nso:
it seems it's not used anythere and unmantained/unfinished for many years.
2015-08-29 18:35:55 +02:00
Alexander Golubev
80941aa0e0 Gui & Mod/Sketcher: use fabs() instead abs()
Warnings was like:
src/Mod/Sketcher/Gui/DrawSketchHandler.cpp|350 col 28| warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value]
Also see:
http://forum.freecadweb.org/viewtopic.php?t=10920
http://forum.freecadweb.org/viewtopic.php?f=10&t=5258
2015-08-29 18:35:54 +02:00
Yorik van Havre
f70d5be2b7 Arch: Fixed DAE export - fixes #2219 2015-08-28 17:46:52 -03:00
Przemo Firszt
daa024cc79 Material: Add missing Density fields using Tools
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-08-27 15:59:02 +01:00
Przemo Firszt
fdb782c5c7 Materials: Add Materials.ods file
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-08-27 15:59:02 +01:00
Przemo Firszt
729c1b4a73 Materials: Add Tools for FCMat<->ods conversion
Testing and proofreading by sgrogan

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-08-27 15:58:51 +01:00
Przemo Firszt
285ad9dbfa Materials: Update Readme.txt
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-08-27 15:58:31 +01:00
Przemo Firszt
84a88c4d2f Material: Add TEMPLATE.FCMat file
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-08-27 15:58:31 +01:00
Przemo Firszt
d2c7366f9a Material: Clean material files
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-08-27 15:58:31 +01:00
wmayer
8ec1bab139 + fixes #0002229: some ttf fonts make Draft.makeShapeString crash 2015-08-26 22:56:37 +02:00
Yorik van Havre
d13179b63f Arch: IFC exporter now exports cloned Arch objects with shared geometry 2015-08-25 22:11:40 -03:00
wmayer
27dc80c846 + support of checkable commands 2015-08-25 18:01:37 +02:00
Yorik van Havre
70550739b6 Arch: IFC importer now treats objects with shared shapes as clones 2015-08-21 11:42:42 -03:00
wmayer
60707fc256 + algorithm to split a segment from the mesh 2015-08-20 08:49:22 +02:00
Przemo Firszt
15d7369de8 FEM: Force consistent DENSITY formatting
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-08-18 13:44:28 +01:00
Przemo Firszt
5e3dc0c2c9 Tests, FEM: Fix inp file writing test
It's a compare line-by-line without comment lines now instead of
previously used md5 sum comparison.

inp pre filtering method suggested by Far-Zer
File location fixes by wmayer

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-08-18 13:44:28 +01:00
Yorik van Havre
53eb0dd758 Arch: Minor fix in OBJ exporter - fixes #2216 2015-08-17 20:27:19 -03:00
Yorik van Havre
0b44729bbe Draft: Small fix in copying dimensions and texts (didn't take the original style) 2015-08-17 11:50:02 -03:00
Yorik van Havre
6d1cb3c97a Draft: Small fixes in the new DXF importer 2015-08-17 11:48:02 -03:00
Bernd Hahnebach
0c82efe57a Arch: fix in import structural analysis ifc 2015-08-14 18:14:30 -03:00
Yorik van Havre
62c0a19071 Added preferences setting for default App::Annotation color 2015-08-13 23:12:00 -03:00
Yorik van Havre
617088284c Merge branch 'master' of github.com:FreeCAD/FreeCAD 2015-08-13 15:55:43 -03:00
wmayer
4dee0663c3 + test command to show race conditions in Console class
+ fix race conditions in Console class
2015-08-13 18:57:52 +02:00
Yorik van Havre
9d10f3e026 Draft: Added text support to new DXF importer - issue #2205 2015-08-13 10:06:43 -03:00
wmayer
790714712a + avoid slow heap checking in debug mode when loading a mesh file 2015-08-12 17:51:22 +02:00
wmayer
c79662e35b + fix include dirs for DraftUtils 2015-08-12 17:34:09 +02:00
Yorik van Havre
51cff8f0c3 Draft: Added blocks support to the new dxf importer #2205 2015-08-12 10:23:55 -03:00
Bernd Hahnebach
73808aa15d Arch: remove trailling white spaces 2015-08-11 20:55:16 +02:00
Bernd Hahnebach
4dc09efd0d Arch: added object types to struct ifc import 2015-08-11 11:05:16 -03:00
Bernd Hahnebach
aec3ab60cb Arch: add options to import structural engineering ifc 2015-08-11 11:05:16 -03:00
Yorik van Havre
d5f80ff61c Draft: Starting a C++ DXF importer - issue #2205 2015-08-10 19:55:59 -03:00
wmayer
13bf1a9cf5 + make FEM unittest more platform independent 2015-08-05 11:31:14 +02:00
Przemo Firszt
f395f38d09 Tests, FEM: Add missing Density and update md5 of standard inp file
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-08-05 11:02:37 +02:00
Yorik van Havre
192dca36c5 Draft: small bugfix - fixes #2159 2015-08-04 23:58:46 -03:00
Yorik van Havre
8c222a8c51 Draft: small bugfix - issue #2162 2015-08-04 23:50:33 -03:00
Yorik van Havre
2bc0826c77 Arch: Reintroduced support for custom subvolumes for windows 2015-08-04 22:18:30 -03:00
wmayer
76c0f55ebe + make mesh merge more performant 2015-08-04 11:32:52 +02:00
Yorik van Havre
b4ea012edc Mesh: Added Mesh Merge command
This command joins selected mesh objects into one
2015-08-03 15:46:30 -03:00
Yorik van Havre
cfbcd3a6f3 Arch: Encoding fix in DAE importer 2015-08-03 15:45:47 -03:00
wmayer
617bd8c859 + re-insert removed line 2015-08-03 10:53:36 +02:00
wwmayer
e7441149f0 + fix many minor warnings, activate -Wall for gcc 2015-08-02 22:32:18 +02:00
wmayer
92a65a8b5b + remove option to build deprecated cam module 2015-08-01 10:47:46 +02:00
Przemo Firszt
bc442592d2 Tests, Units: Add Density test
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-31 14:04:14 -03:00
Przemo Firszt
f808f03302 Tests, Units: Fix formatting
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-31 14:04:14 -03:00
Przemo Firszt
d380187ef3 FEM, Material: Add DENSITY to inp files and basic material files
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-31 14:04:14 -03:00
Przemo Firszt
b85c4430bd FEM: Fix invalid stdout/stderr variable names
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-31 14:04:13 -03:00
Yorik van Havre
2475be5fa1 Arch: more fixes in IFC importer 2015-07-31 12:56:13 -03:00
Yorik van Havre
5ae28eb038 Arch: small bugfix in IFC importer 2015-07-30 11:53:57 -03:00
Yorik van Havre
686f2adc58 Draft: small cosmetic fix to DXF importer 2015-07-30 11:53:18 -03:00
Przemo Firszt
d371cff4f2 FEM: Rename Fem_Quick_Analysis icon to fem-quick-analysis
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:34 -03:00
Przemo Firszt
b5c08388b8 FEM: Rename Fem_Result icon to fem-result
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:34 -03:00
Przemo Firszt
35f506d369 FEM: Rename Fem_Purge_Results icon to fem-purge-results
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:34 -03:00
Przemo Firszt
4c813656ea FEM: Rename Fem_NewAnalysis icon to fem-new-analysis
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:34 -03:00
Przemo Firszt
2a3409b4a6 FEM: Rename Fem_Material icon to fem-material
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:34 -03:00
Przemo Firszt
facb110329 FEM: Rename Fem_Inp_Editor icon to fem-inp-editor
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:34 -03:00
Przemo Firszt
6ca8a12525 FEM: Rename Fem_FemMesh_createnodebypoly icon to fem-fem-mesh-create-node-by-poly
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:34 -03:00
Przemo Firszt
bb1a41f15e FEM: Rename Fem_FemMesh icon to fem-fem-mesh-from-shape
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:34 -03:00
Przemo Firszt
c9c28a8690 FEM: Rename Fem_ConstraintPulley icon to fem-constraint-pulley
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:34 -03:00
Przemo Firszt
dc35235863 FEM: Rename Fem_ConstraintPressure icon to fem-constraint-pressure
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:34 -03:00
Przemo Firszt
1d766e9677 FEM: Rename Fem_ConstraintGear icon to fem-constraint-gear
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:34 -03:00
Przemo Firszt
5674ca802e FEM: Rename Fem_ConstraintForce icon to fem-constraint-force
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:34 -03:00
Przemo Firszt
93b24a1ab7 FEM: Rename Fem_ConstraintFixed icon to fem-constraint-fixed
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:34 -03:00
Przemo Firszt
505b4ba8d3 FEM: Rename Fem_ConstraintBearing icon to fem-constraint-bearing
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:33 -03:00
Przemo Firszt
7a71e14a78 FEM: Rename Fem_Analysis icon to fem-analysis
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:33 -03:00
Przemo Firszt
337881348c FEM: Rename Fem_AddPart icon to fem-add-part
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:33 -03:00
Przemo Firszt
b88706bcd4 FEM: Rename Fem_AddMaterial icon to fem-add-material
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:33 -03:00
Przemo Firszt
f3d82fd9fa FEM: Rename Fem_AddFemMesh icon to fem-add-fem-mesh
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:33 -03:00
Przemo Firszt
1d0d6dfe07 FEM: Tidy up icons ResultDisplacement, ResultStress and Result
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:33 -03:00
Przemo Firszt
5f4f6047e3 Tests, FEM: Add inp file writing test
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 10:58:19 -03:00
Przemo Firszt
b9676cf7ee FEM: Prepare ccxInpWriter for automated tests
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 10:58:19 -03:00
Przemo Firszt
461e506c41 FEM: Add command only when GUI is up
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 10:58:19 -03:00
Przemo Firszt
1de29d0ffa Test, FEM: Refactor existing tests as preparation for full analysis test
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 10:58:19 -03:00
Yorik van Havre
8d4510fd29 Arch: further encoding fixes in IFC importer 2015-07-29 10:47:49 -03:00
Yorik van Havre
2515a69626 Arch: always use utf8 encoding when using ifcopenshell 2015-07-28 20:53:11 -03:00
wmayer
b81482d597 + harmonize Coin3D cmake variables with official check 2015-07-28 14:55:15 +02:00
wmayer
7d98705396 + harmonize XercesC cmake variables with official check 2015-07-28 14:17:49 +02:00
wmayer
953ff71e99 + fix linking error on area module with clbundler 2015-07-28 11:44:37 +02:00
Przemo Firszt
cc7fa5b28c Test, FEM: Add pressure constraint test
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-27 16:25:01 -03:00
Przemo Firszt
3ef54f66bb Test, FEM: Add force constraint test
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-27 16:25:01 -03:00
Przemo Firszt
32ebdf8e6f Test, FEM: Add fixed constraint test
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-27 16:25:01 -03:00
Yorik van Havre
e80fc80be3 Arch: search for movable children in groups too 2015-07-27 16:18:48 -03:00
Przemo Firszt
0bfe92e83e Test, FEM: Add mesh test
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-27 14:03:44 +01:00
Przemo Firszt
632a554802 Test, FEM: Add new analysis test
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-27 14:03:44 +01:00
Przemo Firszt
14c36da81d Test: Fix formatting in TestApp.py
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-27 14:03:44 +01:00
Przemo Firszt
472b4943ce FEM: Remove no longer relevant comment. QuickAnalysis solved the problem
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-27 14:03:44 +01:00
Przemo Firszt
a9b28e541b FEM: No need to have ViewObject in _ViewProviderFemAnalysis init
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-27 14:03:44 +01:00
Przemo Firszt
f5ad8ca415 FEM: Don't import FemGui when it's not required
This is part of preparation to create automated FEM wb tests

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-27 14:03:44 +01:00
wmayer
ddac5eed60 + fix crash in MeshCurvature::ComputePerVertex for empty meshes 2015-07-27 12:17:16 +02:00
wmayer
51f0e99d7b + use nodefaultlib linker flag for modules 2015-07-27 11:52:19 +02:00
wmayer
d95003e92c + replace deprecated PYTHON_INCLUDE_PATH 2015-07-25 18:29:42 +02:00
wmayer
b5475db2de + create MODULE libraries in given directory 2015-07-24 22:56:18 +02:00
wmayer
2bbbeaafd2 + make area build with LibPack 2015-07-24 19:23:06 +02:00
wmayer
b045896ce2 Merge branch 'master' of https://github.com/FreeCAD/FreeCAD 2015-07-24 16:45:31 +02:00
Yorik van Havre
cad1db484b Path: fixed clang warnings in libarea 2015-07-23 23:28:33 -03:00
Dan Falck
6d4bd04c9b changed the way points are compared for equality 2015-07-23 23:17:15 -03:00
Dan Falck
56fad0cceb cleaned up area cmake again 2015-07-23 23:17:15 -03:00
Dan Falck
98a32d7982 added BSD license, removed shared lib for C++ 2015-07-23 23:17:15 -03:00
Dan Falck
a6bb9a5e80 added CMakeLists for libarea 2015-07-23 23:17:15 -03:00
Dan Falck
afd2f27bdc somehow I forgot to add this earlier 2015-07-23 23:17:15 -03:00
Dan Falck
0d5aee2f62 removed dxf related files and code that used them 2015-07-23 23:17:15 -03:00
Dan Falck
797a6f1ddb initial add of libarea files 2015-07-23 23:17:15 -03:00
Yorik van Havre
34f1450cbd Arch: Fixed encoding in filenames 2015-07-22 17:51:55 -03:00
wmayer
de636242b3 Merge branch 'master' of git://github.com/FreeCAD/FreeCAD 2015-07-21 00:05:57 +02:00
Yorik van Havre
fcefdc0a8d Draft: small fix in DXF importer 2015-07-20 10:27:25 -03:00
Yorik van Havre
c2bedaeb96 Arch: small fix in windows - fixes #2193 2015-07-19 12:10:46 -03:00
wmayer
1b58ec8bb7 + simplify dependencies in CMakeLists.txt files 2015-07-17 12:18:44 +02:00
wmayer
0b1da87302 + eliminate cmake variable QT_DEBUG_LIBRARIES 2015-07-16 19:06:20 +02:00
wmayer
945638c405 Path: Fix a further warning 2015-07-14 19:12:46 +02:00
Yorik van Havre
9b476e140d Path: Several fixes suggested by wmayer 2015-07-14 12:23:40 -03:00
wmayer
44ae0d7ae7 + fix mesh smoothing panel 2015-07-14 17:02:38 +02:00
sgrogan
4d2e81796d [PATCH] Fix dependency on QtCored4 and icons 2015-07-13 10:52:02 +02:00
wmayer
18f0ec61eb + fix crash in ViewProviderFemMesh::setHighlightNodes when values out of range 2015-07-12 10:47:57 +02:00
wmayer
2f25170763 + write out product name if defined to IGES/STEP files 2015-07-11 14:05:47 +02:00
wmayer
b3970f63ba + implement missing types in FemMesh.addFace 2015-07-10 11:01:17 +02:00
wmayer
82a4eb0cec + apply Debian patch: unittest to stdout 2015-07-09 15:29:45 +02:00
wmayer
18a770f616 + Fix crash when passing emtpy argument list to Path.Tooltable 2015-07-09 13:14:11 +02:00
wmayer
df04df01f7 + add QSint test widget 2015-07-07 17:43:23 +02:00
wmayer
997001bbd9 + usage of QSint 2015-07-07 12:34:20 +02:00
Przemo Firszt
1470a32533 FEM: suppress some non error console messages
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:52 +02:00
Przemo Firszt
bf1accec06 FEM: get noisy if ccx produces something in stderr
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:51 +02:00
Przemo Firszt
f6bf3f3055 FEM: show ccx exit code if the code is not 0
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:51 +02:00
Przemo Firszt
c87c15946c FEM: raise exception is no analysis is specified or found in __init__
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:50 +02:00
Przemo Firszt
9a7151863c FEM: reset results_present on purge_results
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:49 +02:00
Przemo Firszt
3d94464ba4 FEM: add use_results to allow selecting results by name
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:49 +02:00
Przemo Firszt
e850604cdf FEM: Rename set_result_type to show_result
show_result by default shows Von Mises strass

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:48 +02:00
Przemo Firszt
52c453bdba FEM: add show_displacement to FemTools
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:47 +02:00
Przemo Firszt
ff742beb97 FEM: Add multi-thread calcs
Slightly modified code by kwahoo
2015-07-06 19:21:46 +02:00
Przemo Firszt
b45190fb4d FEM: Add Quick Analysis
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:46 +02:00
Przemo Firszt
7f9e50a22b FEM: Allow to run inp writing/ccx in separate thread
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:45 +02:00
Przemo Firszt
4c4e76aa2b FEM: Use check_prerequisites from FemTools
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:44 +02:00
Przemo Firszt
3187141dfe FEM: move writing inp file to FemTools module
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:44 +02:00
Przemo Firszt
e0956f67f3 FEM: Add basic FemTools module
That module will handle in the future all non-gui related features
that are currently in MechanicalAnalysis.py. It will allow easier
python scripting and greater flexibility when creating new FEM wb
features.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:43 +02:00
Przemo Firszt
2abdcf3b57 FEM: Move check_prerequisites to helpers section
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:42 +02:00
Przemo Firszt
5816bf1871 FEM: Move prepare_analysis_objects out of _JobControlTaskPanel class
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:41 +02:00
Przemo Firszt
81ff338236 FEM: Rename object to analysis_object
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:41 +02:00
Przemo Firszt
d250dc0425 FEM: Remove no longer used tempfile import
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:40 +02:00
Przemo Firszt
c8436a94d6 FEM: Fix and activate setting working directory for Calculix
Also add FEM preferences option to define working ccx directory

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:39 +02:00
Przemo Firszt
99d07fbd9a FEM: rename obj to move descriptive analysis_obj
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:39 +02:00
Przemo Firszt
28b0a8bb77 FEM: Split prepare_analysis_objects from check_prerequisites
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:38 +02:00
Przemo Firszt
67714c5025 FEM: Temporary dir is only used by ccxInpWriter, so move it there
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:37 +02:00
Przemo Firszt
f83520b2cc FEM: Remove out of date comments
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:37 +02:00
Yorik van Havre
3f4e55a474 Initial merge of Path module branch
authors: Yorik van Havre, Dan Falck, Brad Collette, Frederik Johansson, Dmitry Platonov,

eb4fd6c Path: moved colors preferences page to Path group
f4e5d70 a little more work on auto tool change
99a6e2f tied tool numbers in ops to last loaded tool
2d6fcda no need to select object for tooltable edit
b53eb15 Path: Fixed path bug #10 - Tooltableeditor
d6e996f Path: Fixed path bug #36 - Finish editing
16fe598 Path: Fixed path bug #37: labels in compound dialog
22dc594 Bugfix in pocket, was producing strange arcs due to a rounding error Path doesnt render values such as:-4.4408920985e-16 produced by python
9aae1d5 Make Gcode editor restore its size and position from last opened
b44e1d6 Move addToProject to PathUtils
71b727a Make all tools show its correct icon in the tree
86b32e0 Further simplify the code and fix issue in PathHop
e63b6b7 Simplify code and make automatic project creation more consistent across tools
261bfa3 Add ability to have external orocos-kdl library instead of the suplied in FreeCAD, used in Robot and Path workbenches
95efa27 Drilling-rapid to first location before moving Z
73537d6 I forgot to parse the SubObjects of the selection
044c23d improvements to drilling selection and properties
347fe62 small improvement to PathKurveUtils sorting
95ffe39 formatting
1003968 split full circles
27b19c2 added basic feedrate to PathKurveUtils
372ef57 Path: removed Path_rc and DemoParts from Cmake
98705ad using toBiarcs for paths based on splines
32663e5 slight startpt/endpt simplification
fd8f258 parametric start and end pts to PathKurve
b5e4761 still working on pathkurvetutils and points
01bf423 worked out clockwise profile paths
2825191 fixed typo
5a87872 still working on start and stop points for kurve
7fe77bc allowing points for start and stop of path
cb57d1b making ptlist consistant
3f2bf6c improvements to PathKurve
e3765a0 added libarea for pofile op-still much work to do
c882df2 small fix for adding arcs to edgelist
2cbac06 forgot Path_rc.py
45bf437 applied fix for windows icons not showing
61dbe07 PathUtils code cleanup
9d49cb8 Fix SortPath if no offset is specified
332eca0 split SortEdges and MakePath in prep for using kurve_funcs from HeeksCNC
799f1f1 tweaking visualization a bit
ba8eee6 small change back to way project holds toolpath for visualization
5ca4984 applied Werner's kdl patch
14c93be added units to tlo,revised centroid post
3c6341d Path: fixed spaces missing in file reading
10c20f9 removed editor button from project and post work
68ff118 removed stock command added small function to find last z value
0b71f92 tidying up profile a bit
fe8b4e9 moved the findtool function to PathUtils
4441695 Path: Exposed Command.transform() to python
09ed1d1 Path: Added a default empty preferences page
6ff0689 forgot to add the PathFromShape.py file
d6e3c4a added simple python proxy for PathShape So that it can be inserted into the Project tree automatically. Later, we can connect the base object to the shape so that it changes if the base shape is changed.
f5ca514 clean up of PathCopy.py
8336b96 moved Path from Shape to New Operation menu
7e73998 made PathCopy a child of the Project/Compound
7674b37 missed a modified file for unit handling
9aa1327 small change to account for pathcopy being InList
c35a109 PathPost doesn't barf now if the user rearranged the project.
09c4a1f working on Machine properties again
4bc32a4 more view property fixes
a453ad2 set defaults from post
3b051cb more property changes
ef5a015 reorganized properties.  Used PropertyLength/Distance in Drilling
311a059 made it so that the viewprovider settings would stick
e427303 fixed post function
3e528dc removed post processor file property from PathProject and added it to PathMachine
58a5339 added Machine object to hold post processor file name and tooltable information. Moved the cornermin,cornermax bounding box of machine to it. Haven't connected post processor file output from it yet, will do that next. Disconnected path output from Project object. It is really just a Group now that holds all the other path objects. Posts will now have to parse the objects inside it to get gcode. I think we are already doing that with the linuxcnc post and I plan on doing that with future posts. Removed a lot of view properties from lots of objects that don't need them. Use mode=2 and vobj.setEditorMode('LineWidth',mode) as an example of that. Removed placement property for things like PathComment because it doesn't make sense to try to alter placement of nongeometric things.
dd8b831 adding properties for using units
f84a2cc Multiple selection of points and circles for drilling.
f3d645a added viewprovider for drill icon in object tree
f564462 changed R plane behaviour for G81 drill cycle
85a056d added a few more drill/tap/bore cycles,changed z to R plane between drill cycles
9312ef9 Path: Added 3D representation of G81, G82 and G83 drill ops
0ed19d5 A stab at pathpocket with some reasonable properties and stepping down.
da9d6b5 forgot a quote mark
1c49c8d changed icon for optional stop
b7eb50e First bit of work on drilling.
4b3bc52 moved where comments and optional stops are located
3e9fbd7 added optional and mandatory stop commands
9e94269 added comment object
c3e44f5 removed a few properties
7cf86d7 automatic populating of tool numbers based on active ToolNumber
b607843 added tool length offset and load tool commands, made PathCompound accept objects that PathProject removed
8a93d54 reworked linuxcnc_post to use commands natively and not toGCode()
85f2cfd PathPost command now handles more cases including generic. Adds a simple dumper post to get raw commands.
aa827fa added G43 tool length offset
b1bf6d3 added new post, modded Profile for comments, fixed ZClearance in Profile
2fd5f2c added post process command and button
3cf6107 forgot about adding a file to cmake again
77f8a7f added new post, rearranged icons,modified PathProject
7e6adf3 added active property to PathPocket
d6b479a fixed stock, added active/inactive to a few ops
9a96b72 added pathplane and made fixture and pathprofile automatically populate or even create a project
d214281 forgot to add the actual script needed for stock
1adf36a added PathStock for material visualization
2ef30ea fixed bug in fixtures and changed icon
7b3e9dd made fixtures go inside a Path Project
6143c9a fixed JSON encoding error
c46cb2b added simple script to use the ToolTableEditor`
fc70a4d Turned Compound & Project into python objects
a1b9127 trying to fix segfualt
1bbf53e repaired fixture offsets
739e387 missing import. revised for new structure.  Creates multiple paths again.
38f2d25 added missing import
1837645 adding parameters to PathCompound
208bfdb Path: New pre/post interface
a252be1 rearranged and added some parameters to PathProject and PathCompound
9fa6278 Path: Added safe height property to project
de6812e made the icon a bit thicker
25beab0 merging Path-Copy with Path-Fixture
5cfffdc added icon for fixture offsets
af18281 Path: Added Path Copy object
89865ef pre support tool change and spindle speed (partially)
e9960f7 changes to opensbp post only.
421c12b Path: Fixed bug in paths with no move
272a11d added linuxcnc_post.py back to cmake
715c72b removed unused files
4ea4e18 added fixture offset script, removed unneeded scripts
855a3e0 fix for toolchange to get Tnumber to show
64f497c Path: Fixed unresponsive import/export dialogs
51c7a9e revert example post to simple form
5e25f3a Renamed pre_ and post_ scripts to _pre and _post
9837f3f first pass cleanup
9a42cee Path: Fixed scripts search path
3467a73 Path: search for pre & post scripts in user dir too - fixes #12
b46e527 Path: fixed precision bug - closes #25
c65fc05 added another post from sliptonic
718f499 Path: Enabled comments in Paths
ea0952f Path: Added preference color for machine extents
7578467 Path: Implemented machine properties  - issue yorikvanhavre/FreeCAD#8
1ae3a7d minor change to comment location
49f742d added Spindle Speed to profile
2a4374c added a second post processor example
5278d46 worked on sorting, reversing, sorting, and more sorting
7bc81bf separating selection function from PathUtils
64dd77c Path: small fix in absolute/relative coords
f435303 face selection works again
fa7074f rolled back and took another try at discretizing curves
ae1ff5b changed discretizing slightly
8e47d16 added discretizing of bezier curves to toolpaths
e85e087 fix for open wires/profiles worked on sorting again
a9a8a29 worked out arc segments over 180 degrees but not full circles yet
073a4a0 refactoring where sorting takes place
6723052 one more time on the sorting
050221c arc direction and path order-still problems but better
d7a79b1 I think I worked out backwards arc problem
a721aae corrected final depth on profile
4f07f01 I forgot to add the file for the previous commit
8eac175 combined ConvGcode and PathSelection into PathUtils
488a593 added some profile utility functions
4c4e0b2 worked on arc moves and reordering
cf04c3a Path: Added Hop tool and added arcs handlingin PathShape
417e9c7 Path: removed Tool number from dressup
4cedb9d Path: Fixed dressup
1b7e79f Path: Added UsePlacements property to compounds
8241513 Path: Added Dressup + fixed cmake + enabled python view provider
9721037 Path: Update bounding boxes when drawing path
9d8192e Path: Split compound into compound and project objects
250cdc7 Path: Added Drilling tool
8939e03 Path: Added translation file
466fe54 Path: Added an initial rapid move to FeatureShapes
7dfab6f Path: Added pocket tool
795f3c0 Path: added a ShowFirstRapid property to the path viewprovider
21e1272 Path: show number of tools in compound's task dialog
8dde2c5 Path: Added Profile tool
32b3fc1 Path: Added GUI import/export
fa1db60 Path: allow to import heeks tooltables and removed c++ workbench
e8c5a3a Path: Fixed tooltable editor
29fd0e4 Path: Allow pre scripts to return a list to create a compound
1eec4bd Path: Tooltable editor (BUGGY)
3ee661d Path: updated Path module dependencies in cmake
7137e04 Path: Added UI to reorder children of a path compound feature
3fb7073 Path: Added Path::FeatureShape feature
f496615 Path: added post editor
069b070 Path: Added structure for post scripts
bd0e669 Path: Added Path.insert() function
fcf1f18 Path: small bugfixes
09124e3 Path: Added spaces in (pseudo) Gcode output
efcb755 Path: Added pre script example
7a6a267 adding macro to find outer profile
274ff82 added a few macros
521d095 Path: Added FeatureCompound object
06eee1a adding python scripts and part files
42119ab added LGPL license
e8f0742 added demo parts and python experiments
c849734 Path: added tooltable property & Path.show() function
1886b4a Path: Added Path::FeaturePython object
b48b9d8 Path: correct placement behaviour and support for G90 and G91
00fe8a6 Path: Added support for G00
896c359 Path: Enabled different color for rapid moves
885a8d9 Path: small fix
a8d310b Path: improvements to the view provider
9fd88c5 Path: now removes comments when creating paths from gcode
dc0a0f1 Path: Fixed Z coordinate
ba6abc8 Path: Fixed color properties
8605629 Path: remember Z coord of last point if not specified
0d66fa9 Path: Misc upgrades to the view provider
f77c399 Path: Now supposes absolute positions instead of relative
a23b4e8 Path: Tooltable now behaves as a dicionary
eef5669 Path: simplified file saving/restoring
f15262f Path: enabled reading & writing of Path features
0a735ee More uniform caps system for enums, and added more materials
ad3f88e added a few more tools
ef62185 added more tools
f489758 removed whitespaces
5f906c6 added a few more tool definitions
84608dc minor changes to names
3ca1b5c Path: added Tool and Tooltable objects
d852a0b Path: extended path py object, enable coin representation in view provider
f7980b3 Path: extended the command object
a6205c4 Added Path Feature
dae6499 Path: Added Path object
693c0df Temporarily removed Gui from cmake
c2519e7 Path module: First commit
b3860d5 made a little progress- added ConvGcode to split and reverse paths
5761235 removed wire.reverse()- I couldn't get the hang of it
54a5482 added selection script along with parameters for profile
cecc1df Path: removed Tool number from dressup
7ca8e79 Path: Fixed dressup
d7d1a9b Path: Added UsePlacements property to compounds
a001d7c Path: Added Dressup + fixed cmake + enabled python view provider
5ff31b3 Path: Update bounding boxes when drawing path
946f26c Path: Split compound into compound and project objects
4c9fedd Path: Added Drilling tool
e88d431 Path: Added translation file
a989530 Path: Added an initial rapid move to FeatureShapes
8faab1e Path: Added pocket tool
e2dd1a4 Path: added a ShowFirstRapid property to the path viewprovider
5daa4ed Path: show number of tools in compound's task dialog
18bd973 Path: Added Profile tool
f613104 Path: Added GUI import/export
7e7bc79 Path: allow to import heeks tooltables and removed c++ workbench
a60325f Path: Fixed tooltable editor
802b413 Path: Allow pre scripts to return a list to create a compound
35fb2a1 Path: Tooltable editor (BUGGY)
3040bc1 Path: updated Path module dependencies in cmake
680d9a8 Path: Added UI to reorder children of a path compound feature
8ed321c Path: Added Path::FeatureShape feature
f81ccdd Path: added post editor
34d2cef Path: Added structure for post scripts
2ea3060 Path: Added Path.insert() function
e8561f4 Path: small bugfixes
ef6fe49 Path: Added spaces in (pseudo) Gcode output
909a944 Path: Added pre script example
58abd71 adding macro to find outer profile
a7415c5 added a few macros
51cd15b Path: Added FeatureCompound object
be6c10a adding python scripts and part files
30bde91 added LGPL license
93babeb added demo parts and python experiments
f69c9a9 Path: added tooltable property & Path.show() function
5796bea Path: Added Path::FeaturePython object
e6052bd Path: correct placement behaviour and support for G90 and G91
9f3977c Path: Added support for G00
1b95678 Path: Enabled different color for rapid moves
90bdc2c Path: small fix
6394ceb Path: improvements to the view provider
aa93f1e Path: now removes comments when creating paths from gcode
35a479b Path: Fixed Z coordinate
1947315 Path: Fixed color properties
987d8e3 Path: remember Z coord of last point if not specified
64da26c Path: Misc upgrades to the view provider
283df2b Path: Now supposes absolute positions instead of relative
b59a46d Path: Tooltable now behaves as a dicionary
b4c2edb Path: simplified file saving/restoring
8b36988 Path: enabled reading & writing of Path features
308bb20 More uniform caps system for enums, and added more materials
f9f129c added a few more tools
eb83a31 added more tools
bb40643 removed whitespaces
13cd406 added a few more tool definitions
6357082 minor changes to names
6a14580 Path: added Tool and Tooltable objects
bc14864 Path: extended path py object, enable coin representation in view provider
a8a19a0 Path: extended the command object
0174d04 Added Path Feature
a829a6c Path: Added Path object
ba7ca94 Temporarily removed Gui from cmake
3c9d77a Path module: First commit
2015-07-04 18:30:10 -03:00
wmayer
e404490651 + fix broken PolyPickerSelection 2015-07-02 14:51:38 +02:00
blobfish
0c93e0bcd5 Part: ModelRefine: don't call edgefuse perform directly 2015-07-02 10:26:02 +02:00
wmayer
9687c66a25 + add missing header 2015-07-02 06:59:13 +02:00
wmayer
834c0a642d + include missing header files 2015-07-01 13:02:29 +02:00
wmayer
2b53da4eee + include missing header files 2015-06-30 17:48:03 +02:00
wmayer
d826ad5b51 + Remove dependency to iisTaskPanel when not needed 2015-06-30 16:53:22 +02:00
wmayer
de7c8fcbbf + issue #0002053: Support of themes 2015-06-30 13:14:56 +02:00
Yorik van Havre
e239c65ba1 Arch: Small fix in IFC exporter 2015-06-28 00:23:06 -03:00
wmayer
882ecd3ce3 + implement class PythonGroupCommand 2015-06-27 17:21:02 +02:00
Yorik van Havre
38fffd8218 Draft: Enabled importing of SVG's symbol and use elements 2015-06-26 17:01:43 -03:00
Yorik van Havre
fed516d582 Arch: fixed bug in rebars 2015-06-26 13:50:02 -03:00
Daniel Falck
1a1927b8d5 added units to Draft Point Properties 2015-06-25 23:34:01 -03:00
Yorik van Havre
89cbdb35b6 Arch: External edges are now automatically removed from Rebars base sketches 2015-06-25 19:54:57 -03:00
wmayer
864e0bcccb + make it more obvious what BRep mode for IGES export means 2015-06-25 16:41:53 +02:00
Abdullah Tahiri
cac47d2548 Sketch: Bug Fix: Maintain the Elements and Constraint Widget synchronized
=========================================================================

What?
Sometimes this widgets where out of sync

Why?
Under the update only when it is redrawn policy, sometimes only one of them, i.e. the one associated with the property
triggering the updateData was updated.

Solution:
Both are updated after every redraw.

It also complements the previous bug fix related to crash on deleting, by updating the widgets to account for the deleted geometry.
2015-06-25 14:33:27 +02:00
Abdullah Tahiri
214169616d Sketch: Bug fix: On delete crash with unsuccesful solving
==========================================================

Fixes the one reported by JMG here (Thanks!!):
http://forum.freecadweb.org/viewtopic.php?f=3&t=11508#p92693

Why?
- The newly introduced redrawing policy requires that the solver geometry matches in number the sketchobject geometry.
- Most (all) problems with updateColor or getGeometry returning a null pointer are related to an out of sync between UI geometry and SketchObject geometry.

General solution:
- In other bugs, a missing "solve()" is the problem, once the solver and sketchobject geometries have the same number, an SketchObject::OnChanged triggers
a VPSketch::draw (via VPSketch::updateData) which updates the UI geometry to match SketchObject geometry and then the problem does not arise.

Particular solution:
- In this bug, the problem is not a missing solve, but the fact that the solving was not succesful and did not synchronize the geometries, however triggering a
draw() on unsuccessful solving, syncronizes the UI geometry with the SketchObject geometry and the crash is gone.
2015-06-25 14:33:22 +02:00
Eivind Kvedalen
3a69c926b5 Spreadsheet: Fixed bug in dependency tracking between objects. 2015-06-25 10:40:29 +02:00
Eivind Kvedalen
2e7b4602a9 Spreadsheet: Added initializer for Spreadsheet::RangeExpression class. 2015-06-25 10:40:15 +02:00
wmayer
165261e358 + fix memory leak 2015-06-24 20:07:36 +02:00
wmayer
c3c27817b6 + whitespace fixes 2015-06-24 19:59:53 +02:00
Abdullah Tahiri
2a54fba098 Sketcher: SparseQR as default QR method
=======================================

The SparseQR is set as default method. However, in accordance with the previous commit, only if a new enough Eigen library is present will SparseQR be executed.

If the library is old and SparseQR can not be reliably used, FC will automatically fall back to use DenseQR.

This ensures that users that have a new enough library > 3.2.2 will benefit from the performance increase, while the users that use older library will still have
the same performance as in legacy FC.
2015-06-24 17:57:06 +02:00
Abdullah Tahiri
ffaa0c8249 Sketcher: SparseQR conditional compilation
==========================================

For Eigen>=3.2.2 SparseQR is compiled in

For older versions SparseQR is not compiled in and if the option is selected FC gives a warning in the console and falls back to DenseQR.

This ensures that a user can get a sketch solved and work normally even if SparseQR is selected and the Eigen version is too old to support SparseQR.
2015-06-24 17:57:05 +02:00
Abdullah Tahiri
1fc88ebe24 Sketcher: Auto Update Mode bug fix
==================================

Bug:
http://forum.freecadweb.org/viewtopic.php?f=10&t=11341&start=60#p92422

Why?
- When coding Auto Update Mode I forgot to solve the sketch when the constraint is cancelled to restore the solver level constraints.
2015-06-24 17:57:05 +02:00
Abdullah Tahiri
82e24d830e Sketcher: Solver Advanced Control: New Param: QR Pivot Threshold
================================================================

A new parameter added to the form in order to control how low a value should be
to be considered zero (how high a value shall be to be accounted for in rank calculation)

Debug for QR pivot threshold is also added.
2015-06-24 17:57:04 +02:00
Abdullah Tahiri
8f68b14627 Sketcher: DL Solver Debug Improvement
=====================================

- In "Iteration Level" debug mode, DL now shows the stop condition code.
- More debug code
2015-06-24 17:57:04 +02:00
Abdullah Tahiri
efb08cd11c Sketcher: Disable Eigen multithread
===================================

Eigen currently only provides multithread for matrix products. It has been reported that it is even slightly slower than single-thread.
Therefore, temporarely the code is commented out. If Eigen ever implements multithread for QR decomposition, then it will make a lot of
sense to enable this.
2015-06-24 17:57:03 +02:00
Abdullah Tahiri
7f442c5a3f Sketcher: Improvement: Continuous Mode - View sketch Perpendicular
==================================================================

It allows the view sketch perpendicular button to be active during continuous mode creation (and if activated does not exit the continuous mode).

Feature requested:
http://forum.freecadweb.org/viewtopic.php?f=10&t=11051&start=30#p92256
2015-06-24 17:57:02 +02:00
Abdullah Tahiri
22bcb40484 Sketcher: Bug fix: Dense QR is set by default
=============================================

EigenQR branch 3.2 with debug code fails an assertion. The result is generally ok if we disable the assertions, however it
eventually leads to memory leakage.

This commit reenables Eigen's assertions when in debug mode, and sets dense QR as default QR algoritm until Eigen's issue is solved.
2015-06-24 17:57:02 +02:00
Abdullah Tahiri
cb2d70b4f0 Sketcher: Bug fix: Solver Advanced Control in BFGS
==================================================

- ternary operator usage was making BFGS not to iterate
- Amount of debug information for BFGS increased
2015-06-24 17:57:01 +02:00
Abdullah Tahiri
86f0df4f3c Sketcher: Improvement Continuous Creation Mode: Leave Sketch
============================================================

This enables to exit the sketch by clicking the corresponding toolbar icon, even when in creation mode, i.e.
with a drawHandler active.

Requested here:
http://forum.freecadweb.org/viewtopic.php?f=10&t=11051&start=30#p92181
2015-06-24 17:57:01 +02:00
Abdullah Tahiri
f3592c1216 Sketcher: Improvements: Solver Advanced control
===============================================

- Increased solver debug
- Changing default values from float to string, as float has "only" a precision of 12 decimals.
- Default values as macros
2015-06-24 17:57:00 +02:00
Abdullah Tahiri
516b0d3c56 Sketcher: Workaround for Eigen bug: SparseQR crash on matrices with rows>cols
=============================================================================

There is an issue with an assertion in Eigen, as reported here:
https://forum.kde.org/viewtopic.php?f=74&t=117474
http://forum.freecadweb.org/viewtopic.php?f=10&t=11341&p=92153#p92146

The work-around is to disable debug assertions for Eigen until the problem
gets solved.
2015-06-24 17:57:00 +02:00
Abdullah Tahiri
6030da1182 Sketcher: Solver improvements and bug fixes
===========================================

- Improvement Debug added to redundant solving in Iteration Mode, to show when just one iteration solved the system
- Fix wrong QR information on empty sketch
2015-06-24 17:56:59 +02:00
Abdullah Tahiri
bae32f74bb Sketcher: New setting: Show advanced solver taskbox
===================================================

I makes the advanced solver taskbox by default disabled (not shown) and provides
a setting in Preferences->Display->Sketcher to enable it.
2015-06-24 17:56:59 +02:00
Abdullah Tahiri
796c9d79d4 Sketcher: New Features: SparseQR decomposition and Solver advanced control TaskBox
==================================================================================

The solver has been adapted to use Eigen's SparseQR QR decomposition algorithm. The original
Dense QR implementation is maintained and can be selected using the Advanced Control TaskBox (see below).

The use of SparseQR provides over an order of magnitude improvement in solving time in complex sketches due to
the Sparse nature of the Jacobian matrix of the system of equations.

The solver advanced control is a new TaskBox in the Sketcher that allows to select which algorithms are to be used for
the different solving operations and tweak its parameters. It is not intended to be a user control, but means to debug
solving problems and improve the algorithms and their configuration.

This commit also introduces multithread support for Eigen. Currently it is only limited to products and does not provide
a substantial speed improvement. It is expected to have more multithreaded operations in Eigen in the future.

As a bonus, the TaskBoxes in the Taskbar of the Sketcher remember the last state (collapsed or deployed).
2015-06-24 17:56:58 +02:00
Abdullah Tahiri
480d23f8e1 Sketcher: Bug fix: Unexpected crashes during certain operations
===============================================================

The sketcher crashed for example during effecting a fillet operation.

Cause:
The ElementsWidget/ConstraintWidget was being updated as a consequence of adding/removing geometry/constraints, and it was effecting
a selection after the update, in cases where the geometry in the screen was not being redraw (because the sketchobject was still unsolved), therefore
trying to select an element that according to ViewProvider did not exist (as it is created during redraw).

Solution:
Widgets update when their properties changes, provided that a redraw is effected (which actually also saves some (negligible) time, as they are only updated when they should).
2015-06-24 17:56:57 +02:00
Abdullah Tahiri
93c836fdcf Sketcher: Bug fix Trim
======================

In no update mode, the last constraint was not enforced. The DoF was not properly shown.

The trim operation it is always solved at the end now if in no recompute mode.
2015-06-24 17:56:56 +02:00
Abdullah Tahiri
65310f00ab Sketcher bug fixes: Crash on deleting a line from the sketch
============================================================

- Crashing on deleting line on fully constraint box

As a bonus:
- Fully constrained sketch not shown in green on opening the sketch
2015-06-24 17:56:56 +02:00
Przemo Firszt
4caa464ebb FEM: All FEM results are stored in a single object
Functionality previously provided by setNodeColorByResult is now
in setNodeColorByScalars. FemResult* object is no longer required,
the function accepts list of elements and a list of values.

Functionality previously provided by setNodeDisplacementByResult is now
in setNodeDisplacementByVectors. FemResult* object is no longer required,
the function accepts list of elements and a list of vectors.

A side effect: FemResultValues and FemResultVector are no longer used
and have bee removed.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-24 17:44:02 +02:00
wmayer
9680f13854 + fix loading of certain urls in web page 2015-06-24 13:35:13 +02:00
Fredrik Johansson
16c740a6f9 Add ability to have external orocos-kdl library instead of the suplied
in FreeCAD, used in Robot and Path workbenches

cmake switch: FREECAD_USE_EXTERNAL_KDL

Makes Robot workbench and Path compilable on OS X 10.9
2015-06-24 11:54:31 +02:00
Yorik van Havre
18624df555 Draft: Better docstring for DraftGeomUtils.fillet() 2015-06-22 22:03:13 -03:00
Yorik van Havre
4379846dfa Arch: Section planes now restore the view clipping when loaded 2015-06-22 21:58:56 -03:00
Yorik van Havre
cd25a34171 Arch: added warning message when wall base is not a Part or Mesh 2015-06-21 21:45:18 -03:00
Abdullah Tahiri
074d5d7f11 Sketcher: Bug fix External geometry not appearing upon insertion
================================================================

A last moment change to regulate redrawing introduced this issue (reducing the redrawing to the cases where the solver geometry and the sketchObject geometry are equal).
This change also solved other issues.

The case of adding external geometry is special because the DoF is the same after insertion, yet there is an insertion (as opposed to the toggle case, where there is a change but no insertion).

SketchObject has been adapted to require a solver update before moving (which also caused a non-yet-reported crash, a separate bug), and CommandCreateGeo has been adapted to trigger a solve with
auto update mode disabled. This solve is a very low cost one as the geometry is already in place.
2015-06-17 14:53:34 +02:00
Yorik van Havre
8b4492ebc5 Arch: small bugfix in cutvolumes 2015-06-17 09:45:01 -03:00
wmayer
238becaebb + further optimization in sketcher 2015-06-16 10:18:11 +02:00
wmayer
788fadf4a8 + fix const correctness 2015-06-15 23:42:37 +02:00
Abdullah Tahiri
ec5f3b2b98 Sketcher: new Feature: Group creation of Sketcher geometry and other improvements and bug fixes
===============================================================================================

Group creation:
- complex geometries (consisting of several geometry elements and constraints) have been rewritten to use python list (one command call for all geometries and constraints)
- Ellipse ExposeInternalGeo as group creation of geometries and constraints

To construction mode creation:
- addGeometry python and SketchObject functions modified to take an additional optional parameter "construction" to create the geometry/geometries directly as construction.
  In addition to the shorter form, this helps generate less amount of onChange propagation and Redraws.
- all the geometry creation commands in CommandCreateGeo.cpp have been rewritten to use the new construction argument. This includes modifying the regular polygon script to
take a new optional parameter to create geometry as construction in addGeometry.
- special care is taken in group creation not make construction points
- Show/hide internal geometry implemented with this option.

To solving:
- the solve previously included after every geometry addition (when in no Update, e.i. no Recompute mode) has been removed and each Gui::Command calls either an UpdateActive
for recompute or a Solve in no Update mode. This is behaviour is less intrusive and uniform with group creation.

Bug fixes and redrawing reduction:
- Fixes the CheckId exception problem. The solution also helps further remove redraws during creation of complex geometry (e.g. Slot)
- Fixes touching the sketch by only opening it.
- Code clean up.
2015-06-15 22:56:36 +02:00
Abdullah Tahiri
61bd2d41ac Sketcher: Requested Feature: Remove help button
===============================================

The help button next to the close button in the Task dialog is now removed.

It was requested that this button is removed as it is inconsistent with other help sources and it is not implemented.
2015-06-15 22:56:20 +02:00
Abdullah Tahiri
d1acd124cc Sketcher: Bug fix: Undo/Redo implementation
================================================

Fixes a bug in master that the dependent 3D geometry would not update on Undo (in Auto update mode enabled).

Undo and redo signals are handled by ViewProvider in order to introduce an recompute or solve() of the sketchObject
as determined by the Auto Update Mode in order to update DoF and dependent geometry if necessary.
2015-06-15 22:56:04 +02:00
Abdullah Tahiri
eb7a3c763c Bug fix: General reduction solution / new sketch solving model
=================================================================

The new solving architecture focus all the solving on the SketchObject.

Actions that change the DoF can call execute() (i.e. recompute) or Solve() depending on whether a full recompute of dependent features is required or not.
In both calls the geometry of the solver is updated with the geometry of the SketchObject.

The only additional call that calls the solver is MovePoint. This function may or may not update the geometry of the SketchObject
(as now it is intended for UI related solving, like dragging, rubberbands, ...).

In operations that do not involve a change of DoF and therefore do not require a sketch solving, it may happen that as a side effect of moving a point, the
geometry changes to old behaviour. In order to avoid that, those SketchObject operations, as for example setConstruction or ToggleConstruction,
must set a flag "bool solverNeedsUpdate" to true. In case a movePoint is executed before any other solver execution, the geometry is first updated and then
the moving is performed.

So to keep in mind when programming sketcher operations:
-> Need recompute (UpdateActive)
-> Need solving because DoF changed (solve())
-> The operation does not change DoF (set solverNeedsUpdate to true)
2015-06-15 22:55:28 +02:00
Abdullah Tahiri
4b0bd78814 Sketcher: Bug fixes to Auto-Update Mode
=======================================

- Fixing toggle AutoUpdate Mode
- Fix Auto-Update Sketcher tools
- Fix missing createGeo recomputes
- Missing constraints recomputes fixed

Various fixes for non-Update mode:
- Fixes lack of update upon entering a conflicting datum constraint.
- Fixes lack of update upon setting the reference/driving status of a constraint

- Added tooltips to buttons
2015-06-15 22:55:04 +02:00
Abdullah Tahiri
339717c96f Sketcher: Bug fix of New Solver Model: DoF and solver update on deletion of constraints
=========================================================

Upon deletion of a constraint, the constraint was still enforced for UI operations (dragging of a point) and DoF was not updated.
2015-06-15 22:54:49 +02:00
Abdullah Tahiri
a21265f9b6 Sketcher: New Feature: Avoiding to continuously recompute all the sketch (and dependent objects)
======================================================================================

There is a checkbox, default disabled, that makes the commands NOT to generate a recompute after each.
This means that if you are editing a sketch that is used to generate a pad or pocket, if the checkbox is
disabled, the dependent objects do not get recomputed.

There is a button next to it to force a manual recompute, in case it is needed.

If the user wants the previous behavior, he only needs to activate the checkbox. The previous status of the box
is restored upon entering a sketch in edit mode.

It is remarkable the case of the Fillet and Trim

On changing ActSketch (solvedSketch) to SketchObject and making movePoint not systematically update the geometry, the solving in MovePoint was confronted with solving for "the last solved geometry",
which is the default behaviour, in some situations (Fillet and Trim) where geometry had changed at SketchObject level, and was the subject of the moving actions.

MovePoint has been updated to take an extra optional parameter, to force the change in solved geometry in those situations.

Some other minor bug also fixed in Fillet creation in CommandCreateGeo.cpp

This commit also introduces conditional recompute on some operations of:
- constraints
- geometry creation (reubication of update active to comprise the autoconstraints within a single UpdateActive)
2015-06-15 22:54:32 +02:00
Abdullah Tahiri
0e92e6356f Sketcher: Major re-structuration: New Solving Model: General Sketch Solve call reduction
=======================================================================================

ActSketch in ViewProvider dissapears. The temporal sketch (sketch.cpp) for solving is now a data member of SketchObject.cpp (hereinafter solvedSketch). All the solving is concentrated in SketchObject.cpp.

SketchObject provides an interface to expose its solver, as it is still currently needed for some UI operations from ViewProviderSketch, like dragging points (solving rubber bands).

ViewProviderSketch still can select whether to draw the solvedSketch geometry (previously ActSketch) geometry (UI staff) or the SketchObject geometry. Performancewise, it makes sense to separate this two
geometries, as the SketchObject one involves modifying the Geometry and Constraint Properties (including all the undo related functionality), which would mess the undo functinality and incur in a big
peformance penalisation while dragging. One characteristic of solvedSketch is that its geometry is solved, whereas the geometry of SketchObject may not have been solved yet.

These geometries may differ at for the following reasons:
1. The geometry corresponds to an ongoing dragging operation, so solvedSketch has the last calculated dragging geometry, while SketchObject has the one corresponding to initial position.
2. Geometry/constraints were added to the sketch, but no solve/execute was triggered yet (envisioned situation is the future group creation functionality not in this commit).

What do I gain?

- Inserting a (simple) geometry element now costs 1 solver execution.
- Inserting a constraint now costs 1 solver executions.

For reference, in previous versions inserting a constraint involved 5 solver executions.

The following information provide a historical review of the coding of this commit (formed of 10 squashed commits):

This is a general sketch solve call reduction, not only during geometry creation (this commit does not include until here any specific measure to reduce calls on geometry creation, that is another branch)

After a lot of profiling, it seems that the "cause"(tm) that creates so many solver calls is that every update generates a solving in ViewProviderSketch, regardless of the need for that update,
many times with the only aim of providing the DoF for the message dialog and keeping ActSketch in sync with SketchObject in case it is needed (currently UI moving points, constraints,...).

Sketch solver is now a data member of SketchObject instead of a temporal object that gets initilized and destroyed.

This allows:
1. Potentially more synergy reducing calls to setUpSketch (still to be seen, still to be optimized)
2. Allowing SketchObject to access the latest geometry that has been solved => In future, allow objects that use SketchObject to obtain the latest
solved geometry instead the geometry of SketchObject that may still be unsolved. This is relevant for drawing the geometry

No more solving in ViewProviderSketch. Solving a Sketch is now an exclusive competence of SketchObject.

There is however a lot of cleaning to do in ViewProviderSketch

(I mean, not that these commits are making a mess in VPSketch,
but that as a consequence of the changes, it should be possible to
optimize VPSketch, specially moving and drawing methods)

Very useful comment for future developers that may wonder why a solve per constraint just upon addition is necessary.

Added a new function to get the size of the geometry of the instance of the solver object (Sketch.cpp).
The previous way was to extract the geometry, which is costly and error prone, as you have to delete it afterwards.

Inserted comment about the necessity of triggering a Part2D update during edit mode
2015-06-15 22:53:59 +02:00
wmayer
280019ddf9 + implement Geometry.copy for Python 2015-06-15 21:28:29 +02:00
Yorik van Havre
d0cfe4b010 Arch: Allow to build Arch objects from Part Compounds - fixes #2095
Arch objects can now be based on a Part Compound and will take
its DiffuseColor property. Arch objects that are clones of
such objects will also copy that property.
2015-06-14 18:36:54 -03:00
Eivind Kvedalen
d0d98b8775 Spreadsheet: Fixed exception bug in SheetPy::setCustomAttributes(...). 2015-06-13 12:48:21 +02:00
Eivind Kvedalen
e864bb8d92 Spreadsheet: Added test macro. 2015-06-13 12:47:52 +02:00
Eivind Kvedalen
efc21a5a63 Spreadsheet: Removed superfluous fc_target_copy_resource call in CMakeLists.txt. 2015-06-13 12:47:36 +02:00
Eivind Kvedalen
9d5d05a708 Spreadsheet: Fixed handling of unary minus/plus, exponentation order, and unit rule (#2099) 2015-06-13 12:47:19 +02:00
Eivind Kvedalen
12e4d59458 Spreadsheet: Fixed bug in setEdit method for Spreadsheet module (#2144) 2015-06-13 12:46:53 +02:00
Yorik van Havre
edbbcfb790 Draft: Fixed placement of one-face Facebinders 2015-06-12 11:08:49 -03:00
Yorik van Havre
40f8bb4143 Arch: Fixed encoding bug in IFC export 2015-06-11 23:02:29 -03:00
wmayer
54317becbf + fix writing STEP settings 2015-06-09 21:23:16 +02:00
Przemo Firszt
3a7772d0f7 FEM: Save/restore result dialog settings
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-09 13:07:49 -03:00
Przemo Firszt
793a5b79f1 FEM: Rename dialog element callbacks
Also setDisplacement function has been removed

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-09 13:07:49 -03:00
Przemo Firszt
5853eabc62 FEM: Always import FemGui
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-09 13:07:49 -03:00
Przemo Firszt
6de28c158d FEM: fix white space
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-09 13:07:49 -03:00
Przemo Firszt
9766893be1 FEM: Change FEM results selection to radio buttons
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-09 13:07:49 -03:00
Przemo Firszt
f29b003810 FEM: Add reset_mesh_color and reset_mesh_deformation functions
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-09 13:07:49 -03:00
Przemo Firszt
ca47eeaeff FEM: Remove unused property
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-09 13:07:49 -03:00
Przemo Firszt
6df5809c33 FEM: Optimise check_prerequisities
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-09 13:07:49 -03:00
Przemo Firszt
da83e47241 FEM: Remove old results before loading new set
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-09 13:07:49 -03:00
Przemo Firszt
157399e395 FEM: Fix problem with using old displacement value after recalculation
Reported-by: bernd
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-09 13:07:49 -03:00
Yorik van Havre
895510e08d Draft: small bugfix in Drawing view 2015-06-08 19:05:37 -03:00
Yorik van Havre
48113f3bca Arch: Fixed encoding in IFC import - fixes #2149 2015-06-06 12:52:44 -03:00
Ian Rees
418cefd7ee Cleaning up compile warnings, mainly in Sketcher
fabs() instead of std::abs(), add cmath include
2015-06-04 18:12:39 +02:00
DeepSOIC
37fbcb64a6 Part: new tools - JoinFeatures (Connect, Embed and Cutout)
Attributions:
Mark (quick61) - icons
Yorik - help with internationalization
Everyone who appeared in forum thread "A new Part tool is being born...
JoinFeatures!" - for endorsement!
http://forum.freecadweb.org/viewtopic.php?f=22&t=11112
2015-06-04 09:47:59 +02:00
wmayer
c3808cd991 + Use update mechanism for CmdSketcherToggleConstruction 2015-06-03 19:12:48 +02:00
wmayer
cf1a77a44d + Use update mechanism for CmdSketcherToggleDrivingConstraint 2015-06-03 18:31:30 +02:00
Yorik van Havre
0fec404c6d Arch: fixed Label encoding in IFC export 2015-06-02 19:58:59 -03:00
Przemo Firszt
4e94c02dda FEM: Rename animateNodes to applyDisplacementToNodes
Also animateNodes is now applyDisplacementToNodes.
The funcions are not doing animation, but are responsible
for deforming mesh.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:35:34 +01:00
Przemo Firszt
8195ce579b FEM: Remove not used setColorStress function
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:35:34 +01:00
Przemo Firszt
aed303f4ff FEM: Add curly brackets to one line for/if or if/if commands
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:35:34 +01:00
Przemo Firszt
70318d7820 FEM: Disable Show result button if there are no results in analysis
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:35:34 +01:00
Przemo Firszt
749e772d85 FEM: Add Purge FEM results button
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:35:34 +01:00
Przemo Firszt
97a6333f87 FEM: Simplify setting FEM results when user selected None
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:35:34 +01:00
Przemo Firszt
302dbbf0be FEM: Fix problem with Show button not reverting mesh deformation
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:35:34 +01:00
Przemo Firszt
dc7da86261 FEM: Don't use bool as variable name
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:35:21 +01:00
Przemo Firszt
6a13a51b90 FEM: Don't check is Show is checked after slider has been moved.
Slider is disbled is Show is not ticked, so that check is redundant.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:35:10 +01:00
Przemo Firszt
74234e7000 FEM: Switch to reading analysis stats from AnalysisStats object
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:28:44 +01:00
Przemo Firszt
597c9b856b FEM: Add AnalysisStats object
This commit add a new object to Analysis: AnalysisStats. AnalysisStats
contains list with 15 values (an example):
-0.000776373	<-- minimum X displacement
-7.74494e-06	<-- average X displacement
0.000774115	<-- maximum X displacement
-0.00416267	<-- minimum Y displacement
-0.00204191	<-- average Y displacement
0		<-- maximum Y displacement
-0.000775108	<-- minimum Z displacement
1.09288e-05	<-- average Z displacement
0.000775122	<-- maximum Z displacement
0		<-- minimum Abs displacement
0.00214509	<-- average Abs displacement
0.00430481	<-- maximum Abs displacement
0.390598	<-- minimum Von Mises Stress
0.93509		<-- average Von Mises Stress
1.47765		<-- maximum Von Mises Stress

Those values will be used to set field values in FEM results dialog
instead of currently used values returned by setNodeColorByResult
function.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:28:44 +01:00
Przemo Firszt
9c6ee0ac63 FEM: simplify reading lines from frd file
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:28:44 +01:00
Przemo Firszt
f5863b6d9b FEM: replace input with frd_file in ccxFrdReader.py
input is a built-in function name and should not be used as variable name

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:28:44 +01:00
Przemo Firszt
05cb44bfb0 FEM: use is instead of == for None in ccxFrdReader.py
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:28:44 +01:00
Przemo Firszt
39b407fdba FEM: replace deprecated has_key in ccxFrdReader.py
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:28:44 +01:00
Przemo Firszt
cd5cc689dc FEM: white space fixes in ccxFrdReader.py
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:28:44 +01:00
J.L. Cercos-Pita
b27e512828 Corrected the wetted surface units 2015-06-01 12:00:30 -03:00
J.L. Cercos-Pita
657041d6b1 Updated the spreadsheets to the new module 2015-06-01 12:00:29 -03:00
J.L. Cercos-Pita
f7be7d1e30 Fixed the locales 2015-06-01 12:00:29 -03:00
J.L. Cercos-Pita
dfa96bd3fe Fixed the locales in the Hydrostatic tools 2015-06-01 12:00:29 -03:00
J.L. Cercos-Pita
63360966f9 Fixed the problems with the group separator in some locales 2015-06-01 12:00:29 -03:00
J.L. Cercos-Pita
3a52249400 Extended the locale fixe to the stored variables into the Ship instance 2015-06-01 12:00:29 -03:00
J.L. Cercos-Pita
f867db6f71 Fixed the problems with the group separator in some locales 2015-06-01 12:00:29 -03:00
J.L. Cercos-Pita
5c79b2f762 Updated the areas computation tool to the new spreadsheet 2015-06-01 12:00:29 -03:00
J.L. Cercos-Pita
071829dbc9 Fixed 'Axes' object has no attribute 'get_frame' error (see http://matplotlib.org/api/api_changes.html) 2015-05-31 19:28:16 +02:00
wmayer
a12f700aa2 + fix some warnings 2015-05-30 20:59:25 +02:00
wmayer
351e7aae6f + fix wrong default of ContinueMode in settings panel 2015-05-30 20:42:33 +02:00
wmayer
eef340f19c + fix whitespaces 2015-05-30 20:30:12 +02:00
Abdullah Tahiri
3b1873f1dc Sketcher Improvement: Always enable geometry creation
==============================================================================

Now you can switch from one tool to the next just by clicking on the next tool
2015-05-30 16:39:34 +02:00
Abdullah Tahiri
ca356c308e Sketcher Driving/Reference and Construction/Normal single buttons icons
=======================================================================
2015-05-30 16:39:33 +02:00
Abdullah Tahiri
0bd3801314 Sketcher: UI Improvement Smart button for constraints and geometry toogle/creation
==================================================================================

Geometry button:
- if no object selected, the legacy toggle icon has a new functionality, switch to/from creating in construction mode
- if object selected, it has the legacy functionality
- the button can be clicked during "continuos creation mode" to switch from creating to/from creating in construction mode

Constraint button:
- The button is not selectable if nothing is selected (it would be impossible to determine the effect)
- When constraints are selected, the button toggles the constraints to/from Driving.
- When geometry is selected, the button switches from/to reference mode, the change is apparent from the color of the constraint icons.

Continuous creation mode:
- Default changed so that it is active unless you change it in settings

Updated terminology
2015-05-30 16:39:32 +02:00
Abdullah Tahiri
a1c3b942aa Sketcher: Driving/reference creation improvements and some other fixes
======================================================================

- Changing from Driving to reference does not include unnecessary solvings.
- Added some checks to avoid making Driving constraints when calling directly from python and involving only external geometry (would give redundant constraints).
- New python command toggleDriving to just change the status from reference to Driving
- New UI toolbar Command to toggle constraints
- Fix to allow switching from/to construction mode during continuous mode creation.
- Enable/Disable for constraints in constraints widget has changed to operate on multiselection and now effects "toggle" instead of enable/disable.
- Disable the option to directly create a SnellsLaw non-driving constraint (this constraint does not support direct creation, it can be toggled to non-driving after creation though).
2015-05-30 16:39:32 +02:00
Abdullah Tahiri
4dfc96e102 Bug fix: Point was created as construction on construction mode
==============================================================

Points should not be construction points.
2015-05-30 16:39:31 +02:00
Abdullah Tahiri
8685e94b76 Bug fix: Sketcher fillet on construction lines
==============================================

The fillet applied to construction lines generates normal (not construction) geometry.

How to replicate?
1.Make a square and make all lines construction lines.
2.Apply fillet tool, there result will be a white line fillet connecting two blue constructions lines.
2015-05-30 16:39:31 +02:00
Abdullah Tahiri
75fa12964e Sketcher Driving/reference mode icons 2015-05-30 16:39:30 +02:00
Abdullah Tahiri
765b720c48 Sketcher New Feature: Toggle Mode for Reference/Driving constraints
===================================================================

It allows to create constraints directly into Reference or Driving mode.

It does not include icons
2015-05-30 16:39:30 +02:00
Abdullah Tahiri
d5ec887526 Sketcher: Construction Mode Icons 2015-05-30 16:39:28 +02:00
Abdullah Tahiri
1c803df7d4 Sketcher new Feature: Creation Mode of geometry
===============================================

It allows to select whether the geometry will be created as construction geometry or normal geometry.

This commit includes an important bug fix to reduce the number of times the sketcher solver is called when toggling
geometry. It makes an important difference in the creation during construction mode and InternalAligment geometry like the ellipse.

This commit does not include icons.

You have a button next to toggle that after having been clicked, switches from Normal to Construction geometry and vice versa
2015-05-30 16:39:28 +02:00
Abdullah Tahiri
3231a0c92a Sketcher: New Feature: External Geometry Linking improvement
============================================================

It lifts the need of clicking on the external geometry icon upon importing each external geometry element.

All the elements on which the user clicks are imported until the user right clicks with the mouse or presses ESC, like the Trim or Fillet tools.
2015-05-30 16:39:27 +02:00
Abdullah Tahiri
ba5a8fe87c Sketcher: New Feature: Continuous creation mode
===============================================

When creating a type of geometric element, the user can create as many elements of that type he wishes without having to click the button before each insertion.

The insertion of that type of elements ends by pressing ESC or clicking the right button of the mouse.

This mode is by default disabled and can be enabled in Preferences->Display->Sketch->Geometry Creation "Continue Mode".
2015-05-30 16:39:26 +02:00
Abdullah Tahiri
f7c9566f1e Sketcher bug fixes: Non-driving constraints editable on double click and color settings not working
===================================================================================================

This fixes a bug in the original implementation, that a non-driving constraint value could be
edited by double clicking on it in the 3D view.

It also includes minimal documentation on some functions.

It also includes:
- Color setting for non-driving constraints was not working.
- Settle UI terminology dispute:
  * Driving Constraint (normal red constraint)
  * Reference Constraint (non-driving constraint)
2015-05-30 16:39:26 +02:00
Abdullah Tahiri
ad180fb2c3 Sketcher New Feature: Non-driving constraints Icons by bejant
=============================================================

Nice icons to differentiate driving from non-driving constraints by bejant
2015-05-30 16:39:25 +02:00
Abdullah Tahiri
bc85670ce9 Sketcher new Feature: Non-driving constraints (aka Driven constraints or dimensions)
====================================================================================

It allows to enable and disable a constraint in the constraint list.

When disabled, the constraints current value is shown, but its value is not enforced (it is driven by the other constraints and user interaction).

A disabled constraint can be enabled (as far as it is enforceable, see non-driving constraints to external geometry below).

The sketcher functionality has been extended to support non-driving constraints to external geometry elements. This were previously excluded from
the possibility of creating a constraint on them (as their values depend on other sketches and would be redundant with the unchanged value or conflicting when value is changed).
Now these constraints are created as non-driving, but as they are not enforceable, the UI does not allow you to make them driving.

The constraint filter has been extended to include a Non-Driving constraints category.

Thanks again to Werner for his continuous support, and specially in this case to DeepSOIC, as he pointed towards a much better implementation solution than my original idea.
2015-05-30 16:39:25 +02:00
Abdullah Tahiri
5676c632f6 Bug fix: Sketcher Polygon autoconstraints
=========================================

The autoconstraints on creation of an hexagon were not working.

How to reproduce?
1. In a sketch make a couple of lines
2. Create an hexagon (or other polygon of your choice) with center in one end of a line and with side coincident with the end point of the other line

Result:
Neither the center nor the side autoconstraints are properly created.

Fix:
Straightforward. Just correct the indexes. Last is always the circle. Last but one is always a side.
2015-05-27 16:22:31 +02:00
wmayer
24b71377e1 + fix whitespaces 2015-05-26 17:55:38 +02:00
Przemo Firszt
cd4952dee4 FEM: fix white spaces in ccxInpWriter.py
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-26 14:33:43 +01:00
Przemo Firszt
e13a8cf304 FEM: Add ConstraintPressure
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-26 14:17:45 +01:00
Bernd Hahnebach
3c629f095d FEM: CLOAD, mesh face area is used for surface loads on volume faces 2015-05-26 13:50:38 +02:00
Abdullah Tahiri
81bd2cf34a Bug fix: Sketcher: "Ask for value after creating distance constraint" setting not working
========================================================================================

How to replicate:
1. Go to Preferences->Display->Sketch and disable that checkbox.
2. Create a distance constraint (radius, distance, ...)

It will ask for the value regardless of whether the checkbox is clicked or not.

Why?
In SketcherSettings.ui the prefpath is "Mod/Sketcher"
The code refered to ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Mod/Sketcher/General");
2015-05-26 13:45:24 +02:00
wmayer
a2bdc366f0 + make sure that Sketch.clear() doesn't allow any arguments 2015-05-26 13:11:48 +02:00
Abdullah Tahiri
b5ff8cdc82 Sketcher Bug fix: Python function clear() contains wrong code
=============================================================

This function is like this from 2011 according to git blame.

The original code makes no sense. I assume that what is intended in this
function (in accordance with SketchPy.xml) is call the method clear in
Sketch.cpp.
2015-05-26 13:08:22 +02:00
wood-galaxy
7843225fad Arch : Arch Section take current WorkingPlane Placement 2015-05-24 17:03:45 -03:00
Przemo Firszt
c5903523ea Part: PartDesign: Fine tune chamfer, fillet and draft icons
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-24 10:52:26 +01:00
Yorik van Havre
bb3be15ff5 Draft: Removed the 'Hide Draft Workbench' Draft preference since we now have full WB customization 2015-05-23 13:17:50 -03:00
wmayer
1099b23587 + raise error message when trying to mesh without netgen support 2015-05-22 16:15:18 +02:00
wmayer
ef610c8c96 + remove SoFCSelection from ViewProviderGeometryObject 2015-05-20 21:44:27 +02:00
wmayer
27863408c9 + remove references to SoFCSelection where not needed 2015-05-20 19:24:12 +02:00
wmayer
562ecea9cf + fix text in drawing dialog 2015-05-20 18:16:49 +02:00
jriegel
aa142250e0 add shell and beam support to FEM mesh ViewProvider 2015-05-19 21:42:36 +02:00
Yorik van Havre
afef89a8ef Arch: Fixed materials merge in IFC import 2015-05-19 10:15:07 -03:00
Przemo Firszt
b507505a47 FEM: Fix crash on missing unit when editing material second time
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-18 17:09:30 +01:00
Yorik van Havre
691b1af944 Arch: Added pref option to IFC import to treat materials with same name as one 2015-05-17 14:22:24 -03:00
wmayer
f8eb61fdf8 + prepare OCAF document to keep placement 2015-05-16 21:41:53 +02:00
wmayer
854b4be506 + prepare OCAF document to keep placement 2015-05-16 18:01:57 +02:00
wmayer
00a124cea1 + Pad type UpToFirst and UpToFace doesn't produce expected results. 2015-05-16 14:19:20 +02:00
wmayer
a6436f7d12 + fixes #0001655: Pocket type UpToFirst and UpToFace doesn't produce expected results. 2015-05-16 12:44:07 +02:00
wmayer
78671cb27e + raise exceptions in TopoShape::makeOffsetShape if needed 2015-05-15 20:20:37 +02:00
wmayer
4fe99f2658 + whitespace improvement 2015-05-15 20:07:55 +02:00
blobfish
0950e1963a Part: Offset: fill rework. 2015-05-15 20:00:47 +02:00
blobfish
cb2002d188 Part: ModelRefine: fix for bug# 2097 2015-05-15 18:06:33 +02:00
Yorik van Havre
25da93e2ea Arch: small bugfix in IFC importer 2015-05-15 11:27:15 -03:00
wmayer
96e77ab5bf + FEM: replace set with list to preserve order 2015-05-15 13:48:29 +02:00
wmayer
84d579186c Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code 2015-05-13 12:01:23 +02:00
Yorik van Havre
a6fad36ab6 Arch: small bugfix in windows 2015-05-12 23:26:41 -03:00
Yorik van Havre
c7c5171233 Draft: fixed typo 2015-05-12 22:14:06 -03:00
Przemo Firszt
29044021cd FEM: Fix Von Mises equation
Reported-by: sgrogan and confirmed by drei

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-12 15:58:49 +01:00
Yorik van Havre
bcec2d45ad Arch: Added MDF presets to panel 2015-05-10 11:30:01 -03:00
Sebastian Hoogen
d4f3cb7277 use transformGeometry in importSVG
partly reverts f045df1ef3 as workaround
for issue #2062
2015-05-09 19:57:36 +02:00
Yorik van Havre
31cecf79a1 Draft: Added archang's patch to importDWG 2015-05-09 12:39:53 -03:00
wmayer
45604b3874 + use list of pairs instead of map for getVolumesByFace 2015-05-09 12:02:25 +02:00
wmayer
fbdfeef2a3 + add method getPolesAndWeights() to NURBS surfaces and curves 2015-05-09 00:58:07 +02:00
wmayer
814c144ecb + FEM: add a couple of methods to Python interface 2015-05-09 00:15:05 +02:00
wmayer
9e89f2ff9a + implement FemMesh::getVolumesByFace, replace inner list by tuple 2015-05-08 21:45:13 +02:00
Przemo Firszt
cd6088332f FEM: Fix invalid CLOAD formatting
Existing code was producing invalid results:

a = 9876543212346789864323456.9543234578986432345678
>>> print "{:.13}".format(repr(a))
9.87654321234
>>> a
9.87654321234679e+24
The new converision should work fine:
>>> print "{:.13E}".format(a)
9.8765432123468E+24

Reported & fixed by ulrich1a
2015-05-08 20:59:32 +02:00
Przemo Firszt
6ab70bece6 FEM: inp file formatting/typos
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-08 20:59:14 +02:00
Przemo Firszt
48efcc449b FEM: Add getccxVolumesByFace and write_face_load functions
getccxVolumesByFace returns std::map<int, int> with ID of volume
and a number of face as per CalculiX definition. The same function is
accessible for python and returns list with the same information, like
this: [[229, 3], [230, 3], [233, 2], [238, 2]]

write_face_load produces something like this in the .inp file:

***********************************************************
** element + CalculiX face + load in [MPa]
** written by write_face_load function
*DLOAD
** Load on face Face2
229,P3,10.0
230,P3,10.0
233,P2,10.0
238,P2,10.0

Optimised by wmayer

Signed-off-by: wmayer
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-08 20:58:59 +02:00
Przemo Firszt
be43c7f5c0 FEM: getNodesByVertex should return int not long
Suggested by wmayer

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-08 20:58:43 +02:00
Przemo Firszt
3395d4ea02 FEM: getNodesByEdge should return int not long
Suggested by wmayer

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-08 20:58:26 +02:00
Przemo Firszt
0e670396fa FEM: getNodesByFace should return int not long
Suggested by wmayer

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-08 20:58:07 +02:00
Yorik van Havre
24e310ec57 Arch: Fixed makefile 2015-05-07 18:14:52 -03:00