Jacob Oursland
5b81cd741a
python: apply const method annotations to impls.
2025-04-16 20:32:04 -07:00
Benjamin Nauck
142c061a90
Sketcher: Use isBad() instead of comparing types with ==
2025-02-24 08:30:18 +01: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
Chris Hennes
791fe02934
Sketcher: Reformat to current clang-format standard
2023-09-04 07:17:28 -05:00
Abdullah Tahiri
987b4bda2a
Sketcher: App - Clang-format
2023-05-20 07:55:05 +02:00
Uwe
a139a35d24
[Sketch] App A - G: remove unused headers
...
- also some sorting
2022-12-11 18:53:45 +01:00
berniev
da9ebc572f
Mod: redundant void 2
2022-08-08 10:27:50 +02:00
wmayer
b48f7229a3
Sketch: replace PyObject_IsTrue with Base::asBoolean
2022-07-16 12:41:53 +02:00
wmayer
ead5154b18
Sketcher: modernize C++11
...
* use nullptr
2022-03-23 19:26:15 +01:00
Abdullah Tahiri
62c8125097
Sketcher: Addition of layerId field to SketcherGeometryExtension, GeometryFacade and ExternalGeometryFacade, and their Python wrappers
2021-12-07 16:30:55 +01:00
Mateusz Skowroński
6075ba3085
Fix GCC warnings: catching polymorphic type by value [-Wcatch-value=]
2020-12-28 23:17:26 +01:00
wmayer
a152cd2d96
Py: [skip ci] replace PyList_Append with Py::List::append
2020-12-13 16:44:14 +01:00
wmayer
4a8fac9147
Part: [skip ci] fix memory leaks
...
+ add convenience function GeometryExtension::copyPyObject()
+ make sure to destroy the clone when leaving getGeometry()
2020-12-11 12:05:28 +01:00
Abdullah Tahiri
9add3ba199
Sketcher/Part: Python handling of GeometryExtensions without a Python counterpart
...
=================================================================================
Some geometry extensions do not provide a PyObject as they do not have a Python counterpart
as it would serve no purpose to have it.
This commit handles this situation making sure to provide the right error to Python
or to ignore the extension where appropriate.
2020-12-10 18:34:06 +01:00
Abdullah Tahiri
51eb55081c
Sketcher: GeometryFacadePy - testGeometryMode Python interface
2020-12-10 18:34:06 +01:00
Abdullah Tahiri
40c8af8014
Sketcher: GeometryFacadePyImp - no longer checking if a point is construction to set construction status
2020-12-10 18:34:06 +01:00
Abdullah Tahiri
eb929ad217
Sketcher: Extend GeometryFacade and ExternaGeometryFacade to GeometryMode
2020-12-10 18:34:06 +01:00
Abdullah Tahiri
91ac9d2951
Sketcher: SketchGeometryExtension refactor InternalGeometry string conversion
...
=============================================================================
Minor refactoring to centralise string to enum conversion in a single place
2020-12-10 18:34:06 +01:00
Abdullah Tahiri
72fa70add8
Sketcher: Adapt GeometryFacade and ExternalGeometryFacade to new SketchGeometryExtension
2020-12-10 18:34:06 +01:00
wmayer
a50ae33557
Part/Sketcher: [skip ci] fix build failures with gcc 10 on Fedora
...
When using gcc 10 and PyCXX 7.1.4 on Fedora there is an error because the conversion from size_t to Py_ssize_t is ambiguous
See https://forum.freecadweb.org/viewtopic.php?f=4&t=52502
The class Py::Tuple is also incorrectly used here and causes a memory leak
2020-11-25 16:56:03 +01:00
Abdullah Tahiri
4a166e0a50
Sketcher: Change GeometryFacadePy representation
2020-11-03 12:01:22 +01:00
Abdullah Tahiri
0fd808dfc1
Sketcher: Geometry Facade interface for Geometry and SketchGeometryExtension
2020-11-03 12:01:22 +01:00