Commit Graph

69 Commits

Author SHA1 Message Date
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
Peter Lama
fa4bebf2e0 Use OCCT Handle macro for Handle_ classes
This is the result of running OCCT's upgrade script provided
with OCCT 7.0. See
https://www.opencascade.com/content/freecad-occt710-and-windows-rtti-data-missing#comment-form
and
https://www.forum.freecadweb.org/viewtopic.php?f=4&t=21405&start=120#p169019
for why this is necessary for OCCT >= 7.1
2017-04-20 12:27:34 +02:00
looooo
275db827aa py3: Part: App: gathering commits relevant for Mod/Part/App 2017-03-01 17:10:46 +01:00
wmayer
0535817033 add missing header files for Linux build 2017-02-24 15:07:31 +01:00
wmayer
1fa57c3d22 if possible then keep canonical curve and avoid to get a B-spline 2017-02-24 12:32:06 +01:00
wmayer
1a39dba72e call BRepLib::BuildCurves3d after mapping a 2d curve onto a surface to correctly create a 3d curve 2017-02-24 09:42:54 +01:00
wmayer
303bbd250e allow to pass also a face to Curve2d.toShape 2017-02-23 21:31:03 +01:00
Zheng, Lei
3bf3bd5cee Part: export Part::shape2pyshape 2017-01-19 23:05:30 +08:00
wmayer
8afd7dc231 fix CID 154895 2016-12-18 11:32:45 +01:00
wmayer
17d6d739e6 fix warnings 2016-12-04 17:04:48 +01:00
wmayer
f56a570e9a code optimization 2016-12-03 22:27:07 +01:00
wmayer
4ffce9699c implement BSplineCurve2d 2016-12-03 22:17:04 +01:00
wmayer
07c2334839 implement BezierCurve2d 2016-12-03 18:23:55 +01:00