Commit Graph

757 Commits

Author SHA1 Message Date
wmayer
729cfd8155 py3: fox compiler warnings
issue 0000995
2017-06-04 00:17:57 +02:00
wmayer
b8fd36edc5 fixes #0002926: Trying to access Part.Shape.children() before doc.recompute() crashes the whole program 2017-06-03 13:46:05 +02:00
crobarcro
8482d2865e TopoShapeEdgePy.xml: improved docstrings
Corrected docstrings for *At methods (valueAt, tangentAt etc.) to explain parameter position meaning

Improved docstrings for FirstParameter, LastParameter, Length and getParameterByLength
2017-05-30 18:09:33 +02:00
wmayer
a863938aa8 handle OCC exception when accessing point of a vertex 2017-05-29 20:36:06 +02:00
wmayer
e694d7f90d properly raise exception in TopoShapePy::check 2017-05-29 16:52:44 +02:00
wmayer
3855a06267 add keyword support to MakePipeShell.add, support overloaded method 2017-05-13 14:12:37 +02:00
wmayer
c98ab632e5 exception handling in BRepOffsetAPI_MakePipeShellPy 2017-05-13 13:28:31 +02:00
Richard Crozier
422328483e AppPartPy.cpp: improved docstrings for Part.makeLine and Part.makePolygon 2017-05-11 20:01:37 +02:00
wmayer
ce67325616 add method to get ancestors of a sub-shape 2017-05-11 11:20:21 +02:00
wmayer
17135addb6 add optional parameter to TopoShape.check() to run bop check 2017-05-10 22:40:12 +02:00
wmayer
2ea183e629 Expose method to Python to get property name of main geometry
fix inheritance of MeshFeaturePy
fix inheritance of PartFeaturePy
remove useless test() method
implement getPyObject in GeoFeature in case a sub-class doesn't implement it
2017-05-10 10:36:22 +02:00
wmayer
800526836a use specialized Python exception classes 2017-04-28 19:33:51 +02:00
Abdullah Tahiri
998c000516 Convert OCC exceptions into Base::Runtime exceptions for App:DocumentObject handling 2017-04-28 15:46:49 +02:00
Abdullah Tahiri
81c581b9bd Correct copy-paste typos in exception throwing 2017-04-28 15:46:30 +02:00
Abdullah Tahiri
e3b900d0f3 Change all exceptions thrown within AttachExtension::positionBySupport from Base::Exception to a meaningful derivative 2017-04-28 15:46:13 +02:00
Abdullah Tahiri
a2f1a4ff18 Part Design: Allow attachment error messages and error setting propagation 2017-04-28 15:45:54 +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
Abdullah Tahiri
1810164d60 Part: hiding tag handling functions as protected until a need for them is clear 2017-04-10 08:57:25 +02:00
Abdullah Tahiri
1ea45da51b Part: Modify python copy to use c++ copy() instead of clone() 2017-04-10 08:57:25 +02:00
Abdullah Tahiri
621c1d74f1 Part: Geometry refactoring copy/clone 2017-04-10 08:57:25 +02:00
Abdullah Tahiri
52a0ad6e04 Part: Geometry assignTag function 2017-04-10 08:57:25 +02:00
Abdullah Tahiri
f9dd6cace1 Part: Geometry creation of copy method to distinguish from clone 2017-04-10 08:57:25 +02:00
Ian Rees
6be7148405 Improve Python docstrings in Part and MeshPart 2017-04-09 12:00:24 +12:00
wmayer
aae7ebef24 expose Geometry::getTag to Python 2017-04-08 16:56:59 +02:00
wmayer
3663cfbd0e add method to create new tag id 2017-04-08 13:31:28 +02:00
wmayer
e13b810954 fix warning of unused variable 2017-04-08 12:58:06 +02:00
Abdullah Tahiri
3060e28c81 Part: Geometry - implement missing setHandle functions and refactoring 2017-04-08 12:58:06 +02:00
Abdullah Tahiri
1c34aca8ac Part: Add unique identifier to Geometry 2017-04-08 12:58:06 +02:00
Abdullah Tahiri
2c53237492 Part: Fixing signed vs unsigned warning 2017-04-08 12:58:06 +02:00
Abdullah Tahiri
084e375b2a Part: BSplineCurve Python creation change for greater flexibility 2017-04-08 12:58:06 +02:00
Abdullah Tahiri
6301b814ee Part: GeomBSpline enable direct construction from parameters 2017-04-08 12:58:06 +02:00
Abdullah Tahiri
298e962d26 Part: GeomBSplineCurve extension to get, increase or reduce multiplicity 2017-04-08 12:58:06 +02:00
Abdullah Tahiri
8199b685a7 Part: Geometry - Ensure that no point is set as construction by mistake/user mistake 2017-04-08 12:58:06 +02:00
Abdullah Tahiri
0cf81e2d1f Part: Geometry add support for getting the number of knots in a B-Spline 2017-04-08 12:58:06 +02:00
wmayer
59682f31a7 add methods firstVertex and lastVertex to TopoEdge 2017-04-04 10:05:46 +02:00
tomate44
bcd2a0f394 add doc and a couple of new methods to MakePipeShell 2017-03-29 19:47:52 +02:00
AjinkyaDahale
65342e53e7 Fixed Typos 2017-03-19 18:09:15 -03:00
tomate44
645dc7d2ba in approximate, don't autocorrect continuity. Explain requirements in UserDocu instead 2017-03-18 19:01:45 +01:00
tomate44
8da5ea5e2d BSplineSurface approximate, add parametrization type and smoothing algo 2017-03-18 19:01:45 +01:00
tomate44
395cb9836b BSplineCurve approximate, fix function sometime failing with smoothing algo 2017-03-18 19:01:45 +01:00
wmayer
63943e4bb8 extend interface to get actual property with geometric data, get center of gravity of a geometry 2017-03-05 18:05:11 +01:00
Kunda
9410e751e9 source typo fixes pt4 (only on py3 merged code) 2017-03-02 13:47:21 +01:00
Ian Rees
4303384667 Clean up clang inconsistent override warnings. 2017-03-01 22:00:41 +01:00
wmayer
3d6fc352c5 do code cleanup
move BOPTools from Part to PartGui because it depends on GUI
2017-03-01 21:58:04 +01:00
looooo
275db827aa py3: Part: App: gathering commits relevant for Mod/Part/App 2017-03-01 17:10:46 +01:00
wmayer
d5e9afa52b py3: ported Part to python3 2017-03-01 16:38:53 +01:00
hgutsche
201c9d89b0 Some fixes for doygen syntax errors and some configuration to make it run smoother under Windows 2017-02-28 18:52:04 +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