Ladislav Michl
e4d304f934
Base: Implement TimeElapsed
...
Some instances of TimeInfo serve the sole purpose of measuring time
duration. Using system time is unfortunate as it returns wall clock,
which is not guaranteed to be monotonic. Replace such a usage with
the new TimeElapsed class based on steady clock.
2024-03-05 12:29:24 +01:00
wmayer
cc8452a545
Part: use of ShapeMapHasher for code simplification
2024-02-12 12:02:17 -06:00
bgbsww
8abd09398a
Add support for OCCT 7.8.0 ( #11909 )
2024-01-09 19:47:25 -06:00
Florian Foinant-Willig
eb55f1fe52
Part: modernize type checking
2023-10-23 18:12:03 +02:00
wmayer
f6d1fe1ab3
Part: refactor ViewProviderPartExt::getDetail
2023-08-25 19:23:18 +02:00
wmayer
0d854a56cd
Part: modernize C++: return braced init list
2023-08-19 11:35:41 +02:00
wmayer
312975edba
Part: modernize C++: use range-based for loop
2023-08-16 21:56:32 -05:00
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
Syres916
d231a25da8
[Part] Fix regression when opening...
...
project files with linked objects having face colors.
See discussion https://forum.freecad.org/viewtopic.php?t=79558
Regression commit: ce56d65162
2023-07-11 00:20:27 +01:00
luzpaz
129d5882a7
Migrate domain name from freecadweb to freecad ( #9352 )
...
* Migrate domain name from freecadweb to freecad
* Migrate src/Mod/Material files
* Migrate Stylesheet related files
* Migrate *.svg files
* Migrate miscellaneous files
* Migrate some build files
* Migrate recently added TD AR_IRAM template files
Closes #6415
2023-04-24 15:19:20 -05:00
0penBrain
afd6a15f54
Gui: consistent angular deflection between Part and Preferences
...
Also with docstring just below modified line
2023-04-13 16:04:40 +02:00
wmayer
140657e1cc
Part: set an absolute upper limit of the deflection for the shape tessellation to avoid useless results
2023-04-12 08:10:39 +02:00
Andrew
b916c387fb
Clean Mod/Part. remove old OCC <7.3 and #if 0 code.
2023-03-26 21:17:18 +02:00
wmayer
2a970b3045
clang: fix -Wunused-but-set-variable
2023-03-12 15:05:21 +01:00
Uwe
6e5be52325
[Part] improve PreCompiled.h handling
2022-12-07 23:20:46 +01:00
luz paz
6e542b6fad
Part: remove trailing whitespace
2022-11-15 14:19:30 -06:00
berniev
da9ebc572f
Mod: redundant void 2
2022-08-08 10:27:50 +02:00
berniev
2d4c5a4cfb
Mod: use emplace_back
2022-08-05 10:36:16 +02:00
Uwe
eabffee3a5
[Part] ViewProvider: 2 to M: remove unused includes
2022-07-31 15:36:20 +02:00
Uwe
5f8e0c46ee
[Part] remove more superfluous nullptr checks
2022-07-18 01:36:27 +02:00
andrea
93525ff7eb
removed references to OCC<7
2022-06-25 14:29:24 +02:00
marioalexis
1ba78b7e72
Part: Use regex to match names in ViewProviderPartExt::getDetail
2022-04-26 11:58:45 +02:00
wmayer
068c0e5a98
Part: modernize C++11
...
* use nullptr
2022-03-23 19:26:14 +01:00
Uwe
62496d7277
Revert "App: fix property ordering problem when undo/redo ( #3255 )"
...
This reverts commit c3178343db .
2022-02-22 01:21:49 +01:00
Zheng Lei
c3178343db
App: fix property ordering problem when undo/redo ( #3255 )
...
* Part: fix Placement/Shape onChanged() handling
* App: fix property ordering problem when undo/redo
See https://tracker.freecadweb.org/view.php?id=4265#c14271
* Gui: fix undo/redo signaling
Make sure to signal after all properties has been restored
2022-02-21 12:29:01 +01:00
wmayer
b6ebeef6f3
Part: fix regression by commit 289a9bcc8
...
* Standard_Version.hxx is required for the OCC version check macro
* group sorted header includes by library
2022-02-17 11:09:35 +01:00
Uwe
289a9bcc87
[Part] ViewProviderExt: remove unused includes
...
- also sort them
2022-02-17 05:00:17 +01:00
Uwe
aa02ab5c66
[Part] add context menu icon for color face
...
- the other context menu entries have icons and we use this icon already in the View menu
- also sort the includes
2022-02-17 03:20:31 +01:00
Zheng, Lei
75e639c94c
App/Gui: add new ObjectStatus TouchOnColorChange
...
For triggering recompute on color changes
2021-12-21 21:41:02 -07:00
wmayer
f7ec9787d1
Part: a deflection of 0.0 is not allowed any more for meshing a shape
2021-12-10 13:31:40 +01:00
Chris Hennes
ce56d65162
Merge pull request #4952 from realthunder/FixDocumentRestore
...
Fix external document loading
2021-10-31 10:36:12 -05:00
wmayer
9e8516002b
Part: fixes #0004774 : Datum plane or line is not available in sketch in another body via binder
2021-10-30 22:28:57 +02:00
Zheng, Lei
a2fb4a5d6d
Minor code change according to suggestions
2021-10-30 12:30:45 +08:00
Zheng, Lei
414ea71a28
Part: fix unnecessary document 'modified' status
2021-10-30 11:02:39 +08:00
Chris Hennes
834831b6c8
Merge pull request #5098 from realthunder/FixStepColor
...
Fix STEP import/export color problem
2021-10-10 18:46:43 -05:00
Zheng, Lei
45d0660727
Part: minor change on transparency setting
2021-10-11 06:02:54 +08:00
Zheng, Lei
498b40800e
Part: sync ViewProviderExt::DiffuseColor on Transparency change
2021-10-10 22:01:25 +08:00
wmayer
74639da997
OCCT: port FreeCAD sources to version 7.6
...
SMESH is not yet ported
Although FreeCAD code compiles with OCCT 7.6 it doesn't work at the moment
2021-10-09 13:49:02 +02:00
wmayer
c2c5ae1bf0
Part: remove ViewProviderPartExt::getNormals
2021-10-08 19:34:48 +02:00
Zheng, Lei
c3e3ff3c8b
Part: set transparency in ViewProviderExt::DiffuseColor
...
For single color shape
2021-10-07 17:44:09 +08:00
Benjamin Alterauge
ed1d71e671
Possible to use DefaultShapeVertexColor setting.
...
Add a separate material for vertex. So, it is possible use DefaultShapeVertexColor. [Ticket #4692 ](https://forum.freecadweb.org/viewtopic.php?f=3&t=59576 )
2021-08-03 07:35:00 +02:00
Zheng, Lei
1dddcd0b18
Part: fix ViewProviderExt::updateVisual() on incomplete mesh
2021-01-28 17:38:49 +01:00
vocx-fc
15408b2132
Part: rename the basic Part 2D and 3D icons
...
The basic icons for the basic features are renamed,
`Tree_Part` to `Part_3D_object`, `Tree_Part2D` to `Part_2D_object`.
2020-10-22 15:11:45 +02:00
wmayer
f81c1cd31f
Part: make changing face colors independent of edit-mode implementation of a view provider
2020-10-13 14:16:01 +02:00
carlopav
9b71dd77b6
Part: grouped ViewProviderExt subdivided view properties
2020-08-21 12:36:46 +02:00
wmayer
dc65b055e5
LGTM: [skip ci] fix: Empty branch of conditional
...
An empty block after a conditional can be a sign of an omission and can decrease maintainability of the code.
Such blocks should contain an explanatory comment to aid future maintainers.
2020-07-26 15:49:14 +02:00
wmayer
cb2099aa6b
Part: optimize ViewProviderPartExt::getNormals
2020-07-22 20:33:17 +02:00
wmayer
421f6c52cb
Coverity: Dereference after null check
2020-07-20 17:34:25 +02:00
wmayer
d414fc6311
Part: [skip ci] set again Two-side rendering as default lighting style
2020-04-06 14:12:44 +02:00
wmayer
8832356802
Part: [skip ci] add option to set two-side rendering of Part shapes
2020-02-22 12:09:26 +01:00