Commit Graph

25718 Commits

Author SHA1 Message Date
wmayer
948cbfccd9 modernize C++: avoid bind
In many cases std::bind() is kept because the code is much simpler
2023-08-08 21:10:16 +02:00
wmayer
52e1c7c33b modernize C++: move from boost::bind to std::bind 2023-08-08 17:36:13 +02:00
Roy-043
2bb3dd1c7e Mesh: Avoid dictionary.keys() where possible 2023-08-08 17:29:05 +02:00
wmayer
40a9f47489 Path: make export macro accessible in header file
It's not recommended any more to keep the export macro in the PreCompiled.h because many IDEs fail to fetch the export macro and raise a parsing error instead.
2023-08-08 17:27:28 +02:00
luzpaz
a6202bc3ce Fix various typos 2023-08-08 14:25:00 +02:00
wmayer
ec73caa40e modernize C++: make unique 2023-08-07 19:51:30 -06:00
wmayer
c2e17824fa modernize C++: raw string literal 2023-08-07 19:51:15 -06:00
Paddle
8f8a799726 Add 'type' to MetadataPy, MetadataPyImp and addonmanager_metadata.py 2023-08-07 10:52:08 -06:00
bdieterm
ed7427330e Part: allow reduction of Part ViewProvider tesselation resolution
Problem description
To display a shape, the ViewProvider creates a mesh of the shape data. The
resolution depends also on the two parameters "Angular Deflection" and
"Deviation" in the View properties. (The values of these parameters are also
updated for all objects when changing these settings in the Preferences
dialog).
Changing the parameters from a high value to a lower value has an immediate
effect on the displayed shape -- for example a circle will be displayed finer
with more line segments. But changing the parameter back to the higher value
(with less resolution) will keep the finer view-mesh instead of calculating a
coarser one. To get back to the coarse view, the object has to be manually
recomputed or the file re-opened.

Solution
I just set the meshing parameter AllowQualityDecrease to True. I guess that
this was not implemented before because this parameter is quite new (introduced
in OCC v7.5 in the year 2020).
2023-08-07 10:19:58 -06:00
Benjamin Bræstrup Sayoc
da2ae719f2 [Everywhere] FileInfo::hasExtension for multiple values (#9774)
* [Base] Add hasExtension for multiple values

* [Gui] Use hasExtension for multiple values

* [Drawing] Use hasExtension for multiple values

* [Fem] Use hasExtension for multiple values

* [Import] Use hasExtension for multiple values

* [Mesh] Use hasExtension for multiple values

* [Part] Use hasExtension for multiple values

* [TechDraw] Use hasExtension for multiple values
2023-08-07 09:55:19 -06:00
tomate44
8b2c2dab51 Surface: fix BlendCurve relative size
values independent of the number of control points are more intuitive
2023-08-07 09:53:00 -06:00
wmayer
b6f331f4fa modernize C++: use transparent functors 2023-08-07 16:08:35 +02:00
wmayer
31ed14db83 modernize C++: use noexcept 2023-08-07 16:06:58 +02:00
wmayer
df93b14ec0 modernize C++: use emplace 2023-08-06 20:29:56 -06:00
wmayer
dbad96d43e modernize C++: use using 2023-08-06 23:17:10 +02:00
wmayer
7a3106d31b modernize C++: use bool literals 2023-08-06 01:35:39 +02:00
wmayer
23375dcd0f Mesh: for invalid neighbour facet indexes explicitly use -1
The underlying C++ class use an unsigned long to reference neighbour facets. ULONG_MAX is used to indicate a missing neighbour facet.
Since the value of ULONG_MAX is platform dependent and can be confusing in Python the Python wrapper FacetPy now explicitly uses -1 to indicate missing neighbour facets
2023-08-05 15:32:11 -06:00
tomate44
529f791c78 Part: add optional tolerance to python sortEdges() 2023-08-05 15:17:26 -06:00
Tobias Falk
529f9401f7 added PDF/A-1b compliancy to all PDF export functions
for more details about this look at: https://www.kdab.com/creating-pdfa-documents-qt/
2023-08-05 14:46:11 -06:00
wmayer
9f99285d59 modernize C++: use nullptr 2023-08-05 11:23:12 -06:00
wmayer
2b3d48176c Mods: modernize C++: redundant void arg 2023-08-05 16:50:31 +02:00
wmayer
bf5059bf76 Sheet: modernize C++: redundant void arg 2023-08-05 16:50:31 +02:00
wmayer
22e6e2cd40 Part/PD: modernize C++: redundant void arg 2023-08-05 16:50:31 +02:00
wmayer
7d0926d0b3 Qt6 port:
Fix deprecation warnings with version 6.3 or 6.4
2023-08-04 21:23:14 -06:00
andrea
68101ac933 removed old OCC <7 references
removed OCC <7 references
2023-08-04 21:22:40 -06:00
andrea
18e1883284 removed coin<3 references 2023-08-04 21:19:29 -06:00
luzpaz
57b9442df7 Fix various typos 2023-08-04 19:46:12 +02:00
wmayer
b8a7849dd3 Misc: modernize C++: use override 2023-08-04 17:09:53 +02:00
wmayer
ed251a914b TD: modernize C++: use override 2023-08-04 17:09:53 +02:00
wmayer
6ff3ee9951 Sketch: modernize C++: use override 2023-08-04 17:09:53 +02:00
wmayer
6f142d250a Fem: modernize C++: use override 2023-08-04 17:09:53 +02:00
wmayer
52ef3a540c Part: modernize C++: use override 2023-08-04 17:09:53 +02:00
wmayer
fb5ca8a60b Robot: modernize C++: use override 2023-08-04 17:09:53 +02:00
wmayer
88c6f05d06 Path: modernize C++: use override 2023-08-04 17:09:53 +02:00
wmayer
fb75ab6e10 Mesh: modernize C++: use override 2023-08-04 17:09:53 +02:00
wmayer
fd275ee8be Path: fix test failure with MSYS2 build
The two path names have different path separators and thus are considered as different
2023-08-01 11:05:30 +02:00
Syres916
8bc8209e8b [Import] Dxf Fix regression from https://github.com/FreeCAD/FreeCAD/commit/1cd9feb
See discussion https://forum.freecad.org/viewtopic.php?t=80040&sid=9937b585c8681fe5a2d27f37dcd3f163
2023-08-01 11:04:22 +02:00
Yorik van Havre
69e035caa9 Merge pull request #9999 from yorikvanhavre/translations
Translations
2023-08-01 09:27:18 +02:00
grubertechnic
a972cbd249 [TechDraw] seam line in HLR default false 2023-07-30 12:48:30 -04:00
wandererfan
1d858e9279 [TD]fix leader end symbol does not scale 2023-07-30 12:48:30 -04:00
wandererfan
b559fc54f7 [TD]fix text size & position on Svg export #9968 2023-07-30 12:48:30 -04:00
Yorik van Havre
51d8f94f10 Merged crowdin translations 2023-07-26 11:05:11 +02:00
Yorik van Havre
4501cf479c Update ts files 2023-07-26 11:04:24 +02:00
Yorik van Havre
87c528c250 Merge pull request #9970 from bdieterm/patch-4
fix encoding on StartPage file information
2023-07-26 10:52:00 +02:00
wandererfan
483b5f1f7a [TD]remove unsupported file type from dialog 2023-07-25 17:02:07 -04:00
wandererfan
fc0ce9e4fa [TD]reduce number of tiles for svg hatching
- reduce the size of the overlay area from 200% to an
  adjustable size with a default of 125%.
2023-07-25 12:50:39 -04:00
luzpaz
e2c17cc616 Fix typos 2023-07-25 14:26:30 +02:00
wandererfan
dae186b565 [TD]fix handling of multiple pages 2023-07-24 13:47:08 -04:00
wandererfan
b3ec719c30 [TD]use shared renderer for svg tiles 2023-07-24 11:49:14 -04:00
sliptonic
ef4ca26382 Merge pull request #9594 from wwmayer/issue_9549_new
Part: fixes #9549: Part Fuse not working inside Part container
2023-07-24 10:16:51 -05:00