Commit Graph

25710 Commits

Author SHA1 Message Date
bdieterm
c9028e46fe 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
33384cff9c [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
9587393ca3 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
f94b026456 modernize C++: use transparent functors 2023-08-07 16:08:35 +02:00
wmayer
c7a17468e7 modernize C++: use noexcept 2023-08-07 16:06:58 +02:00
wmayer
4f10fc4fa0 modernize C++: use emplace 2023-08-06 20:29:56 -06:00
wmayer
89d529ab7b modernize C++: use using 2023-08-06 23:17:10 +02:00
wmayer
2a88c7c7df modernize C++: use bool literals 2023-08-06 01:35:39 +02:00
wmayer
5a7824b646 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
df9c8f6556 Part: add optional tolerance to python sortEdges() 2023-08-05 15:17:26 -06:00
Tobias Falk
5965956293 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
d244dcf2da modernize C++: use nullptr 2023-08-05 11:23:12 -06:00
wmayer
39e53e5eb0 Mods: modernize C++: redundant void arg 2023-08-05 16:50:31 +02:00
wmayer
ca84a0662d Sheet: modernize C++: redundant void arg 2023-08-05 16:50:31 +02:00
wmayer
899932cec0 Part/PD: modernize C++: redundant void arg 2023-08-05 16:50:31 +02:00
wmayer
5621a0089f Qt6 port:
Fix deprecation warnings with version 6.3 or 6.4
2023-08-04 21:23:14 -06:00
andrea
170c2b9957 removed old OCC <7 references
removed OCC <7 references
2023-08-04 21:22:40 -06:00
andrea
6c2a5c1539 removed coin<3 references 2023-08-04 21:19:29 -06:00
luzpaz
16e083c8f3 Fix various typos 2023-08-04 19:46:12 +02:00
wmayer
3975f31f89 Misc: modernize C++: use override 2023-08-04 17:09:53 +02:00
wmayer
d2c9f8cbdc TD: modernize C++: use override 2023-08-04 17:09:53 +02:00
wmayer
30249e6550 Sketch: modernize C++: use override 2023-08-04 17:09:53 +02:00
wmayer
eb49318ad6 Fem: modernize C++: use override 2023-08-04 17:09:53 +02:00
wmayer
7daf7c0700 Part: modernize C++: use override 2023-08-04 17:09:53 +02:00
wmayer
ccca592c04 Robot: modernize C++: use override 2023-08-04 17:09:53 +02:00
wmayer
4366128cc4 Path: modernize C++: use override 2023-08-04 17:09:53 +02:00
wmayer
ec0c7ab835 Mesh: modernize C++: use override 2023-08-04 17:09:53 +02:00
wmayer
f803f148af 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
15e9b45691 [Import] Dxf Fix regression from https://github.com/FreeCAD/FreeCAD/commit/1f6fd1b
See discussion https://forum.freecad.org/viewtopic.php?t=80040&sid=9937b585c8681fe5a2d27f37dcd3f163
2023-08-01 11:04:22 +02:00
Yorik van Havre
82742861fa Merge pull request #9999 from yorikvanhavre/translations
Translations
2023-08-01 09:27:18 +02:00
grubertechnic
122c34e2cf [TechDraw] seam line in HLR default false 2023-07-30 12:48:30 -04:00
wandererfan
21e61995fd [TD]fix leader end symbol does not scale 2023-07-30 12:48:30 -04:00
wandererfan
20ee438746 [TD]fix text size & position on Svg export #9968 2023-07-30 12:48:30 -04:00
Yorik van Havre
ebc65ee713 Merged crowdin translations 2023-07-26 11:05:11 +02:00
Yorik van Havre
6bfeb5ff53 Update ts files 2023-07-26 11:04:24 +02:00
Yorik van Havre
9f1e2c9f37 Merge pull request #9970 from bdieterm/patch-4
fix encoding on StartPage file information
2023-07-26 10:52:00 +02:00
wandererfan
cd710bd48d [TD]remove unsupported file type from dialog 2023-07-25 17:02:07 -04:00
wandererfan
13d6615938 [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
6c72f80d55 Fix typos 2023-07-25 14:26:30 +02:00
wandererfan
a3851d4701 [TD]fix handling of multiple pages 2023-07-24 13:47:08 -04:00
wandererfan
be6484b150 [TD]use shared renderer for svg tiles 2023-07-24 11:49:14 -04:00
sliptonic
20768ba7f9 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
Florian Foinant-Willig
761e807cd5 PartDesign: UpToFace check isnull
The next line crash if upToFace is null.
2023-07-24 14:40:15 +00:00
wmayer
d7c90d3f77 PD: fix out of scope warnings of Clone feature
If the BaseFeature link of the Body of a Clone feature isn't set then do not update it.
Forum thread: https://forum.freecad.org/viewtopic.php?p=675644#p675644
2023-07-24 14:35:04 +00:00
Chris Hennes
6838740153 Update translations 2023-07-24 13:37:52 +00:00
wmayer
736248e408 Draft: add unit test for issue #9912 2023-07-24 13:55:28 +02:00
0penBrain
1580fe7c96 Spreadsheet: update and add tests 2023-07-23 22:11:08 -04:00
0penBrain
ee3b777f62 Spreadsheet: fix string save/restore, fixes #6395 2023-07-23 22:11:08 -04:00
wandererfan
195520d4a3 [TD]fix face colour preference ignored 2023-07-23 19:14:06 -04:00
bdieterm
e992fe291b fix encoding on StartPage file information 2023-07-22 17:37:46 +02:00