Commit Graph

29 Commits

Author SHA1 Message Date
Markus Reitböck
015896f4e4 MeshPart: use CMake to generate precompiled headers on all platforms
"Professional CMake" book suggest the following:

"Targets should build successfully with or without compiler support for precompiled headers. It
 should be considered an optimization, not a requirement. In particular, do not explicitly include a
 precompile header (e.g. stdafx.h) in the source code, let CMake force-include an automatically
 generated precompile header on the compiler command line instead. This is more portable across
 the major compilers and is likely to be easier to maintain. It will also avoid warnings being
 generated from certain code checking tools like iwyu (include what you use)."

Therefore, removed the "#include <PreCompiled.h>" from sources, also
there is no need for the "#ifdef _PreComp_" anymore
2025-09-23 22:39:36 +02:00
Ryan Kembrey
33ccea6835 MeshPart: Update UI strings for consistency
Closes: #22372
2025-08-04 20:13:18 +02:00
Benjamin Nauck
a1c5767643 Mod: Use new addObject<T>(...) using regex 2025-02-10 18:35:38 +01:00
Kacper Donat
651cefde4d Gui: Use getObject<T>() helpers in classes
This commit is generated using regex based find and replace:

```
s/[\w:]+_cast\s*<([^>]+)\*>\s*\(\s*getObject\(\s*\)\)/getObject<$1>/
s/[\w:]+_cast\s*<([^>]+)\*>\s*\(\s*([^)]*)\s*->\s*getObject\(\s*\)\)/$2->getObject<$1>()/
```

To regenerate if needed.
2024-12-06 18:29:39 +01:00
Florian Foinant-Willig
f3d238fde8 MeshPart: modernize type checking 2023-10-23 18:09:17 +02:00
wmayer
56820718c5 Core: Revert superfluous changes made with PR #9521 2023-10-09 15:06:45 +02:00
AgCaliva
c483ecebb4 using clang-format tags to avoid get headers reordered(fix DOMDocument redefinition error) 2023-09-18 13:40:13 -03:00
pre-commit-ci[bot]
d31c2130fb [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-09-16 05:14:03 +00:00
AgCaliva
4a504437d3 merge master via cli 2023-09-16 02:12:58 -03:00
AgCaliva
280e5e3987 Fixing DOMDocument redefinition 2023-09-16 00:38:41 -03:00
pre-commit-ci[bot]
222a2520b1 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-09-12 13:02:35 -04:00
wmayer
6fb2bcafe8 MeshPart: apply clang format 2023-09-02 11:30:04 +02:00
wmayer
8c2e110bfb MeshPart: modernize C++: use default member init 2023-08-23 00:55:03 +02:00
wmayer
7c42bc5e60 MeshPart: modernize C++: use range-based for loop 2023-08-15 12:52:52 +02:00
wmayer
9aede79ef8 Mesh: replace slots with member function pointers 2023-02-03 00:21:38 +01:00
wmayer
787a37be82 Gui: fix View3DInventorViewer's getViewProviderByPath, getViewProviderByPathFromTail, getViewProvidersOfType
The View3DInventorViewer only contains the top-level view providers which caused unexpected behaviour when using the three methods above. Thus, in client code they haven't been used any more.
Now the methods internally invoke the corresponding methods of the document. This allows it in client code to directly call the appropriate methods again (LoD).
2022-12-12 16:41:58 +01:00
Uwe
8d6ea90cee [MeshPart] improve PreCompiled.h handling 2022-12-07 23:35:52 +01:00
Uwe
7d04bf015c [MeshPart] Gui: remove unused includes
- also some sorting
2022-11-24 02:21:38 +01:00
wmayer
e9890c0798 Gui/Mod: replace several reinterpret_cast with static_cast 2022-06-25 11:36:55 +02:00
wmayer
1c93e5ac87 MeshPart: modernize C++11
* use nullptr
2022-03-23 19:26:14 +01:00
wmayer
716a27de25 MeshPart: Fix several coverity issues:
* CID 350570: Uninitialized scalar variable
* CID 350628: Uncaught exception
2022-03-13 15:50:39 +01:00
wmayer
33f3fa6865 Mesh: define the typenames FacetIndex and PointIndex to distinguish between facet and point related indexes 2021-09-14 23:01:29 +02:00
wmayer
44f42a8e2c LGTM: [skip ci] fix: Declaration hides parameter
A local variable hides a parameter. This may be confusing. Consider renaming one of them.
2020-07-27 10:57:34 +02:00
asapelkin
e951094af9 use emplace_back instead of push_back where justified 2019-11-21 14:48:09 +01:00
wmayer
f2bd624c63 make mesh picking working for view providers underneath a Part container 2019-11-09 11:16:23 +01:00
wmayer
9f7075bb8f extend convertTo function to also support SbRotation/Base::Rotation 2019-09-06 21:29:51 +02:00
wmayer
a2d3b12a57 add option to disable approximation of splines when creating curve on mesh 2019-05-16 16:16:03 +02:00
wmayer
e44884a01a make curve-on-mesh working for meshes with placement 2019-05-12 20:25:58 +02:00
wmayer
48a6bca7d8 project polyline on mesh and create edge 2017-04-19 23:30:15 +02:00