Commit Graph

5638 Commits

Author SHA1 Message Date
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
wmayer
003199d6df + fix possible loss of data with recovery function, show auto-save message in status bar 2015-09-09 18:49:45 +02:00
Przemo Firszt
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
wmayer
cff386e210 + easier way to change license and url of an existing document 2015-09-09 13:53:07 +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
wmayer
3c10cd1af2 Merge branch 'master' of https://github.com/FreeCAD/FreeCAD 2015-09-08 19:17:58 +02:00
wmayer
bd94486c7e + fix inconsistencies between license note and url 2015-09-08 19:17:36 +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
f1b21bf01d Added Tools/githubstats.py script to check download stats from github 2015-09-08 00:18:31 -03:00
Yorik van Havre
98e9dd08ac Preferences->Document->License URL field is now editable 2015-09-07 20:10:02 -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
Mateusz Skowroński
b4e3fcb428 Fix for bugs #2236 & #2237 2015-09-07 15:28:18 -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
wmayer
4da63d1d03 + fixes #0002238: Python: Environment Variable 'path' with mutated vowel 2015-09-05 14:52:06 +02:00
Yorik van Havre
220afa90db Extending doxygen stuff for Draft & Arch 2015-09-04 19:14:36 -03:00
Yorik van Havre
bfad821cf2 Merge branch 'master' of github.com:FreeCAD/FreeCAD 2015-09-04 19:14:04 -03:00
wmayer
134acba916 + fix switching to another mdi view when using the sketcher creation command from task panel 2015-09-04 21:34:26 +02:00
wmayer
568f2634fe + fix switching to another mdi view when using the sketcher creation command from task panel 2015-09-04 21:06:56 +02:00
Yorik van Havre
39035fc252 Draft: Prepared support for dimensions in new DXF importer 2015-09-04 16:05:32 -03:00
wmayer
1fa67d08d8 Merge branch 'master' of https://github.com/FreeCAD/FreeCAD 2015-09-04 17:53:58 +02:00
wmayer
16f813281c + issue #0000175: Auto save function 2015-09-04 17:53:22 +02: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
9cb63295e9 + issue #0000175: Auto save function 2015-09-04 15:08:12 +02:00
wmayer
9253572afe + implement GUI to enable/disable auto-save and its timeout 2015-09-04 00:48:26 +02: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
wmayer
26b424e776 + support of exclusive Python command groups 2015-09-02 22:52:04 +02:00
Yorik van Havre
a90fd14fe7 Merge branch 'master' of github.com:FreeCAD/FreeCAD 2015-09-02 13:41:32 -03:00
Yorik van Havre
da2c497671 Added SaveCopy command
This command saves a copy of the current document under a new name,
without modifying the document itself.

Available in menu File -> Save a Copy or from python with
FreeCAD.ActiveDocument.saveCopy(filename)
2015-09-02 13:38:14 -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
e461f65552 + fix build for FreeBSD 2015-09-02 18:06:37 +02:00