Commit Graph

1164 Commits

Author SHA1 Message Date
wmayer
8443891abe fix possible segfault in modelRefine 2017-07-27 15:13:49 +02:00
wmayer
728757bc38 fix possible segfault in modelRefine 2017-07-27 15:08:14 +02:00
wmayer
240df25d7a fix build failure 2017-07-27 11:06:06 +02:00
wmayer
ff4d613acb + add method trim() to Part.Curve 2017-07-26 22:59:39 +02:00
wmayer
dd7724624b fix makeGeometryCurvePy to return a LinePy for lines instead of a GeometryCurvePy 2017-07-26 10:08:01 +02:00
Eivind Kvedalen
dce81a6038 Part::Mirroring: This fixes issue #2671 by changing the type of Base and Normal to PropertyPosition and PropertyDirection. These two classes handles units better. 2017-07-23 22:14:05 +02:00
Eivind Kvedalen
60b90ec8a3 Part::Thickness: This fixes issue #2876 by changing property type for value to include a unit. 2017-07-23 22:14:05 +02:00
wmayer
05fad5e1f0 add missing header file 2017-07-23 20:57:32 +02:00
wmayer
6fd846ee22 handle exception thrown by BRepBuilderAPI_RefineModel 2017-07-23 15:46:57 +02:00
wmayer
95399a035e handle OCC exception in Feature::getPySubObjects and convert to Python exception 2017-07-15 17:16:44 +02:00
Randy
5c056d6887 Improve Part.Shape.project documentation
This clarifies that Part.Shape.project expects a list of shapes as an argument, not a single shape.  See this forum thread that highlights the confusion: https://forum.freecadweb.org/viewtopic.php?f=22&t=23287
2017-07-07 13:25:48 -03:00
tomate44
ad2aedbfc2 Part GeomBezierCurve implement Save() and Restore() 2017-06-26 22:08:38 +02:00
WandererFan
5d08c560db fix #3094 ShapeString tracking 2017-06-24 21:12:54 -04:00
wmayer
b989dafafa implement object serialization for BSplineCurve class 2017-06-22 22:42:01 +02:00
looooo
f1bdd58c74 py3: fix some simple incompapilities
issue 0000995
2017-06-21 11:25:30 +02:00
wmayer
00037b4d6c fix -Wsign-compare 2017-06-19 12:50:55 +02:00
Jean-Marie Verdun
b9ba167d92 Accelerate VBO rendering (bareleye model goes from about 18fps to 34fps on a Macbook Pro)
Fix crashes related to VBO buffer expansion by reallocating the buffers when needed
2017-06-19 12:40:04 +02:00
wmayer
2e6f223ea3 add comment to source code 2017-06-18 16:23:29 +02:00
Kurt Kremitzki
5c03420052 Remove redundant matrix scale factor multiplication 2017-06-16 00:15:22 +02:00
Abdullah Tahiri
f14532c93f Fix transformation support, so that support is updated with any previous transformation executed 2017-06-16 00:15:22 +02:00
Abdullah Tahiri
1978673b04 Reverting to checkIntersection via boolean operation
The extrema algorithm fails on touching (the manyfold detection fails to return a face, but several vertex, although a face is clearly touching and if bypassed the boolean succeeds), see
https://www.freecadweb.org/tracker/view.php?id=3065

This commit enables the older boolean based intersection check.
2017-06-16 00:15:22 +02:00
wmayer
773ab3e109 improve exception message if proximity function fails 2017-06-15 14:28:10 +02:00
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
86e328a248 check for valid vertexes when measuring angles between two edges 2017-05-29 20:49:35 +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
Yorik van Havre
de4d33cb84 Updated translations 2017-05-25 10:04:05 -03:00
looooo
dc01180b78 py3: define xrange for python3
this is done in files where the xrange is used.
replace this with range once python2 is not supported anymore.
issue 0000995
2017-05-18 15:56:09 +02:00
wmayer
11b187309b fix crash when Part model changes with VBO activated 2017-05-16 19:30:13 +02:00
wmayer
f001c3e16b fix crash when Part model changes with VBO activated 2017-05-16 06:03:22 +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
wmayer
736cd735ca fix possible freeze when creating sketch grid 2017-05-11 23:34:01 +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
wmayer
712766c3e8 fixes #0003000: View property Angular Deflection can freeze FC 2017-04-27 19:20:22 +02:00
wmayer
6e33aad6bc fix vertex highlighting 2017-04-24 17:19:21 +02:00
wmayer
fdf29399f4 rename material binding class member for faces to make clear its purpose 2017-04-24 14:53:05 +02:00
wmayer
fb3fb9643d implement highlighting of surface in filling task panel 2017-04-24 14:43:30 +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
asiersarasua
4564e4f4a4 Fix typos 2017-04-20 09:49:19 +02:00