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
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
berniev
f4ffd15864
Mod: redundant void 2
2022-08-08 10:27:50 +02:00
wmayer
b6494085b4
Part: replace PyObject_IsTrue with Base::asBoolean
2022-07-16 13:31:10 +02:00
wmayer
21c967ef77
Part: fix build failure
2022-07-04 02:21:59 +02:00
Uwe
be3120d24f
[Part] Geometry*PyImp.cpp: remove unneeded includes
...
- also sort includes
2022-07-04 01:03:23 +02:00
tomate44
63733dcaa2
Part: add method to project point on curve
2022-06-28 12:58:49 +02:00
wmayer
6d2d45ceb7
Part: modernize C++11
...
* use nullptr
2022-03-23 19:26:14 +01:00
luz paz
e0ab0382b3
Part: remove py2 code
2021-04-25 11:29:35 +02:00
wmayer
3632c81435
clang/gcc/cmake: move handling of suppressed deprecated-copy warnings from source file to CMake file to more easily support gcc 10
2020-06-09 15:30:42 +02:00
wmayer
be8634d05c
Handle clang 10 warnings:
...
+ fix -Wtautological-bitwise-compare
+ fix -Wimplicit-int-float-conversion
+ fix -Wmisleading-indentation
+ fix -Wrange-loop-construct
+ suppress -Wdeprecated-copy of 3rd party libs
2020-05-25 15:34:43 +02:00
wmayer
bd051135df
Part: [skip ci] get n-th derivative of a curve via Python
2020-05-17 23:25:07 +02:00
wmayer
065619d243
Part: [skip ci] add methods to determine continuity
2020-05-17 21:57:25 +02:00
Zhang Wei
8111c9e2e5
Patch for MIPS64 Architecture
2020-02-15 19:32:58 +01:00
wmayer
78274136c6
Part: determine tangent intersection of two 2d curves
2020-02-13 12:51:40 +01:00
Zheng, Lei
8426ebe2ba
Fix various Py::Object leak
2019-10-08 17:53:20 +02:00
Zheng, Lei
f028ba42ff
Part: changes to Part Module
...
* Added Part::Feature::getTopoShape/getShape() function that can obtain
shape from any object with proper implementation of getSubObject(). It
can even construct compound from group object with proper implementation
of getSubObjects().
* Modified ViewProviderExt to work on any object, because it now obtain
the shape using Part::Feature::getShape()
* Modified various Part features to obtain base/tool shapes using
Part::getShape(), which allows them to be any type of object,
including Link and groups.
* Modified various Part command to relax type requirement on selected
objects.
* Add support of link and group to dimension, and add dimension refresh
command
* Support link and group in simple command command, and add a few more
copy command variations.
* Add special handling of 'Shape' attribute in PropertyContainerPy and
use Part::Feature::getShape() to return shape for any object without
Shape property. This allows many python feature work with any object
without modification.
* GeometrySurface/CurvePy, add convenience attribute 'Rotation'
* TopoShapePy:
* Extended support of sub shape attribute, e.g. Compound1, Solid2,
SubShape3 ('SubShape' is used to access child shape of a compound)
* makeWires(), new API to sort and return wires given a list of edges.
* transformed/translated/rotated/scaled(), return a new shape with
some transformation.
* findPlane(), find the plane of a planar shape
* isCoplanar(), check if two shape are coplanar
2019-08-17 15:08:35 +02:00
wmayer
2f31efe4c3
PVS: V779 Unreachable code detected. It is possible that an error is present.
2019-02-17 20:12:56 +01:00
wmayer
23fe2041d9
handle also B-spline and Bezier curves in GeomCurve::closestParameter
2019-01-21 13:47:41 +01:00
wmayer
8eff973fc5
reduce code duplication
2019-01-03 17:33:39 +01:00
Abdullah Tahiri
e761180872
Part: Geometry refactoring
...
==========================
python c+ wrapper to use twin class c++ function instead of duplicating the code
2018-10-28 18:31:35 +01:00
wmayer
f5a920fed2
avoid throwing exception in intersectCC
2018-10-05 22:17:20 +02:00
wmayer
70aa8e056b
expose more methods of Geom_Curve to Python
2018-09-15 11:26:26 +02: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
ff4d613acb
+ add method trim() to Part.Curve
2017-07-26 22:59:39 +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
wmayer
d5e9afa52b
py3: ported Part to python3
2017-03-01 16:38:53 +01:00
wmayer
becdede5c0
add methods to convert a curve to a B-Spline or NURBS
2017-02-13 10:38:09 +01:00
wmayer
dd1d45b081
fix bug in Curve class
2016-12-03 11:04:24 +01:00
wmayer
a9ade2be5b
expose methods to Python to get normal, curvature and center of curvature for curve
2016-10-28 21:19:27 +02:00
wmayer
b44408a2a4
implement method to get GeomSurface from Geom_Surface
2016-10-17 22:39:17 +02:00
wmayer
c2dd2e2b99
fix Coverity issues
2016-08-21 18:46:40 +02:00
maito78
db7465b215
Add parameter at given distance method for curves
2016-07-29 22:40:19 +02:00
wmayer
cb73d010bb
+ port to OCC 7.0
2016-05-14 16:53:27 +02:00
jrheinlaender
a07d1fdba8
Python functions to intersect curves and surfaces
2016-04-12 18:11:55 +02:00
Sebastian Hoogen
af50cbf964
fixes #0001422 : Subclass Exception
...
inherit Base.FreeCADError form RuntimeError
inherit Part.OCCError from Base.FreeCADError
inherit OCCDomainError from Part.OCCError
inherit OCCRangeError from Part.OCCError
inherit OCCConstructionError from OCCDomainError
inherit OCCDimensionError from OCCDomainError
Added PY_CATCH_OCC macro
replace PyExc_Exception
use FreeCADError in makeWireString
catch exception in BSplineCurve.increasedegree
2014-09-17 11:15:56 +02:00
wmayer
b26ed2a3a9
+ Support Quasi methods in discretize()
2014-08-14 19:11:51 +02:00
wmayer
e4aa0049c1
+ support First and Last keywords in discretize
2014-08-14 11:16:54 +02:00
wmayer
1619ff964e
+ fix and improve discretize() method
2014-08-13 23:33:27 +02:00
wmayer
2eb40b4fd8
+ fixes #0001388 : SIGSEGV in Part::GeometryCurvePy::toBSpline
2014-02-17 11:40:09 +01:00
wmayer
6321d460e1
+ Approximate curve to B-Spline
2014-01-17 10:53:13 +01:00
wmayer
cca672d1e6
+ Attribute to get continuity of curve
2013-10-24 18:11:24 +02:00
wmayer
a6b71c58dd
+ Method to convert any curve into B-Spline
2013-10-24 17:30:38 +02:00
wmayer
2255bdd30b
Fix build failure
2013-04-10 09:41:44 +02:00
wmayer
48c69c820c
Implement GeometryCurvePy::length
2013-04-08 12:54:46 +02:00
wmayer
3933c6b109
+ implement Python interface to discretize wires or edge with given deflection or number of points
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5423 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2012-01-24 15:23:58 +00:00
wmayer
c0986a76dc
+ add method to get intersection of two curves
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5414 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2012-01-17 15:08:47 +00:00