liukaiwen
4f8fe8fd4a
[cmake] some definitions do not matter build now
2023-09-27 18:17:14 +08:00
Yorik van Havre
be84810aa9
Merge pull request #10783 from Roy-043/Draft-ShapeString-add-ObliqueAngle-property
...
Draft: ShapeString: add ObliqueAngle property
2023-09-25 10:54:53 +02:00
Yorik van Havre
f883a77ca0
Merge pull request #10766 from Roy-043/Draft-Introduction-of-the-PlaneBase-class
...
Draft: Introduction of the PlaneBase class
2023-09-25 10:09:48 +02:00
Roy-043
432ba3adde
Draft: ShapeString: add ObliqueAngle property (improvement)
2023-09-24 19:04:32 +02:00
wmayer
83d4080fe8
App: fixes #10460 : App::PropertyPythonObject is not saving data
...
Since Py3.11 the methods names __setstate__ and __getstate__ conflict with the method names added to the object class.
Thus rename them to 'loads' and 'dumps'
2023-09-24 10:56:35 -05:00
Roy-043
4ef4819872
Draft: ShapeString add ObliqueAngle property
...
Fixes #5656 .
2023-09-23 11:39:27 +02:00
Roy-043
26418c07e7
Draft: ShapeString: add font file filter ( #10777 )
...
Forum topic:
https://forum.freecad.org/viewtopic.php?t=81280
2023-09-22 21:23:56 +02:00
Roy-043
ca7b329c43
Draft: use Gui::FileChooser::Directory where applicable ( #10780 )
2023-09-22 21:23:23 +02:00
Roy-043
6528eef858
Draft: Introduction of the PlaneBase class
...
This PR introduces the new PlaneBase class.
Most of its functions are rewritten versions of the functions in the original Plane class, with the exception of align_to_point_and_axis_svg.
Note that after this PR the original Plane class does not yet inherit from PlaneBase. This will be done in several following PRs. I will then also explain the reasons behind some of the revised functions in PlaneBase.
The introduction of the PlaneGui class will follow after that.
Issue: #5603 .
2023-09-21 15:20:48 +02:00
Yorik van Havre
e0b814ed59
Merge pull request #10735 from Roy-043/Draft-Add-distance_to_plane-and-project_point_on_plane-to-geometry.py
...
Draft: Add distance_to_plane and project_point_on_plane to geometry.py
2023-09-21 11:11:44 +02:00
Chris Hennes
730d471fb1
Update translations
2023-09-19 22:25:14 -05:00
Roy-043
68276d20ad
Draft: Add distance_to_plane and project_point_on_plane to geometry.py
...
The functions have been copied from the WorkingPlane class. It makes sense to also have them available outside that class. The WorkingPlane class will later be updated to use these functions so that duplicate code is avoided.
Note that the default tolerance of the project_point_on_plane function is 1e-7. In the original projectPoint function it is sys.float_info.epsilon (too small for FreeCAD IMO).
2023-09-19 16:02:59 +02:00
Roy-043
32dcd008ff
Draft: shape2dview: avoid issues with intersecting solids
...
Add `Shape.SubShapes` instead of a copy of the shape. This avoids cut problems if there are intersecting solids.
Forum topic:
https://forum.freecad.org/viewtopic.php?t=81240
2023-09-17 18:59:20 +02:00
Roy-043
3e789dfc85
Draft: Fix for PR10673 ( #10699 )
...
Fixes an issue that was missed in #10673 .
2023-09-16 17:10:02 +02:00
Roy-043
f5a3cf4d03
Draft: gui_edit called displayPoint without mask ( #10693 )
...
Forum topic:
https://forum.freecad.org/viewtopic.php?t=81186
2023-09-16 17:08:50 +02:00
Yorik van Havre
216cb39a76
Draft: use master version of dxf libraries - issue yorikvanhavre/Draft-dxf-importer#26 ( #10670 )
2023-09-14 09:37:31 +02:00
Roy-043
23c386dfee
Draft: V0.21 version of getPlaneRotation caused a dimension bug ( #10673 )
...
`DraftVecUtils.getPlaneRotation` can now return None. The `view_dimension.py` code did not handle that.
2023-09-13 17:00:35 +02:00
CalligaroV
163c30700f
[Feature Request] [Draft] [UI/UX] Remove the center arrow on radial dimensions ( #10655 )
...
Related to issue #7573
Forum discussion
https://forum.freecadweb.org/viewtopic.php?p=631252#p631252
These modifications don't add the new properties suggested on the issue mentioned above and suggested on the forum discussion but just remove the center arrow
Other info and discussion can be found at https://gitlab.com/calligarov/FreeCAD/-/merge_requests/1
2023-09-13 15:27:51 +02:00
Roy-043
59527022da
Draft: importSVG.py: check and fix path faces
...
Fixes #10659 .
2023-09-12 23:16:41 +02:00
Yorik van Havre
36353ffb7c
Draft: Allow to set a custom feet separator for dimensions ( #10481 )
2023-09-11 14:05:26 +02:00
Chris Hennes
857ddacb6e
Update translations ( #10613 )
...
* Update translations
* Start: Remove Start.ts
2023-09-10 13:06:26 -05:00
Yorik van Havre
3a4afac6fc
Merge pull request #10556 from Roy-043/Draft-arcTracker-did-not-take-Working-Plane-rotation-into-account
...
Draft: arcTracker did not take Working Plane rotation into account
2023-09-08 11:36:25 +02:00
luzpaz
4dbbe85c2b
Fix various typos
2023-09-07 20:34:49 +02:00
kaktus Jacek
af3cf2e9e9
Removing unnecessary strings from Crowdin + improving typos
...
patches for #10459 and #10426...
a few small details escaped attention need to be fixed
😉
Removing unnecessary strings from Crowdin and improving typos.
2023-09-05 15:38:58 -05:00
Roy-043
65cd8adca8
Draft: arcTracker did not take Working Plane rotation into account
...
Steps to verify the issue:
1. Open FreeCAD.
2. Switch to Std_ViewTop.
3. Click one of the curved arrows of the Navigation Cube.
4. Switch to the Draft WB.
5. Make sure Draft_SelectPlane is set to "Auto".
6. Start Draft_Arc and click 2 points (for the radius and the start angle).
7. Result: The displayed arc does not match the start angle or the current point.
Additonally:
* Removed the normal argument from `__init__`. The tracker does not work properly with just a normal. AFAICT there is no code that specifies this normal.
* Minor improvement to `getAngle`: Switched the vectors.
2023-09-05 15:39:17 +02:00
Yorik van Havre
41a1a7a8e6
Merge pull request #10505 from Roy-043/Draft-Fix-angle-range-issue-of-make_circle
...
Draft: Fix angle range issue of make_circle
2023-09-04 11:29:13 +02:00
Yorik van Havre
f2f2cf1a17
Merge pull request #10464 from Ondsel-Development/bug/remove_gui_dependency
...
Bug fix: Allow Draft WB to import in FreeCAD headless docker container
2023-09-04 11:22:53 +02:00
Yorik van Havre
dd6b726905
Draft: Workaround failing multifuse in shape2Dview ( #10478 )
2023-09-04 10:45:56 +02:00
Roy-043
3cf51debca
Ammended files based on review
2023-09-03 12:43:34 +02:00
Amritpal Singh
9f8f7c5ab3
Bug fix: Allow Draft WB to import in FreeCAD headless docker container
2023-09-03 12:24:22 +05:30
Roy-043
29c12225d0
Draft: Correct mistake in PR10160 ( #10506 )
...
`self.gui_tools_repository` is an instance of a class that manages a dictionary, it is not a dictionary itself.
2023-09-02 23:37:16 +02:00
Roy-043
e02cfb2f38
Typo...
2023-09-02 23:04:41 +02:00
Roy-043
f8a5150e6f
Draft: Fix angle range issue of make_circle
2023-09-02 20:48:40 +02:00
Yorik van Havre
f865fff37c
Merge pull request #10425 from Roy-043/Draft-FixDraft_Mirror-preview
...
Draft: Fix Draft_Mirror preview
2023-09-01 12:48:16 +02:00
Roy-043
a66c9ee549
Draft: importDWG.py wrongly assumed that opt directory always exists on Linux ( #10447 )
...
Forum topic:
https://forum.freecad.org/viewtopic.php?p=703063#p703061
2023-08-30 18:10:13 +02:00
kaktus Jacek
0445b88d55
Cleaning code from unnecessary strings generated to Crowdin 4 ( #10426 )
...
Cleaning Crowdin of "garbage". Second approach.
https://github.com/FreeCAD/FreeCAD-translations/issues/270
2023-08-29 12:57:26 -05:00
Roy-043
ccbc52affd
Draft: Remove unused import WorkingPlane
2023-08-29 18:59:40 +02:00
Roy-043
a205ee549f
Draft: Fix Draft_Mirror preview
2023-08-29 16:25:42 +02:00
Chris Hennes
6bfafc62dc
Update translations
2023-08-29 07:38:09 -05:00
Roy-043
36fdbdd6d9
Draft: Reduce occurrences of App.DraftWorkingPlane 2 ( #10390 )
2023-08-28 10:17:58 +02:00
Roy-043
b8f0de8dd3
Draft: Reduce occurrences of App.DraftWorkingPlane ( #10388 )
2023-08-28 10:16:36 +02:00
Roy-043
2c317cd40a
Draft: Make gui_tool_utils.get_support nesting aware ( #10373 )
...
The get_support function did not work for objects nested in, for example, Std_Parts.
Additionally improved and cleaned up the code, and reduced the docstrings.
2023-08-27 12:41:25 +02:00
Roy-043
e9294f2dbb
Draft: remove superfluous code from gui_points.py ( #10379 )
2023-08-27 12:41:01 +02:00
Roy-043
c9975f39f8
Draft: Add wp attribute to DraftTool class ( #10386 )
...
It makes sense to have this attribute. It will also facilitate the coming work related to the Plane class.
Additionally: Removed the `not self.doc` check from `Activated` as `IsActive` already handles this.
2023-08-27 12:40:30 +02:00
Roy-043
602841c5f0
Draft: Remove unused arguments from gui_tool_utils.get_point ( #10347 )
2023-08-25 03:49:06 +02:00
Roy-043
971e74b7db
Draft: Housekeeping and minor improvements for some draftguitools ( #10339 )
2023-08-25 03:47:39 +02:00
Roy-043
53a4fb14c3
Draft: Fix placement_from_face if vec_z matches normal of face ( #10333 )
2023-08-24 09:53:13 +02:00
Roy-043
a60c9c2cf1
Draft: Fix error in PR10327 ( #10329 )
2023-08-23 13:32:37 +02:00
Roy-043
29339d7197
Draft: Add placement_from_face to geometry.py ( #10327 )
...
Changed getPlacementFromFace function in WorkingPlane.py to a compatibility function that calls placement_from_face.
2023-08-23 12:05:34 +02:00
Roy-043
5c4d8730d9
Draft: Add placement_from_points to geometry.py
...
Changed getPlacementFromPoints function in WorkingPlane.py to a compatibility function that calls placement_from_points.
2023-08-23 11:17:17 +02:00