Frank Martinez
c9579bbff2
[bindings] Code formatting
2025-11-11 13:23:09 -05:00
Frank Martinez
802f62739e
[bindings] fix signatures in pyi files
2025-11-11 13:16:26 -05:00
pre-commit-ci[bot]
9fe130cd73
All: Reformat according to new standard
2025-11-11 13:49:01 +01:00
PhoneDroid
db6d1e0c33
[ Part ]: Update SPDX License Identifiers
2025-11-02 16:16:07 -06:00
Markus Reitböck
68114945fa
Part: 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
luzpaz
851d2ba943
Part: remove trailing whitespace
2025-08-31 23:21:13 -05:00
Jacob Oursland
0b29aa596a
python: use const_cast<> to new() python types.
2025-04-16 20:32:04 -07:00
Jacob Oursland
5c251e73ac
python: apply const method annotations to impls.
2025-04-16 20:32:04 -07:00
Joao Matos
a32478349b
Part: Remove XML binding files.
...
This PR removes the Part XML API bindings files now that we have
equivalent Python binding files.
2025-03-25 21:28:52 +01:00
Joao Matos
28555643a6
Part: Convert XML bindings to Python (Part 2)
2025-03-25 19:55:36 +01:00
Joao Matos
054e04075a
Part: Clean up XML bindings (Part 2)
...
This cleans up the XML bindings for Part in preparation for an upcoming
migration to Python bindings model.
2025-03-25 17:51:32 +01:00
Kim Kirwan
bea058d280
Repair XML Files - fixes #10730
...
In ../src/Mod/Part/App/Geom2d/ sixteen out of seventeen XML
files needed repair as per the GitHub issue. Tabbing in those
sixteen files set to 4-spaces no-tab-chars. Other minor
changes as needed.
2024-11-22 12:18:11 -05:00
Chris Hennes
cfd41683a5
Core: Enable compiling with MSVC /permissive- ( #11014 )
...
* Base: Fixes for MSVC permissive-
* App: Fixes for MSVC permissive-
* Gui: Fixes for MSVC permissive-
* Main: Fixes for MSVC permissive-
* Fem: Fixes for MSVC permissive-
* Material: Fixes for MSVC permissive-
* Part: Fixes for MSVC permissive-
* Mesh: Fixes for MSVC permissive-
* Points: Fixes for MSVC permissive-
* Robot: Fixes for MSVC permissive-
* TechDraw: Fixes for MSVC permissive-
* Path: Fixes for MSVC permissive-
* Core; Changes per review comments
* TD: Revision from wandererfan
* [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>
2023-11-27 17:37:29 +01:00
wmayer
6d11e2206d
Part: fix BSplineCurve2dPy::insertKnot
2023-11-24 15:06:00 +01:00
tomate44
810da3db88
Part : fix edge creation of Geom2d curves
2023-11-20 12:35:09 +01:00
wmayer
30723acfa5
Part: format XML files
2023-10-28 22:45:15 +02:00
luzpaz
191879b4ea
Part: remove leftover comment markup
...
Closes #10731
2023-09-22 15:56:22 +02:00
wmayer
e6d350e719
Part: when replacing PyArg_ParseTupleAndKeywords with Base::Wrapped_ParseTupleAndKeywords then in a few cases the negation of the expression has been removed.
...
See also: https://forum.freecad.org/viewtopic.php?t=80958
2023-09-06 11:53:56 +02:00
Chris Hennes
068b39092c
Part: Wrap PyArg_ParseTupleAndKeywords
2023-08-25 15:34:26 -05:00
wmayer
7cb51a4980
Part: modernize C++: use range-based for loop
2023-08-16 21:56:32 -05:00
wmayer
ec73caa40e
modernize C++: make unique
2023-08-07 19:51:30 -06:00
wmayer
22e6e2cd40
Part/PD: modernize C++: redundant void arg
2023-08-05 16:50:31 +02:00
luz paz
2f1ff7928b
Part: remove trailing whitespace
2022-11-15 14:19:30 -06:00
berniev
f4ffd15864
Mod: redundant void 2
2022-08-08 10:27:50 +02:00
wmayer
74e77f0191
Part: replace PyObject_Not with Base::asBoolean
2022-07-16 14:10:34 +02:00
wmayer
b6494085b4
Part: replace PyObject_IsTrue with Base::asBoolean
2022-07-16 13:31:10 +02:00
Uwe
e5be6dc241
[Part] Geom2d*: add more necessary includes
...
- these gp_* inlcudes are weird
2022-07-09 18:43:18 +02:00
Uwe
d758c92bb1
[Part] Geom2d*: add more necessary includes
2022-07-09 18:28:36 +02:00
Uwe
4c404b6353
[Part] Geom2d*: add necessary includes
2022-07-09 18:15:02 +02:00
Uwe
c97236a503
[Part] Geom2d: remove unneeded includes
...
- also sort includes
2022-07-09 17:57:53 +02:00
andrea
c66aadeb60
removed references to OCC<7
2022-06-25 14:29:24 +02:00
marioalexis
eaf01ab0c6
Part: Use PyObject_IsTrue in combination with conditional ternary operator
2022-06-22 19:50:03 -04:00
wmayer
6d2d45ceb7
Part: modernize C++11
...
* use nullptr
2022-03-23 19:26:14 +01:00
wmayer
2bec14b93a
Part: expose Geom2dCircle::getCircleCenter to Python and fix a regression
2022-02-05 16:07:00 +01:00
wmayer
69fd6d35ec
Part: use of factory method of Vector2dPy
2021-11-14 18:19:34 +01:00
luz paz
e0ab0382b3
Part: remove py2 code
2021-04-25 11:29:35 +02:00
wmayer
1f8296736b
Part: improve Python interface
...
+ rename getCurve2dFromGeom2d to makeFromCurve2d
+ add function makeFromCurve and makeFromTrimmedCurve like makeFromSurface
+ implement OffsetCurve.BasisCurve
+ fix memory leak in BRepOffsetAPI_MakePipeShellPy
2020-09-27 23:34:45 +02:00
tomate44
6a1758a867
Part.Curve2d : adjust parameters
2020-08-24 16:09:54 +02:00
tomate44
5ab8ec1c26
Part.Curve2d : fix for toShape sometimes generating wrong BSpline curves
2020-08-24 16:09:54 +02:00
wmayer
07d2e08920
PVS: V524 It is odd that the body of 'getLastUKnotIndex' function is fully equivalent to the body of 'getFirstUKnotIndex' function
2020-07-18 10:59:27 +02:00
asapelkin
ced8100ab9
use emplace_back instead of push_back where justified
2019-11-21 14:48:09 +01:00
luz.paz
2e4e9c6d4e
Add some more user-facing typo fixes
2019-03-22 10:44:14 -03:00
wmayer
5d8cd9dba4
PVS: V522 There might be dereferencing of a potential null pointer 'Py::Vector2d().getCxxObject()'
2019-02-18 00:00:10 +01:00
luz.paz
c3e15d8d51
Documentation: uniformity
2019-01-30 11:08:03 -02:00
tomate44
990e202a5e
fix intersectCC method missing some intersection points for Geom2d curves
2019-01-03 12:33:58 +01:00
luz.paz
9167064fc1
Misc. typos
...
Found via `codespell`
2018-04-25 09:41:33 -03:00
wmayer
99ec96acd5
prepare for PyCXX 7.0
2018-04-18 19:20:50 +02:00
luzpaz
cc87c20afe
Make uniform the use of B-spline visible to users
...
Forum thread: https://forum.freecadweb.org/viewtopic.php?f=8&t=25411
This commit does not include fixes to source comments unless they were 'doxygenated'.
No .xml files were altered either.
2017-11-17 19:30:37 -05:00
wmayer
0d617f97d6
Port to occ7.2:
...
+ Standard_Failure::Caught() is now marked as deprecated and should be replaced with standard C++ exception handling
2017-09-01 16:27:46 +02:00
wmayer
800526836a
use specialized Python exception classes
2017-04-28 19:33:51 +02:00