Commit Graph

23 Commits

Author SHA1 Message Date
Benjamin Nauck
c1c14a6817 Import: Use std::numeric_limits and std::numbers instead of defines 2025-03-29 13:32:38 +01:00
bofdahof
ab74f06ef4 Import: apply std::ranges 2025-03-16 17:16:42 -05:00
Kacper Donat
13fbab9e42 Base: Move App::Color to Base
Every basic data type is stored in Base module, color is standing out as
one that does not. Moving it to Base opens possibilities to integrate it
better with the rest of FreeCAD.
2025-02-17 21:10:26 +01:00
Benjamin Nauck
6f535f19fb Prefer to use BaseClass's isDerivedFrom<T> over non template or Base::Type's
Regex based changes, manually verified
2025-01-27 16:08:18 +01:00
wmayer
a123ebd6d6 Import: Fix transparency issues when loading STEP files 2025-01-20 12:18:16 -05:00
wmayer
ddf925afde Import: Fix index error with legacy STEP export
Fixes #17677
2024-11-06 13:53:39 -05:00
Florian Foinant-Willig
464ffa7e73 Import: modernize type checking 2023-10-23 18:08:53 +02:00
wmayer
abda1438ad Import: code-refactoring and clean-up
* Add new method ExportOCAF::exportObjects() to avoid code duplication
* Simplify handling of arguments passed to Python handler
* Fix several lint warnings
* Move ImportOCAFExt to the corresponding source files
2023-10-01 22:23:57 +02:00
pre-commit-ci[bot]
e92ed45df9 [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
af3a8d4224 Import: Apply clang format 2023-09-10 19:23:47 +02:00
wmayer
38a9082546 Import: modernize C++: use default member init 2023-08-23 00:55:03 +02:00
wmayer
da00501288 Mod: modernize C++: use equals default 2023-08-22 11:16:49 +02:00
wmayer
7a3106d31b modernize C++: use bool literals 2023-08-06 01:35:39 +02:00
Uwe
f340176f1c [Import] remove unused includes
- also some sorting
2022-11-25 04:34:44 +01:00
wmayer
918fc83cd3 Part: implement wrapper class around Interface_Static 2022-10-03 19:03:32 +02:00
andrea
c66aadeb60 removed references to OCC<7 2022-06-25 14:29:24 +02:00
Zheng, Lei
3335da00ae Import: fix transparency STEP export/import
App::Color::a in FreeCAD is actually interpreted as transparency
instead of alpha.
2021-10-09 20:43:24 +08:00
Zheng, Lei
eaca6571ee Import: fix STEP color and add transparency in legacy importer/exporter 2021-10-07 18:08:00 +08:00
Zheng, Lei
a32b6e4075 Import: fix STEP color problem caused by OCC 7.5
Fixes #0004744
2021-10-07 17:43:38 +08:00
wmayer
6300e09dd8 handle some more warnings: -Wkeyword-macro -Wdeprecated-declarations -Wextra-semi 2019-11-18 11:56:08 +01:00
wmayer
f44672ff09 fixes 0003807: STEP export with BaseFeature does not hide BaseObject 2019-02-23 19:43:35 +01:00
wmayer
fc7efcb4d7 avoid possible errors with null labels 2019-02-13 11:39:25 +01:00
wmayer
6787d5d28d move class ExportOCAF to own source files 2018-09-28 15:06:46 +02:00