furti
275b40f04f
Extract Path Array logic into separate functions
...
The Path Array logic is pretty useful to be used directly by macros.
But until now it was encapsulated in the PathArray class and could only
be used by creating a full PathArray object. So we can't use it inside
other Objects to create a repeated shape.
This commit extracts the logic into a separate function that returns a
list of placements. One can use this placements now to copy a shape and
place it accordingly.
2019-05-07 21:31:12 -03:00
luz.paz
7a1f98fda1
Misc. source comment typo and whitespace fixes
2019-05-06 13:42:30 +02:00
Yorik van Havre
6411d4aa22
Draft: Fixed Draft text justification
2019-05-02 15:23:20 -03:00
Yorik van Havre
fc17fee860
Arch: Added 'Clip' property to section planes to clip the rendered contents to the plane limits
2019-04-28 17:29:19 -03:00
Yorik van Havre
dc64cdb18d
Draft: Fixed DXF import with sketch mode on
2019-04-25 18:17:57 -03:00
Yorik van Havre
dd56abe14b
Draft: Fixed error in DXF import
2019-04-22 10:39:36 -03:00
Yorik van Havre
84b8d82f52
Draft: Fixed inverted 2D/3D modes of Draft Texts
2019-04-22 10:29:58 -03:00
Yorik van Havre
ec1830dfb8
Arch: Added right-click option to BuildingParts to clone level and contents
2019-04-18 19:10:35 -03:00
Yorik van Havre
f0d7360319
Draft: Added area property to 'closeable' Draft objects
2019-04-18 11:54:45 -03:00
Yorik van Havre
364960723e
Arch: Misc fixes in Arch spaces
2019-04-17 17:11:14 -03:00
Yorik van Havre
83b92eb93c
Draft: Exposing the Normal property of dimensions
2019-04-15 11:14:30 -03:00
Yorik van Havre
6e57726532
Draft: Fixed wrong display of Draft texts on restore
2019-04-15 11:02:03 -03:00
Yorik van Havre
d410d3dd57
Draft: Shape2DView can now fuse Arch Walls and Structures
2019-04-08 18:18:11 -03:00
DinoMesina
9c25e45eb7
Modify using FreeCAD.Vector.getAngle()
2019-04-07 12:14:25 -03:00
Joel Graff
7d800f09e5
removed all document recompute calls
2019-04-06 16:39:49 -03:00
DinoMesina
f1cb7f35c7
Update Draft.py
2019-04-04 11:16:14 -03:00
DinoMesina
7b5d6d2944
Update Draft.py
2019-04-04 11:16:14 -03:00
DinoMesina
71deeefa60
Update Draft.py
2019-04-04 11:16:14 -03:00
Yorik van Havre
c040a3c6f5
Arch: Fixed IFC misc export issues, support for objects inside App Parts
2019-03-27 17:34:36 -03:00
furti
a8aef43d2f
Fix broken texture loading for PY 3 builds
...
The problem was that Python 3 wants a bytes object and not a string.
So we have to encode the string first to make it useable. Python 2 handles
bytes objects as normal strings so the fix should be backwards compatible.
Furthermore this commit adds a massive performance improvement by collecting
all bytes in a list and calling "join" at the end. This is significantly
faster than simply appending each byte to the bytes object one at one.
https://forum.freecadweb.org/viewtopic.php?f=3&t=35032
2019-03-22 10:59:26 -03:00
luz.paz
ad0ee86589
Misc. source comment typos
2019-03-22 10:44:14 -03:00
Yorik van Havre
9640ff9423
Draft: Fix for translation
2019-03-19 14:17:39 -03:00
Dion Moult
c20528ee70
Allow move base to work for rotation too
2019-03-19 14:17:39 -03:00
Dion Moult
e07cbd00af
Add warning if there are multiple parents for a base in statusline and in console
2019-03-19 14:17:39 -03:00
Yorik van Havre
101b334ef4
Draft: do not try to move object base if it has no base
2019-03-19 14:17:39 -03:00
Dion Moult
57b596e0fc
Add a move base property that moves the base object instead of the object itself if true.
...
This is useful because it is the default case for most architectural work.
2019-03-19 14:17:39 -03:00
Yorik van Havre
07fda613aa
Draft: Fixed non-GUI issues - Fixes #3826
2019-02-14 22:18:41 -02:00
luz.paz
745f0cb3b4
Crowdin: Continuing to refine translation strings
2019-02-11 16:22:12 +01:00
Dion Moult
dc9293fdf2
Fix to take into account joining an object into a closed wire.
2019-01-31 10:54:36 -02:00
Dion Moult
63d24f9eba
Support splitting closed wires as well as open wires
2019-01-31 10:54:36 -02:00
Dion Moult
962dd52d46
This type of tool only works on wires
2019-01-31 10:54:36 -02:00
Dion Moult
c3e73d925d
Add split tool
2019-01-31 10:54:36 -02:00
Dion Moult
1be2c76f80
I think being explicit is clearer, and prevents the liklihood of random falsy values
2019-01-31 10:54:36 -02:00
Dion Moult
6e5378b17d
Add some docstrings for joinwires and jointwowires
2019-01-31 10:54:36 -02:00
Dion Moult
954cc2faad
Now you can join multiple wires all at once
2019-01-31 10:54:36 -02:00
Dion Moult
40c5dbf15f
Add new draft join tool
2019-01-31 10:54:36 -02:00
luz.paz
11a1a8f52c
Crowdin: Draft/Draft.py fix grammar
2019-01-30 11:08:03 -02:00
cclauss
7f30f15c0d
Undefined name: Typo ‘newob‘ —> ‘newobj’
...
Discovered via #1883
2019-01-07 12:26:07 -02:00
George Shuklin
496a48c904
move getDiscretized and getPattern outside of getSVG()
2018-12-17 09:37:51 -03:00
George Shuklin
e51c7ec404
Move getSVG into a separate file to further refactoring.
...
All internal dependencies (getrgb, getType) are reimported.
2018-12-17 09:37:51 -03:00
sdaau
88bb7bcdf8
Draft: preserving face colors and names when downgrading/upgrading (splitFaces and makeShell only)
2018-12-11 09:15:30 -03:00
Yorik van Havre
ee8f7be4e8
Arch/Draft: Misc small fixes
...
* Properly handle offset2D and arch objects in Draft Stretch
* Allow the WP of Arch BuildingParts to stay weak
* Fixed Draft Edit making Wires not plane anymore
* Dont change the WP if already perpendicular to current view
* Fixed DXF import of Polyfaces
2018-12-10 10:21:17 -02:00
wandererfan
975942749f
Use Global Scope for PathArray Links
2018-12-08 11:29:45 -03:00
wandererfan
3a53bb8995
Test for binormal == Z sb binormal parallel Z
2018-12-08 11:29:45 -03:00
DeepSOIC
98c77ca9db
Draft: allow cross-CS links for Clone
...
fixes drag-drop issues
https://forum.freecadweb.org/viewtopic.php?f=3&t=32677&p=272896#p272896
2018-12-08 11:23:53 -03:00
Yorik van Havre
0e554bd36e
Draft/Arch: minor fixes
2018-12-01 18:56:05 -02:00
Yorik van Havre
1fa9e61ce4
Draft: Better fix to buggy Move/rotate of Arch BuilfingParts
2018-12-01 12:12:22 -02:00
wandererfan
2e55e5b0ca
FR1973 Draft ShapeString Ui
...
- load new ui from Resource file
- minor updates to translate for Py3
2018-12-01 11:08:37 -03:00
Yorik van Havre
88f47ee725
Fixed coverity issues
...
169009 Bad use of null-like value
169005 Bad use of null-like value
169003 Bad use of null-like value
169000 Bad use of null-like value
168998 Bad use of null-like value
168996 Structurally dead code
2018-11-20 12:37:32 -02:00
Yorik van Havre
61bc405586
Arch: Fixed py3 errors in IFC export
2018-11-08 17:23:06 -02:00