wmayer
8ae3185e3b
Part: replace PyObject_IsTrue with Base::asBoolean
2022-07-16 13:31:10 +02:00
Uwe
353c95bd82
[Part] [skip CI] BSplineSurfacePyImp.cpp: remove unneeded comment
2022-07-08 02:00:02 +02:00
Uwe
47460b632c
[Part] BSpline*: remove unneeded includes
...
- also sort includes
2022-07-08 01:34:59 +02:00
marioalexis
ad0f1147f7
Part: Use PyObject_IsTrue in combination with conditional ternary operator
2022-06-22 19:50:03 -04:00
wmayer
068c0e5a98
Part: modernize C++11
...
* use nullptr
2022-03-23 19:26:14 +01:00
Christophe Grellier
108437e37b
Update BSplineSurfacePyImp.cpp
...
Typo in setVKnot()
2021-08-15 11:16:01 +02:00
luz paz
c69f245d6f
Part: remove py2 code
2021-04-25 11:29:35 +02:00
wmayer
3a8a6aae1b
Surface: add command to create surface from sections
2020-09-26 16:32:42 +02:00
wmayer
92fe662d65
Part: implement BSplineSurface.buildFromNSections based on GeomFill_NSections
2020-09-25 15:07:47 +02:00
tomate44
053c918e60
Part: remove uIso and vIso methods. Methods from base class GeomSurface will be used instead
2020-09-20 18:25:39 +02:00
wmayer
48744aa9b5
Part: [skip ci] check for mults of inner knots when creating B-Spline curve/surface
2020-02-17 15:38:01 +01:00
Zheng, Lei
71c54272a0
Fix various Py::Object leak
2019-10-08 17:53:20 +02:00
sdh4
57ef3dfdf4
Part.BSplineSurface.buildFromPolesMultsKnots(): Fix 'Truth value of an array ... use a.any() or a.all()' when explicit knots or weights provided
...
Calls to BSplineSurface.buildFromPolesMultsKnots() with explicit knots or weights fail in recent versions of FreeCAD (tested on 0.18.3 with python3) with the message 'The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()'.
This trivial change follows the pattern used later in the function of explicit comparisons with Py_None, replacing PyObject_Not() and PyObject_IsTrue() when they are used to determine whether explicit weights or knots have been provided.
2019-08-27 21:48:52 +02:00
wmayer
949c86d364
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
Peter Lama
a75a98ef27
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
tomate44
3e195d5d94
in approximate, don't autocorrect continuity. Explain requirements in UserDocu instead
2017-03-18 19:01:45 +01:00
tomate44
fedbf42e9c
BSplineSurface approximate, add parametrization type and smoothing algo
2017-03-18 19:01:45 +01:00
looooo
a388a9d72d
py3: Part: App: gathering commits relevant for Mod/Part/App
2017-03-01 17:10:46 +01:00
wmayer
ed23c0d3c4
py3: ported Part to python3
2017-03-01 16:38:53 +01:00
wmayer
bca7a1866e
+ port to OCC 7.0
2016-05-14 16:53:27 +02:00
wmayer
cb16fec6bb
+ fix various warnings
2015-08-29 22:05:09 +02:00
wmayer
1a12d109e9
+ fix strict-aliasing warnings
2015-08-29 19:48:08 +02:00
wmayer
fbdfeef2a3
+ add method getPolesAndWeights() to NURBS surfaces and curves
2015-05-09 00:58:07 +02:00
Sebastian Hoogen
5e51a6cdf7
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
3b5cdda879
+ fix flaws found with code analyzer tool
2014-05-07 13:09:44 +02:00
wmayer
d62ed23068
+ Fix compiler warnings with OCC 6.6
2013-12-05 23:06:13 +01:00
Sebastian Hoogen
3a0037ff8d
0000895: Part.BSplineCurve: allow to set degree and mutliplicites when calling constructor.
...
Adds the functions:
Part.BSplineCurve.buildFromPolesMultsKnots()
Part.BSplineSurface.buildFromPolesMultsKnots()
2013-10-26 10:46:43 +02:00
wmayer
4686118f2a
+ Make Python API more pythonic
2013-10-11 13:57:05 +02:00
wmayer
1b345c193e
Use PyObject_IsTrue to check argument
2012-12-29 15:59:54 +01:00
wmayer
70bb37ab9d
Add approximate() method to B-spline surface class
2012-07-11 13:31:40 +02:00
wmayer
1c55838f69
Apply patch to add interpolate() method to B-Spline surface class
2012-06-25 11:48:43 +02:00
wmayer
c567271ac1
0000673: BSplineSurfacePy::insertVKnots manipulates UKnots
2012-04-16 17:22:48 +02:00
wmayer
85e9e013ab
0000668: getPole() does not provide proper bound checking
2012-04-12 13:24:48 +02:00
wmayer
120ca87015
+ unify DLL export defines to namespace names
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00