Commit Graph

106 Commits

Author SHA1 Message Date
Florian Foinant-Willig
bb3eb31d4e Surface: modernize type checking 2023-10-23 18:08:22 +02:00
liukaiwen
329904a055 [cmake] some definitions do not matter build now 2023-09-27 18:17:14 +08: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
255ddb746c Surface: apply clang format 2023-09-04 07:21:32 -05:00
tomate44
a501b93f16 BlendCurve: cleanup properties instantiation 2023-08-31 10:42:40 +02:00
tomate44
bc7f7c7dbf BlendCurve: add documentation of properties 2023-08-31 10:42:40 +02:00
tomate44
34634ac3cf BlendCurve: fix auto-update of properties 2023-08-31 10:42:40 +02:00
tomate44
e1b139655f Surface: allow instant update of BlendCurve properties 2023-08-31 10:42:40 +02:00
wmayer
e4239b74b6 Surface: modernize C++: use default member init 2023-08-23 00:55:03 +02:00
wmayer
93ac88bcc3 Surface: modernize C++: use equals default 2023-08-22 11:16:10 +02:00
wmayer
e1dce4e024 Surface: modernize C++: use range-based for loop 2023-08-15 17:20:01 +02:00
tomate44
8b2c2dab51 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
2b3d48176c Mods: modernize C++: redundant void arg 2023-08-05 16:50:31 +02:00
luzpaz
3a6794a317 Surface: fix header uniformity 2023-01-22 20:31:45 +01:00
Uwe
3b0f96098e [Surface] enable precompiled headers
- also remove double code
2022-12-08 03:26:59 +01:00
Uwe
101ac1175d [Surface] App:: remove unused includes
- also some sorting
2022-12-08 00:34:08 +01:00
wmayer
10d6a90be5 Mod: [skip ci] fix some MSVC warnings 2022-09-05 13:45:22 +02:00
wmayer
e56e35cf6a Surface: [skip ci] fix minor issues found by code checkers 2022-08-24 18:47:48 +02:00
Jonas Bähr
46cee50bd5 Fix build on MacOS-X 10.14: missing Xerces include dir
This undoes most of the Xerces related part of the commits listed below.
The issue resolved here is that the Xerces include dir *is* set in the
CMakeLists.txt of src/Base, but it got removed from various App and Gui
dirs in src/Mod. If those now include a header from src/Base, which
itself includes xercesc, the build fails using Apple clang version 11.0.0
(clang-1100.0.33.17) on Mojave, configured using cmake 3.22.1, with
errors like the following:

In file included from .../src/Mod/Part/App/FeaturePartBoolean.cpp:34:
In file included from .../src/App/Application.h:33:
.../src/Base/Parameter.h:54:10: fatal error: 'xercesc/util/XercesDefs.hpp' file not found
 #include <xercesc/util/XercesDefs.hpp>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Finally, a full list of the commits that introduced this spurious include
dir optimization for reference:
- Drawing: commit f4411478d106ba9f4827754a50efa53bd7767a66
- Image: commit e3476815c04c571199779bd1e444b950e6398025
- Import: commit b7b264e52c8fd97e83987c4ce42ce563170c8918
- Inspection: commit 1f64d8b1b8fcabe983c6e5e624d65766b4429ea0
- Mesh: commit 5a8fed0720d681cdbb9fedc840d2532c4f2f6042
- Part: commit 26bb65f11f4b51e5e47b65b2d6049ece10705a83
- PartDesign: commit f4e49f2aecf08f2337e84510ed019b7fa4b685a3
- Path: commit e3d9cc98577d2073297d55ffd8de28dd50f8444c
- Points: commit 09f3e867cdccd31294cced4e3c73015d3add3f4a
- Raytracing: commit 7b92dedc53f09e2ce8365408f3003e5700aebfc8
- ReverseEnginering: commit eeacc51ad0cd82e5f17d63207f78f79eb20bf9a9
- Robot: commit 4d06684cbd0328e4f43c78b5dab7e7fcebab148d
- Sketcher: commit 079125665495a08a7e2e2a4f01da406128dca625
- Spreadsheet: commit 514097954e95c04a7ec9d7e8ec1afc3aac3dd8d
- Start: commit 2ea2bb0dc393d7b8b41e9137c6d4ae40ce29719d
- Surface: commit 272268dd6c0b460ae9aeecdf371495ea26aa044d
- TechDraw: commit c70fdc3e0aa6b409626a6fa6b7266d05f3338c6d
- Test: commit 49a07b121e08e9bf3fef0f414a8da5602533592e
- Web: commit a93a23d7e4da13b2d5c37ac087b2dcf41aae197d
2022-08-24 07:40:04 +02:00
wmayer
c2b9eceec1 Surface: several improvements
* fix crash because of incomplete inheritance of BlendPoint and BlendCurve -> do not inherit from BaseClass
  as consequebce make destructor non-virtual and remove getPyObject
* pass std::vector by const reference
* remove unneeded includes
* use more suitable Python exception types
* when returning with null from Python handler then set an exception
* harmonize file guards
* several optimizations or simplifications
* use modern C++
* harmonize command name
* fix copyright note
2022-08-23 16:51:55 +02:00
Matteo-Grellier
3b839551da [Surface]: Change to BaseClass 2022-08-23 16:51:16 +02:00
Matteo-Grellier
83ee62bca4 [Surface]: Implementation of BlenCurve. 2022-08-23 16:51:16 +02:00
tomate44
6ec601dade Surface: Various fixes 2022-08-23 16:51:16 +02:00
wmayer
c87e1cc1c2 clang: fix warnings [-Winconsistent-missing-override] 2022-08-09 17:36:25 +02:00
berniev
71dc5ead2f Mod: Use override etc 2 2022-08-09 12:52:26 +02:00
berniev
f4ffd15864 Mod: redundant void 2 2022-08-08 10:27:50 +02:00
wmayer
985f0a9132 Surface: Fix several clazy issues:
* Missing reference in range-for with non trivial type [-Wclazy-range-loop-reference]
* Use multi-arg instead [-Wclazy-qstring-arg]
2022-07-25 10:01:49 +02:00
Uwe
7b4e014263 [Robot etc.] remove superfluous nullptr checks 2022-07-18 02:54:09 +02:00
andrea
c66aadeb60 removed references to OCC<7 2022-06-25 14:29:24 +02:00
wmayer
10e65e9141 Surface: include header with export macros 2022-03-24 20:41:34 +01:00
wmayer
3268179b7b Surface: modernize C++11
* use nullptr
2022-03-23 19:26:14 +01:00
Uwe
bfb18671fc [Surface] remove Python.h and Xerces 2022-03-20 22:46:47 +01:00
wmayer
0f9768fb33 Fix coverity issue:
* CID 332682: Resource leak
* CID 350607: Resource leak
* CID 332677: Resource leak
2022-03-14 11:35:04 +01:00
wmayer
167e11596a Surface: [skip ci] only try to build surface if at least two boundary curves are used 2021-10-21 18:23:03 +02:00
luz paz
ae48d4afb2 Surface: Fix header uniformity, whitespace, and doxygen header 2020-11-19 13:41:43 +01:00
tomate44
0ffa0279c6 Surface: prevent GeomFillSurface to produce C0 rational BSpline surface 2020-11-06 07:52:40 +01:00
vocx-fc
7750c4dfbf Surface: ViewProviderExtend for Surface::Extend object
This is created by the Surface_ExtendFace command.
2020-10-13 14:52:02 +02:00
wmayer
ed7cdd4c2c Surface: add command to create surface from sections 2020-09-26 16:32:42 +02:00
wmayer
a128272364 LGTM: [skip ci] fix: Accidental rethrow 2020-07-24 20:57:14 +02:00
wmayer
bac752b012 Surface: replace std::mutex with a boolean to avoid extra overhead 2020-07-03 16:08:02 +02:00
wmayer
4722571a5a Surface: optimize Extend::onChanged 2020-07-03 16:08:02 +02:00
wmayer
1bfd5c81cd Surface: remove superfluous function call 2020-07-03 16:08:01 +02:00
wmayer
9dd57ddee9 Surface: in Extend::onChanged call the function of its direct parent class Part::Spline 2020-07-03 16:08:01 +02:00
wmayer
711d473a6d Surface: handle old project files using Extend feature 2020-07-03 16:08:01 +02:00
wmayer
dbce4dc5ee Surface: fix -Winconsistent-missing-override 2020-07-03 16:08:01 +02:00
MA-LAPTOP\apeltauer
4d24229e5c adding 4 spaces instead of 2 spaces 2020-07-03 16:08:01 +02:00
MA-LAPTOP\apeltauer
47d6a54da8 Add the possibility to set the uv values for all four sides indepented.
Extending the face symetric is the default behaviour.
2020-07-03 16:08:01 +02:00
luz.paz
c8cb520887 [skip ci] fix follow-up typos 2020-03-06 14:50:35 +01:00
wmayer
12b944984c [skip ci] fix header uniformity
Set a real email address for headers in inspection and surface module
2019-12-21 16:12:54 +01:00
luz.paz
cb4a0adf71 Misc. typos
Found via `codespell`
2019-02-08 11:01:24 -02:00