Commit Graph

31698 Commits

Author SHA1 Message Date
Uwe
e07af014e6 [Gui] ExpressionCompleter: fix some GitHub Action reports (#8264)
* [Gui] ExpressionCompleter: fix some GitHub Action reports

- too long lines
- too short variable names
- use .empty()

- also some reformatting according to our current clang file
2023-01-27 00:37:54 +01:00
wmayer
db6d44b1da Part: fix crash in SectionCutting dialog
It segfauls when executing the script below:
doc = App.ActiveDocument
box = doc.addObject("Part::Box", "SectionCutBoxX")
comp = doc.addObject("Part::Compound", "SectionCutCompound")
comp.Links = box
grp = doc.addObject("App::DocumentObjectGroup", "SectionCutX")
grp.addObject(comp)
doc.recompute()
2023-01-26 09:29:01 -07:00
Yorik van Havre
20695da6f7 Arch: Small fix in IFC exporter to adapt to post-0.20 changes 2023-01-26 15:17:29 +01:00
Uwe
64caea2073 modernize a for loop 2023-01-25 17:48:08 -07:00
Uwe
5f91493d49 [Part] SectionCutting: avoid to recompute all cuts on color change
- it is not necessary and speeds up the workflow for large assemblies
2023-01-25 17:48:08 -07:00
Uwe
1f6c1fcd0f [Part] fixes for the section cutting feature
- a typical use-case is to open a document with an existing cut and only this cut is visible. When now opening the section cutting tool, the user got the fault message that there were no visible objects to be cut.
- the transparency for the cut was not explicitly set. Therefore the default transparency for new objects was used instead of the transparency of the objects to be cut.
- workaround for a graphics issue: when cutting objects intersection each other (only then), the transparency setting might be ignored. The fix is simply to change the default color slightly (By the way, this issue is independent on the color that is set in the Part preferences as color for new objects, seems to be a graphics driver or OCC issue.)

- besides this, avoid code duplication by using a lambda function
2023-01-25 17:48:08 -07:00
Adrian Popescu
f727945f1e Fix8228 warnings (#8262)
* Cleaned up Expression Completer
2023-01-26 00:19:05 +01:00
wmayer
0f694c3ae7 Gui: fix several compiler warnings 2023-01-25 23:05:29 +01:00
wmayer
9374155cfe Gui: improve formatation and use of curly braces 2023-01-25 23:05:29 +01:00
luzpaz
8d861e6abd Gui: fix trailing whitespace 2023-01-25 15:23:47 +01:00
mosfet80
144cdc9cb9 Delete src/Tools/encode directory
remove unused file and folder
2023-01-25 13:25:48 +01:00
Uwe
3ff301cd10 [CMake] improve comment about CMake limit 2023-01-24 21:44:19 -07:00
berniev
8c36e83ff2 Update minimum python version
https://wiki.freecadweb.org/FreeCAD_1.0_Development_Cycle
2023-01-24 21:43:45 -07:00
Adrian Popescu
b853278296 Expressions: path auto-completion fixes (#8228)
PR #8228 consisted of the following:
* Added Documentation for the expression completer
* Working PATH completion
* Allow completes on trailing separator
* Fixed paths appearing with a . at first
* Chaining completions on enter
* Fixed Missing Separator and Document Completions
- fixed missing separator for contextual Properties (ConstraintsHeight instead of Constraints.Height)
- fixed retries on filename#objectname so that they work better
2023-01-24 14:57:59 -06:00
Andrew
15dad4542f remove deleted files in CMakeList 2023-01-24 08:40:43 -07:00
Andrew
61f9257034 remove unused dircoll.* files 2023-01-24 08:40:43 -07:00
mosfet80
bdc9c03597 Revert "Update CMakeLists.txt"
This reverts commit 10e8c98a189a4ecfb5a43b61d6c076682b324499.
2023-01-24 08:40:43 -07:00
mosfet80
7419a16690 Update CMakeLists.txt
Remove unused old files
2023-01-24 08:40:43 -07:00
mosfet80
21644f82aa Delete directory.h 2023-01-24 08:40:43 -07:00
mosfet80
07bbeb28c2 Delete directory.cpp 2023-01-24 08:40:43 -07:00
mosfet80
570250011b Delete basicentry.h 2023-01-24 08:40:43 -07:00
mosfet80
48dccfd004 Delete basicentry.cpp 2023-01-24 08:40:43 -07:00
Roy-043
b2e7d20795 Draft: fix gui_offset.py issue caused by PR8207 2023-01-24 15:02:38 +01:00
luzpaz
324dcc758e README: fix bugtracker link 2023-01-24 15:01:21 +01:00
berniev
fef3e11326 bump cmake min version to 3.16.3 2023-01-23 22:02:27 -07:00
mosfet80
25acfeec62 Delete src/Tools/embedded/wxWidgets directory
Remove unused library
2023-01-23 21:59:46 -07:00
mosfet80
d47193f2a7 Delete zlib.CMakeLists.txt
remove unused Cmake file
2023-01-23 21:58:31 -07:00
luzpaz
ca4adfa67d Stylesheets: convert indentations to spaces 2023-01-23 21:20:57 -07:00
Ajinkya Dahale
862bc58809 [Sketcher] Substitute knot tangent related constraints 2023-01-23 20:43:51 +01:00
luzpaz
23af228b87 Fix various indentation issues (tabs->spaces) 2023-01-23 16:59:28 +01:00
luzpaz
836835074e Navicube: convert indentations to spaces 2023-01-23 16:57:58 +01:00
luzpaz
50a0fd6777 Gui: convert indentations to spaces 2023-01-23 16:06:40 +01:00
luzpaz
62974cd4d5 PartDesign: convert indentations to spaces 2023-01-23 15:47:22 +01:00
luzpaz
2c3e6bd70a Sketcher: convert indentations to spaces 2023-01-23 15:46:49 +01:00
Uwe
600ce01ad3 [Draft] fix compilation after #8234 2023-01-23 15:29:04 +01:00
Roy-043
4c4972339f Draft: V0.18 VisGroups were not handled (#8234) 2023-01-23 11:27:52 +01:00
Yorik van Havre
166183e788 Merged crowdin translations 2023-01-23 11:25:49 +01:00
Yorik van Havre
d3149de589 Updated ts files 2023-01-23 10:41:33 +01:00
luzpaz
a42c526eec Arch: fix whitespace in ArchStructure.py 2023-01-22 20:27:55 -06:00
luzpaz
edfc993b7f Fix various typos 2023-01-22 20:27:47 -06:00
luzpaz
729685316e Fix trailing whitespace, typos, headers
Fix trailing whitespace, typos, and header uniformity.
2023-01-23 00:34:37 +01:00
Uwe
d6cccf2f96 [Sketch] Constraints.h: fix 2 compiler warnings
- the type change fixes this error: \src\Mod\Sketcher\App\planegcs\Constraints.cpp(509,54): warning C4267: '=': conversion from 'size_t' to 'unsigned int', possible loss of data
- the scone change removes a non-existing definition
2023-01-22 22:30:42 +01:00
luzpaz
d8146c1db8 Spreadsheet: fix header uniformity
+ trailing whitespace
2023-01-22 21:46:17 +01:00
Jonas Bähr
2226d3a01b PD: Cleanup InvoluteGear's Task Panel Code
Use new-style connect syntax and drop a lot of copy&paste code by
generating the value-assigning signal handlers on the fly.
2023-01-22 21:44:03 +01:00
Jonas Bähr
4094e34ff2 PD: Add new props to InvoluteGear's task panel 2023-01-22 21:44:03 +01:00
Jonas Bähr
464c512e83 PD: Make involute gear's root fillet radius configurable
The original implementation always took 150% of the addendum/dedendum
difference as fillet radius. For a standard full-depth system this
results in a normalized value 0f 0.375, which is pretty close to the 0.38
definded by the basic ISO rack. However, when using much shorter teeth as
e.g. required for a splined shaft, the fillet becomes way too large.

In addition, I don't understand the approximation to calculate the
distance between the gear's center and the top of the fillet yet. It was
only refactored to allow the custom fillet radii, but it retuns the same
values as the original implementation.
However, with high pressure angles, up to 45° used for splines, this
approximation comes to its limits.
2023-01-22 21:44:03 +01:00
Jonas Bähr
37595da316 PD: Make the involute gear's toogh length configurable
Exposing the addednum and dedendum coefficients as properties allows to
change the tooth length above and below the pitch circle. This makes it
possible to use the profile beyond standard full-depth systems, e.g. for
stub tooths and most importantly: involute splined shafts and hubs.

Gear objets created with earlier versions automatically get the
additional properties on document restore. Its values match the hard-
coded values used in earlier versions.

There is a change when creating *new* internal gear profiles, though:
Previously, an addendum coefficient of 0.6 was used, presumably to reduce
the tip length beyond the base circle in order to avoid a non-involute
edge. This method is one proposal from the "Handbook of Gear Design" by
Gitin M. Maitra, as referenced in the original source code comments.

However, Maitra also states that this reduction of the anual gear's tip
in turn requires an enlagement of the mating gear of 1.25 instead of the
ordinary 1.0. And it is only required for a low numer of teeth and/or the
mating gear being quite large (less than 10 teeth in difference, to avoid
interferences).
Because those additional requirements and conditions have not been
implemented, the previously used values have been incomplete anyway. Thus
I decided to not implemented this special case and use the standard
values of 1.0/1.25 for newly created external and internal gears alike.
Internal gears need special care for other kind of interference anyway
and the newly exposed properties now allow to do so.

There is no entry in the task panel for those advanced properties yet.
2023-01-22 21:44:03 +01:00
Jonas Bähr
d8118a4b11 PD: Refactor InvoluteGear's property creation
This is a pure refactor, without any change in visibile functionality.
However, the new structure allows easy addition of new properties without
breaking existing documents.
2023-01-22 21:44:03 +01:00
Jonas Bähr
647a2356b7 PD: Refactor InvoluteGear's Bezier Approximation
The goal of this refactor is to get rid of gear-specific knowledge from
the implementation and argument list. This is to remove the duplicate
definition of addenddum and dedendum that was hidden there.
2023-01-22 21:44:03 +01:00
Jonas Bähr
3933825840 PD: Add tests loading InvoluteGears created with v0.20
This is in preparation for new features, to ensure we don't break
existing documents created with FreeCAD-0.20.
The fixtures have been created with the official mac build of
FreeCAD-0.20.1 using mostly default parametrization -- only the number
of teeth has been reduced in order to keep the file size low.
2023-01-22 21:44:03 +01:00