paul
d3d18ac7e0
[ArchWall] getExtrusionData() fix normal problem by adding get_shape_normal() ( #12603 )
...
* [ArchWall] getExtrusionData() fix normal problem by adding get_shape_normal()
In geometry.py
- added get_shape_normal()
- fixed is_straight_line()
DraftGeomUtils.py
- added get_shape_normal()
FC Discussion - https://forum.freecad.org/viewtopic.php?p=726101#p726101
* [ArchWall] getExtrusionData() fix normal problem
Follow-up following discussion at https://github.com/FreeCAD/FreeCAD/pull/12603
- delete trailing whitespaces
- put Part.makePolygon() in try statement
- study and findings at https://github.com/FreeCAD/FreeCAD/pull/12603#issuecomment-1969277743
In geometry.py
- added get_shape_normal()
- fixed is_straight_line()
DraftGeomUtils.py
- added get_shape_normal()
FC Discussion - https://forum.freecad.org/viewtopic.php?p=726101#p726101
* Update geometry.py
* Update geometry.py
* Update geometry.py
---------
Co-authored-by: Yorik van Havre <yorik@uncreated.net >
2024-04-02 11:54:27 +02:00
Chris Hennes
49451b3c7f
Merge pull request #13154 from chennes/translations20240325
...
Update translations and fix script
2024-03-28 13:51:39 -05:00
Roy-043
0651883feb
Draft: add Fuse property to patharray and pathtwistedarray
...
See #13172 .
2024-03-28 12:03:46 +01:00
Roy-043
723d68f16d
Draft: add Fuse property to pointarray
...
Fixes #12906 .
2024-03-26 22:36:18 +01:00
Roy-043
e7c0d969f4
Merge pull request #13051 from yorikvanhavre/draft-wp-set-color
...
Draft: Allow to change grid color in WP taskpanel
2024-03-26 11:17:13 +01:00
Chris Hennes
af131413c5
Update translations
2024-03-25 18:08:22 -05:00
Chris Hennes
47df83c4db
Translation update: move Path to CAM
2024-03-25 17:32:59 -05:00
Yorik van Havre
1f195b428a
Merge branch 'main' into draft-wp-set-color
2024-03-25 18:37:00 +01:00
Roy-043
f90b47cbbc
Let param observer trigger grid color change
...
If you change the grid color in the preferences and cick the Apply button, the color of all grids is updated now. So you can experiment while the Preferences Editor is open.
I have kept but moved the grid color button in the Draft_SelectPlane task panel for now. So that both options can be tested.
2024-03-24 09:58:51 +01:00
Roy-043
33962bc945
Draft: fix handling of shapes in shape2dview.py
...
Fixes a problem introduced with #10712 . If the Shape is not a Compound, the shape itself, and not its SubShapes should be used.
2024-03-22 18:17:04 +01:00
Roy-043
fa49577838
Draft: Improve logic of Draft_Label texts
...
The proposed code fixes the following issues:
1. There is no check if the target object itself has a property that matches the label type.
2. If a subelement is selected that does not have the label type property, the value from the main object is displayed instead.
3. The default text is an empty string.
Example:
Currently If you select a vertex of a wire, and select "Length" as the label type, you will get the length of the wire. With the new code the text will then be "Length not available for (sub)object".
Forum topic (issue #1 ):
https://forum.freecad.org/viewtopic.php?t=86222
2024-03-20 18:29:01 +01:00
Yorik van Havre
70f2f14702
Draft: a bit more contrast to the grid
2024-03-20 13:35:40 +01:00
Yorik van Havre
d0a87573c9
Draft: Allow to change grid color in WP taskpanel
2024-03-20 12:20:31 +01:00
Yorik van Havre
aa47a7fe6b
Draft: Made get_type aware of IFC objects
2024-03-18 18:50:56 +01:00
FEA-eng
0def330a9e
DRAFT: Update preferences-draftsnap.ui
2024-03-15 13:01:56 +01:00
Chris Hennes
cbb10b0496
Draft: Remove trailing spaces from translations
2024-03-12 22:42:20 -05:00
Yorik van Havre
4e3467ae5e
Draft: Allow to prevent layers to claim children
2024-03-11 12:29:13 -05:00
Chris Hennes
9dac8385f6
Fix missing translations in task panel ( #12738 )
...
* Draft: Add missing translation to task panel
* PD: Add missing translation to task panel
2024-03-11 18:10:42 +01:00
Yorik van Havre
b2f1add784
Draft: Introduce mouse delay ( #12624 )
...
* Draft: Introduce mouse delay - fixes #11807
* Draft: set default mouse delay to 1
2024-03-11 11:54:07 -05:00
Yorik van Havre
1e164f24c0
Translations ( #12748 )
...
* Updated ts files
* Merged crowdin translations
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-03-05 08:54:36 -06:00
Josh Coalson
a8ae56e06a
Part: Rename AttachExtension::Support property to AttachmentSupport, to avoid name conflict with base features. Fixes #7052
2024-03-04 18:22:43 +01:00
Roy-043
e0d164ceb9
Merge pull request #12745 from Roy-043/Draft-applyConstructionStyle-was-missing-in-params.py
...
Draft: applyConstructionStyle was missing in params.py
2024-03-04 14:17:51 +01:00
Roy-043
8e6a308e03
Draft: applyConstructionStyle was missing in params.py
2024-03-04 11:33:10 +01:00
Chris Hennes
debc7df148
Draft: Translate annotation styles editor
2024-03-04 11:30:31 +01:00
Chris Hennes
b6c8f8d460
Update translations
2024-02-29 17:25:46 -06:00
Chris Hennes
7f8d6e2bb1
Update translations ( #12557 )
...
* Update translations
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-02-24 21:38:37 -06:00
Roy-043
cbd27854df
Draft: update DefaultShapeColor in params.py to match new default
2024-02-19 10:11:48 +01:00
Roy-043
ca1a10585a
Draft: fix wrong selection after commands (improved)
...
The previous fix was not correct. Some commands would cause a crash and several files were missed.
Forum topic reporting a crash:
https://forum.freecad.org/viewtopic.php?t=85243
2024-02-16 10:56:10 +01:00
Roy-043
c02762cd31
Merge pull request #12430 from Roy-043/Draft-remove-reapply_diffuse_color-workaround-step-2
...
Draft: remove reapply_diffuse_color workaround step 2
2024-02-15 23:44:52 +01:00
Roy-043
faa9ad4c16
Draft: remove reapply_diffuse_color workaround step 2
...
Stuff that was missed in #11946
2024-02-15 22:28:37 +01:00
Roy-043
167b3846de
Draft: gui_line_add_delete.py is obsolete
2024-02-15 22:20:53 +01:00
JULIEN MASNADA
eb468a34d9
Fixed invalid vector in distance calculation ( #12364 )
...
* Fixed invalid vector in distance calculation
2024-02-13 10:11:22 -06:00
Yorik van Havre
638e398bec
Crowdin translations ( #12313 )
...
* updated ts files
* merged crowdin translations
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-02-12 11:59:08 -06:00
Roy-043
3b3ed05dc8
Draft: fix wrong selection after commands
...
Fixes #10469
The code of the `end_all_events()` function is by Chris Hennes (chennes).
See https://forum.freecadweb.org/viewtopic.php?p=656362#p656362 .
2024-02-12 11:32:58 -06:00
Roy-043
2e04cd11f5
Draft: ShapeString improve stick font detection and fix fuse error
...
Forum topic:
https://forum.freecad.org/viewtopic.php?t=85147
2024-02-10 16:10:55 +01:00
Roy-043
4988894a92
Merge pull request #12292 from Roy-043/Draft-importDXF.py-make_bezcurve-args-should-be-lowercase
...
Draft: importDXF.py: make_bezcurve args should be lowercase
2024-02-10 15:41:14 +01:00
Roy-043
91f9486b01
Draft: importDXF.py: make_bezcurve args should be lowercase
...
See:
https://github.com/FreeCAD/FreeCAD/issues/10985#issuecomment-1932797213
2024-02-08 10:25:59 +01:00
Roy-043
a138348910
Draft: Draft_Edit: restore Relative checkbox
...
The relative checkbox was hidden by mistake.
2024-02-07 10:26:16 +01:00
Syres916
e4bb7a98e2
[Arch] [Draft] Add guard for RootNode specific child
2024-02-05 11:00:38 +00:00
Roy-043
c5d0fbd707
Merge pull request #12250 from Roy-043/Draft-Fix-messages-that-only-worked-for-objects-supplied-as-strings
...
Draft: Fix messages that only worked for objects supplied as strings
2024-02-04 11:51:29 +01:00
Roy-043
7ca885eb25
Removed too much in make_label.py
2024-02-04 09:50:45 +01:00
Roy-043
e6c68aab31
Draft: Fix messages for Draft_Fillet
...
There were still too many messages.
2024-02-03 19:46:20 +01:00
Roy-043
178070af5d
Draft: Fix messages that only worked for objects supplied as strings
...
Some error messages would only work if objects were supplied as strings. These would fail if objects were passed (as objects) that had already been deleted.
2024-02-03 19:38:49 +01:00
Roy-043
842b0b230b
Draft: Fix Draft_Wire conversion function
...
The Draft_Wire command can combine selected Draft_Wires and Draft_Lines into a single wire. This function did not always behave properly.
* Edges were not sorted, the result could have a different shape (with the correct vertexes).
* If edges formed a closed shape the resultant wire was not closed.
2024-02-02 22:54:34 +01:00
Roy-043
90c90f705b
Merge pull request #12234 from Roy-043/Draft-Draft_Arc_3Points-minor-consistency-update
...
Draft: Draft_Arc_3Points minor consistency update
2024-02-02 18:07:37 +01:00
Roy-043
ee3e1cd5ce
Merge pull request #12230 from kpemartin/Issue11876
...
Remove excessive output from Draft object creation and editing
2024-02-02 18:06:02 +01:00
Roy-043
834aff05a9
minor edit
2024-02-02 15:17:13 +01:00
Kevin Martin
39bee92bea
Replace deprecated escapes with valid ones
2024-02-02 08:58:49 -05:00
Kevin Martin
02ebb17558
Eliminate many "doing what you told me to" messages
...
These messages were perhaps originally intended as a debuggin aid but now add clutter to the output panes. Remaining messges are mostly the result of methods to display attributes of an object (which one could call from the Python console) or actually provide some information which would not be obvious from the circumstances
2024-02-02 08:58:45 -05:00
Roy-043
ee3a5a640e
Draft: Draft_Point minor consistency update
2024-02-02 14:12:57 +01:00