Commit Graph

895 Commits

Author SHA1 Message Date
Abdullah Tahiri
b1858f2cf4 Part: Geometry Arcs inheriting from GeomTrimmedCurve 2018-10-28 18:32:15 +01:00
Abdullah Tahiri
8b97a31372 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
Abdullah Tahiri
9e349c33a8 Part: Geometry - improvements/bug fixes
=======================================

routine for closest parameter to point was failing on endpoints. The former version
used the parameter of the basis curve, which sometimes was giving parameter values
incoherent. This version uses distance to endpoints when a projection on the trimmed
curve can not be found.
2018-10-28 18:31:22 +01:00
Abdullah Tahiri
f301feec31 Part: New routines for curve intersection 2018-10-28 18:31:06 +01:00
wmayer
a53027342e rework error handling mechanism 2018-10-24 19:38:43 +02:00
wmayer
f84971fca2 avoid throwing exception in intersectCC 2018-10-05 22:17:20 +02:00
wmayer
a0916a9a66 avoid re-throwing an exception in case normal is not defined 2018-10-04 23:31:55 +02:00
wmayer
c3a8348861 fixes 0003571: Offset3D of volumes intersection is not solid 2018-09-30 22:40:32 +02:00
wmayer
64b9c78b92 fix GeometryPy::setConstruction 2018-09-29 21:36:07 +02:00
wmayer
ff0cacca0a fixes 0003469: FreeCAD crashes on edge selection during fillet edge operation on extruded geometry 2018-09-25 22:51:33 +02:00
wmayer
dfd3d86b22 fixes 0003333: Wrong behaviour of fuse operation 2018-09-25 17:53:37 +02:00
wmayer
f9ca7d62c2 fix compiler warning, fix build failure with older OCCT versions 2018-09-17 10:20:03 +02:00
tomate44
f6d9b692be add a check to BSplineCurve.segment() 2018-09-17 10:02:04 +02:00
wmayer
c6df59969b expose more methods of Geom_Curve to Python 2018-09-15 11:26:26 +02:00
DeepSOIC
38df1ae742 Part, PartDesign, Attacher: fix a few problems with infinite shapes
To throw an error instead of returning a semi-infinite result that kills rendering.
fixes #3439
2018-09-13 13:12:55 +02:00
DeepSOIC
eb8629d077 Part: Attacher: fix flip-sides for O-X-Y-like attachment modes
fixes #2519
2018-09-13 13:03:06 +02:00
wmayer
36bd5a0ec1 fix build failure for OCCT < 7.0 2018-09-05 10:56:56 +02:00
wmayer
d8c5581566 add optional parameters to copy method to copy topology and/or triangulation 2018-09-04 23:17:25 +02:00
Christophe Grellier
7d8e53aaab add Const to ancestorsOfType 2018-09-03 22:06:46 +02:00
Michal Ulianko
faf8834484 py3.7 fix
PyUnicode_AsUTF8() returns const char* in py3.7 instead of char*. Making
changes to reflect that which should also be safe in
other Python versions.
2018-09-01 22:44:39 +02:00
wmayer
561be08211 Part sweep now accepts compounds of edges that build a wire 2018-08-26 17:02:01 +02:00
wmayer
b2cefc460d Part loft now accepts compounds of edges that build a wire 2018-08-26 16:49:48 +02:00
wmayer
73e27458da CMP0050: make Part module aware of cmake policy 2018-08-20 16:54:23 +02:00
wmayer
07eea2e3a6 remove ambiguous function setTolerance, use Tolerance attribute instead 2018-08-19 14:31:04 +02:00
wmayer
557fee3dc6 fix -Wignored-qualifiers 2018-08-19 12:38:57 +02:00
wmayer
0bc5699b59 fix -Wparentheses 2018-08-19 12:28:05 +02:00
wmayer
171e652047 fix -Wabsolute-value 2018-08-17 09:47:38 +02:00
wmayer
01c140be28 fix warnings 2018-08-08 18:02:59 +02:00
Markus Lampert
0b40519f3f Changed all catch types to references for polymorphic exceptions. 2018-08-08 15:45:30 +02:00
luz.paz
baa6d89328 Typos and whitespace fixes 2018-08-07 11:13:31 -04:00
wmayer
88aefc28e8 backport to OCCT < 6.8 2018-08-07 16:56:33 +02:00
Zheng, Lei
8f3cf6156b PropertyPartShape: remove CopyShapeOnSave parameter 2018-08-06 19:01:37 +02:00
Zheng, Lei
d65349f1f9 PropertyPartShape: fix brep shape saving without copy 2018-08-06 19:01:09 +02:00
Zheng, Lei
8018f2640d PropertyPartShape: add parameter to disable copy on save
By default PropertyPartShape uses BRepBuilderAPI_Copy to copy the shape
on saving, to get rid of the triangulation. However, OCCT seems to
perform a deep copy and shape sharing information is lost.

A new parameter, BaseApp/Preferences/Mod/Part/General/CopyShapeOnSave,
is added to disable this.
2018-08-06 19:00:58 +02:00
Abdullah Tahiri
de9e7cc942 Part: Improvement to closest parameter determination when the projection does not exist in the trimmer curve 2018-07-29 13:44:06 +02:00
tomate44
b40c1f16b5 add a missing check for OCC version 2018-07-29 11:50:08 +02:00
tomate44
1f63d6a103 add python binding of OCC defeaturing 2018-07-29 11:50:06 +02:00
tomate44
4a0ea3c0ec add OCC defeaturing to TopoShape 2018-07-29 11:50:06 +02:00
wmayer
61a6fbe6d2 fix -Wunused 2018-07-28 12:56:31 +02:00
Yorik van Havre
c93ff200ca Part: Allow to disable progress bar in brep string reader 2018-07-19 11:57:07 -03:00
wmayer
f90cd4a56d backport to occt < 6.9 2018-06-10 21:57:25 +02:00
tomate44
f3ac51d9b7 add Approximation option to TopoShape section 2018-06-10 20:59:06 +02:00
tomate44
be96fcc62d add Approximation option to FeaturePartSection 2018-06-10 20:59:06 +02:00
wmayer
833c2c601e add missing newlines 2018-06-09 11:47:12 +02:00
wmayer
211a24507c do not use deprecated class in OCCT 7.3 2018-06-01 17:02:27 +02:00
wmayer
009b18a553 expose function to Python to get optimal bounding box 2018-05-30 21:27:49 +02:00
wmayer
0425c7f3c8 fixes #0003493: Python Shape.isClosed() returns false for any solid, including primitive Parts 2018-05-27 15:10:44 +02:00
luz.paz
7a09a5774e More misc. typos 2018-05-19 12:17:52 -04:00
luz.paz
505488c4f9 Misc. typos
Found via `codespell`
2018-04-25 09:41:33 -03:00
wmayer
840c9e8b3c prepare for PyCXX 7.0 2018-04-18 19:20:50 +02:00