Commit Graph

12119 Commits

Author SHA1 Message Date
carlopav
88b29d3bd4 Update DraftTools.py
Refined last commit code
2019-02-09 20:00:38 -02:00
carlopav
7f3235ef13 Update DraftTools.py
Modified arc editing:
- middle editpoint control radius
- end editpoint control first and last angle;
2019-02-09 20:00:38 -02:00
carlopav
d6b703a68d Update DraftTools.py
Update Edit tool to edit wall base objects.
2019-02-09 20:00:38 -02:00
furti
f1e86b3e11 Fix missing DWG imports in ArchSectionPlane.getSVG
When a DWG file is imported into FreeCAD it gets imported as a Part
object with a compound shape. One would imagine, that such an object
should be rendered like a symbol inside a TechDraw View. But when the
imported shape is inside a SectionPlane that also contains solids, the
shape is not included in the SVG.

The problem is, that getCutShapes only uses solid shapes, when a volume
was cut before. But the imported DWG is a flat 2D object and has no solids
inside.

To fix it, the getSVG method will check if an object looks like a draft
object, meaning:
 - It has a shape
 - It has no solids
 - It has no volume

When it finds such a shape, it will treat it like a draft object. So
it is displayed like a symbol in the resulting SVG.

https://forum.freecadweb.org/viewtopic.php?f=3&t=34079
2019-02-09 19:53:54 -02:00
Yorik van Havre
3cc1a327ce Updated master translation files 2019-02-08 19:16:21 -02:00
Yorik van Havre
5b29009cf0 Added untranslated 'master' .ts files where missing 2019-02-08 18:50:13 -02:00
GeneGH
2549d1cfc4 Repair pythonopen in line 126 for Python3
Python 3 is fussy about match of data type for a file open or write. Python 2 does not seem to care if a string is written with a 'wb' indicating a binary type, but Python 3 flags it as an error.
2019-02-08 11:06:05 -02:00
furti
1610046905 Fix missing door symbols in getSVG
The ArchSectionPlane has a built in SVG Cache. But the door symbols and
a few other things are not inside the cache. This things not inside the
cache rely on the presence of a cutface. But this cutface was only built
when the cache is not available.

So the First invocation after the cache was cleared added the symbols.
The next invocations of the method, with a cached SVG did not calculate
the symbols again, because the cutfaces where missing.

This commit fixes it by calculating the cutfaces independent from the
cache.

Reported in https://forum.freecadweb.org/viewtopic.php?f=3&t=33987
2019-02-08 11:05:17 -02:00
luz.paz
fe39347b05 Typos cont. + whitespace 2019-02-08 11:01:24 -02:00
luz.paz
cb4a0adf71 Misc. typos
Found via `codespell`
2019-02-08 11:01:24 -02:00
Dion Moult
0802908e52 Move hardcoded tab shortcut for cycling elsewhere in prep for refactor 2019-02-08 10:59:26 -02:00
Dion Moult
0498a4c619 Allow tabbing to cycle through objects to snap
To do this, the object snapping code has been refactored into a snapToObject function. This allows it to be called on different objects easily. A new base class which handles the tab event has been added.
2019-02-08 10:59:26 -02:00
Yorik van Havre
f9fbd6362d Arch: Fixed py3/encoding bug 2019-02-07 21:05:09 -02:00
paullee
4ffd00e520 Fix Right Align Railing Offset Bug 2019-02-06 10:13:37 -02:00
rokuster
0ff402514d file uri instead of relative path for images
Windows conda build needs a file uri to the image. This fix needs also changes in StartPage.py
2019-02-06 10:13:11 -02:00
rokuster
a10b865af2 Fix Images Display Issues
- Replace relative Add-On Image Path with full file uri in StartPage.js file
- Fix a missing absolute file path
- Fix a duplicated data folder entry in the Resourcepath
2019-02-06 10:13:11 -02:00
Bernd Hahnebach
1629761522 FEM: mechanical result object, add comment in regard of read only 2019-02-06 10:10:46 -02:00
Bernd Hahnebach
79be27eab6 FEM: result tools, small code improvements 2019-02-06 10:10:46 -02:00
Bernd Hahnebach
2b030af536 FEM: import tools, code improvements 2019-02-06 10:10:46 -02:00
Bernd Hahnebach
8e089f6864 FEM: import tools, some comments 2019-02-06 10:10:46 -02:00
Yorik van Havre
34c1f38cfa Arch: Small bugfix in spaces 2019-02-04 22:35:16 -02:00
Markus Lampert
2e692dff2d Restrict removal of g0 to clearance height to the engraving of the last base model. 2019-02-04 22:21:28 -02:00
Syres916
f07f996c48 Collada Export Py3 Fixes
To allow successful Collada Export for Py3 and Py2, tested import of DAE file with colours from Blender to ensure no regression on the import side. Note: I had to download Pycollada to enable testing in Conda build.
2019-02-04 22:20:47 -02:00
Markus Lampert
40886d7d1f Fixed error in hole sorting algorithm when some locations have identical distances 2019-02-04 22:20:03 -02:00
Markus Lampert
c0b3e0d4e4 Fixed dragknife error if coordinate isn't set in command. 2019-02-04 22:20:03 -02:00
Markus Lampert
2d798883c7 Fixed py3 change of return type of 2019-02-04 22:20:03 -02:00
DeepSOIC
3a93be7c44 PartDesign: Shapebinder: fix placement
reported by koluna:
https://forum.freecadweb.org/viewtopic.php?f=20&t=33794
2019-02-04 22:19:23 -02:00
DeepSOIC
e49a45a46d PartDesign: Shapebinder: use compound instead of fusion 2019-02-04 22:19:23 -02:00
Bernd Hahnebach
41c4b7fe10 FEM: inout tools, add some comment in the regard of NaN 2019-02-04 22:18:54 -02:00
Bernd Hahnebach
3c5dc350a9 FEM: guiobject, fix forgoten defs on code refactor in commit 993e20f fixes #3814 2019-02-04 22:18:54 -02:00
Bernd Hahnebach
c896eb49ca Material Editor: fix unit for specific heat, fixes #3781 2019-02-04 22:18:54 -02:00
Bernd Hahnebach
193a5cf472 FEM: material task panel, fix assignment and cancel by material editor 2019-02-04 22:18:54 -02:00
Bernd Hahnebach
6bf8d8f34f FEM: material task panel, check for None instead of not 2019-02-04 22:18:54 -02:00
Bernd Hahnebach
976687ac66 FEM: material task panel, some comments 2019-02-04 22:18:54 -02:00
Yorik van Havre
b68f571e93 Arch: Fixed encoding bug in OBJ importer 2019-02-04 13:35:00 -02:00
Yorik van Havre
303e518c93 Arch: Small bugfix in IFC exporter 2019-02-04 13:25:14 -02:00
Yorik van Havre
f74784cebc Arch: Fixed duplicate IfcSurfaceStyle names in IFC export 2019-02-01 18:38:21 -02:00
Yorik van Havre
95dda429eb Updated translations 2019-02-01 13:54:10 -02:00
Yorik van Havre
4c0f75c936 Draft: Fixed UI focus in arc tool 2019-02-01 12:16:52 -02:00
Bernd Hahnebach
ee851d777d FEM: materials task panel, fix: if material editor was canceled the material params were set to 0 2019-02-01 11:27:48 -02:00
Bernd Hahnebach
211fba1244 FEM: unit tests, some defs to open the FreeCAD test files 2019-02-01 11:27:48 -02:00
Bernd Hahnebach
234ae6a8f8 FEM: result tools, typo 2019-02-01 11:27:48 -02:00
Bernd Hahnebach
3084184198 FEM: result tools, improve stats handling 2019-02-01 11:27:48 -02:00
Bernd Hahnebach
ea36ef60fd FEM: import tools, displacement abs, move calculation and adding into result tools 2019-02-01 11:27:48 -02:00
Bernd Hahnebach
1c91cec685 FEM: frd reader, delete duplicate data container 2019-02-01 11:27:48 -02:00
Bernd Hahnebach
11d11737b0 FEM: result reading, use stress tuple for filling all stress properties 2019-02-01 11:27:48 -02:00
Bernd Hahnebach
1f20da40b7 FEM: import tools, move stats calculation into result tools 2019-02-01 11:27:48 -02:00
Bernd Hahnebach
3cb8bdf825 FEM: import tools, remove duplicate code, node numbers attribut has been set already 2019-02-01 11:27:48 -02:00
Bernd Hahnebach
3d7b916fb4 FEM: frd reader, move span calculation into fill result 2019-02-01 11:27:48 -02:00
Bernd Hahnebach
a929075f15 FEM: frd reader, rename frd reading def 2019-02-01 11:27:48 -02:00