Commit Graph

70 Commits

Author SHA1 Message Date
Markus Reitböck
6bd5c9737d CAM: 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-24 20:08:56 +02:00
Markus Reitböck
c003f7915b fix duplicate include guards in precompiled headers 2025-09-23 00:51:00 +02:00
wmayer
ac51455a0a CMake: Replace include_directories with target_include_directories 2025-09-08 19:04:34 +02:00
Ian 'z0r0' Abreu
78ec52f1a8 updating docblock locations. 2025-09-02 08:28:47 -04:00
Ian 'z0r0' Abreu
b1c551026e reverting author metadata 2025-09-02 08:25:37 -04:00
Ian 'z0r0' Abreu
b0b9f8fc35 Adding license documentation to interface class docblocks. 2025-09-01 21:50:59 -04:00
Ian 'z0r0' Abreu
0af34eeff6 Cleaning up xml file generation, and erroneous export annotations from interface bindings. 2025-08-31 18:28:41 -04:00
Ian 'z0r0' Abreu
283e60d1d2 Finalizing Python interface bindings for CAM. 2025-08-31 15:24:02 -04:00
Ian Abreu
300d971e98 Core: Fixing missing python bindings. (#23054)
* Adding missing python interfaces.

* fixing interface includes.

* attempting fix for CI build error related to path resolution.

* testing build

* More testing via Github Actions...

* renaming files

* fixing comparison operator.

* reverting...

* fixing CMakeLists

* fixing binding generation issue
2025-08-24 22:43:39 -05:00
Max Wilfinger
ab5e9e0ded Fix source string mistakes reported on Crowdin (#23157)
* Fix source string mistakes reported on Crowdin

* Update src/Mod/Draft/Resources/ui/TaskPanel_CircularArray.ui

Co-authored-by: Roy-043 <70520633+Roy-043@users.noreply.github.com>

* Update src/Mod/Draft/Resources/ui/TaskPanel_CircularArray.ui

Co-authored-by: Roy-043 <70520633+Roy-043@users.noreply.github.com>

* Update src/Mod/Draft/draftfunctions/upgrade.py

Co-authored-by: Roy-043 <70520633+Roy-043@users.noreply.github.com>

* Update src/Mod/Draft/draftfunctions/upgrade.py

Co-authored-by: Roy-043 <70520633+Roy-043@users.noreply.github.com>

* Update src/Mod/Draft/draftguitools/gui_downgrade.py

Co-authored-by: Roy-043 <70520633+Roy-043@users.noreply.github.com>

* Update src/Mod/Draft/Resources/ui/TaskPanel_SetStyle.ui

Co-authored-by: Roy-043 <70520633+Roy-043@users.noreply.github.com>

---------

Co-authored-by: Roy-043 <70520633+Roy-043@users.noreply.github.com>
2025-08-24 20:51:32 -05:00
Kacper Donat
0270515a33 Merge pull request #22660 from chennes/fixMultResultConvertedToLargerType
Fix mult result converted to larger type
2025-07-25 10:20:03 +02:00
Chris Hennes
8ef5f8a827 CAM: Add missing initializers 2025-07-23 16:51:20 +02:00
Chris Hennes
764542078f CAM: Fix multiplication result converted to larger type 2025-07-21 22:03:14 -05:00
Chris Hennes
de43a709bd Apply suggestions from code review
Co-authored-by: Kacper Donat <kadet1090@gmail.com>
2025-06-29 04:47:28 -05:00
Chris Hennes
0b0f3cedac CAM: Add missing initializers
Also switch to designated initializers to give context.
2025-06-22 19:10:48 -05:00
Chris Hennes
757ea2db61 CAM: Add initializer for retract_mode
Also explicitly list fields for clarity.
2025-06-22 19:10:39 -05:00
sliptonic
bb1a85ba0c Merge pull request #21685 from chennes/CAMPathSimulatorTruncation
CAM(PathSimulator): Use single-precision pi
2025-06-02 10:20:46 -05:00
sliptonic
6190c4cf4d Merge pull request #21651 from tarman3/simdrill
CAM: Simulator - Drilling - RetractMode G98/G99
2025-06-02 09:50:49 -05:00
Chris Hennes
b7bd7e0ce2 CAM(PathSimulator): Use single-precision pi
All of PathSimulator uses floats, rather than doubles: to prevent
compiler warnings about truncation, explicitly use the single-precision
version of the standard pi constant.
2025-05-31 17:57:24 -05:00
tarman3
70d243584a CAM: Simulator - Drilling - RetractMode G98/G99 2025-05-30 08:52:54 +03:00
sliptonic
d045074b27 Merge pull request #21528 from mosfet80/piDef
CAM: using std::numbers pi definition
2025-05-28 13:53:00 -05:00
Chris Hennes
fc8788f0b7 CAM: Ensure float constants are single-precision (#21322)
* CAM: Ensure float constants are single-precision

* Revert suggestion

---------

Co-authored-by: Benjamin Nauck <benjamin@nauck.se>
2025-05-26 17:38:34 +02:00
pre-commit-ci[bot]
c4d32ea3f9 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-05-22 23:23:27 +00:00
Andrea
64f93838df . 2025-05-23 01:18:58 +02:00
pre-commit-ci[bot]
50eeb8b7bb [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-05-22 23:17:56 +00:00
Andrea
15ee156b23 CAM: use std::numbers pi definition
se std::numbers pi definition
2025-05-23 01:11:37 +02:00
tarman3
202d160f9d CAM: Simulator - Reset camera tooltip 2025-05-13 23:26:45 +03:00
tarman3
77c56d3d46 CAM: Simulator - Reset camera 2025-05-13 20:41:30 +03:00
tarman3
dc9644d6e4 CAM: Simulator - Improve camera limits 2025-05-13 08:43:59 +02:00
tarman3
c76357c148 CAM: Simulator - Decrease speed button (#21222)
* CAM: Simulator - Decrease speed button

* CAM: Simulator - Move slider upper

* CAM: Simulator - Changed speed icons
2025-05-12 08:57:30 -05:00
tarman3
43bcc5820e CAM: Simulator - Add document name to title 2025-05-12 08:22:44 +02:00
tarman3
27f51b0b4c CAM: Simulator window title 2025-05-09 12:50:32 +02:00
sliptonic
ae93bd5907 Merge pull request #21183 from tarman3/fixsimprogress
CAM: Simulator Fix thumb right position with speed > 1
2025-05-07 10:23:29 -05:00
tarman3
e8decef4f5 CAM: Simulator Fix thumb right position with speed > 1 2025-05-07 11:09:17 +03:00
bofdahof
ba2c2ca5ad Console: rename PascalCase named methods to camelCase 2025-05-06 17:50:21 +02:00
Shai Seger
8340737e86 [CAM Simulator] Auto resizing of simulator slider based on window size (#21027)
* [CAM Simulator] Auto resizing of simulator slider based on widow size. Replaces PR #20885.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add tooltips

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add missing includes

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-05-05 10:51:28 -05:00
tarman3
f568a9d831 CAM: Increased moveEye in New Simulator 2025-04-20 14:53:14 +03:00
Andrea
ce10f30aa6 [mod] clean
code clean
2025-03-31 11:01:39 -05:00
Benjamin Nauck
9e3c0d111e CAM: Use std::numeric_limits and std::numbers instead of defines 2025-03-29 13:32:38 +01:00
Chris Hennes
ddffc455c4 CAM: Add missing destructor
Coverity issue 513026
2025-03-22 07:15:15 +01:00
tritao
cdab9c7837 CMake: Cleanup targets with transitive dependencies 2025-03-17 12:12:06 +00:00
bofdahof
474b0314b3 CAM: apply std::ranges 2025-03-16 17:15:38 -05:00
Benjamin Bræstrup Sayoc
ee1c73cd04 Build: suppress warnings from 3rd party libraries
Warnings from 3rd parties are not relevant and are only polluting the warning output. Marking these libraries as SYSTEM suppresses warning.

https://gcc.gnu.org/onlinedocs/cpp/Invocation.html#index-I
https://gcc.gnu.org/onlinedocs/cpp/System-Headers.html
2025-02-25 14:39:05 +00:00
Joao Matos
15076cb504 Core: Move PyCXX library to src/3rdParty. 2025-02-24 16:36:06 +00:00
Joao Matos
aace8f7bee CMake: Modernize build files using outdated Python variables. 2025-02-16 10:21:26 -06:00
Shai Seger
4d3fc9a700 [CAM Simulator] Add ifdef to fix OpenGL compatibility on linux. issue #18707 (#18746)
* Add ifdef to fix compilation on linux. issue #18707

* remove multisample line altogether
2025-01-27 17:41:49 +01:00
Shai Seger
34e618f524 Fix shader compilation error on linux. (#17236) 2024-10-14 08:51:11 -05:00
Shai Seger
bae3c8bb5d [CAM Simulator][1.0] Change usage of sample shader code to one with compatible license. (#16899)
* Change usage of sample shader code to one with compatible license.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-09-30 18:08:39 +02:00
Shai Seger
1ce5fca06b [Cam Simulator][1.0] Fix minor Ambient Occlusion bug. (#16665)
* Fix minor Ambient Occlusion bug.

* fix text cutting in CAM Simulator task panel. Issue #16707
2024-09-23 17:38:53 +02:00
Shai Seger
8ab7ea57ff [Cam Simulator][1.0] Limit anti alias samples for better compatibility. (#16416)
* Limit anti alias samples for better compatibility. might solve Wayland problem, issue #15665

* Antialias samples are taken from display prefs

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-09-16 10:42:05 -05:00