wmayer
508412ee41
Part: [skip ci] fix two little copy&paste errors
2019-12-17 11:04:13 +01:00
DeepSOIC
1aa635e782
Part: fixup (to make gcc happy)
2019-12-17 10:52:28 +01:00
DeepSOIC
7554c2111c
Part: fix memory leak in distToShape
...
https://forum.freecadweb.org/viewtopic.php?f=10&t=41620
2019-12-17 10:52:20 +01:00
wmayer
df8e09196d
set default deflection of 0.01 when exporting shape as STL
2019-11-29 13:46:30 +01:00
asapelkin
ced8100ab9
use emplace_back instead of push_back where justified
2019-11-21 14:48:09 +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
53fc2f3ec9
improve exception handling Shape.distToShape
2019-06-13 21:49:13 +02:00
Abdullah Tahiri
216926233f
Part: Make 3rd party libraries into PCH
2019-05-02 07:09:22 +02:00
wmayer
dc1720a7f2
continue PCH on Part module
2019-05-01 16:10:38 +02:00
wmayer
d4c3f9a264
add method to Python interface to get reflect lines of a shape
2019-02-25 10:50:38 +01:00
wmayer
2aee1e8368
fixes 0003771: Memory leak in Part.Face.Surface
2019-01-23 22:38:51 +01:00
wmayer
4f10d2fac9
support face colors when writing in OpenInventor format
2019-01-12 15:06:25 +01:00
wmayer
0e80292c2f
prepare for OCCT 7.3.1
2018-12-13 23:10:10 +01:00
wmayer
461884c2ea
add missing headers, prepare for OCCT 7.3.1
2018-12-13 23:08:48 +01:00
wmayer
47c6e294f6
fix build failure for OCCT < 7.0
2018-09-05 10:56:56 +02:00
wmayer
68b57d659a
add optional parameters to copy method to copy topology and/or triangulation
2018-09-04 23:17:25 +02:00
Markus Lampert
e13c09235f
Changed all catch types to references for polymorphic exceptions.
2018-08-08 15:45:30 +02:00
tomate44
8d177f3caf
add python binding of OCC defeaturing
2018-07-29 11:50:06 +02:00
Yorik van Havre
37388663f6
Part: Allow to disable progress bar in brep string reader
2018-07-19 11:57:07 -03:00
tomate44
9eaafad8a0
add Approximation option to TopoShape section
2018-06-10 20:59:06 +02:00
wmayer
f2ae921768
expose function to Python to get optimal bounding box
2018-05-30 21:27:49 +02:00
wmayer
c6208aa098
add typedef Py::TopoShape for convenience, move shape2pyshape to own file
2017-09-28 12:54:28 +02:00
wmayer
b90e24eb5e
for boolean ops also support to pass single shape and tolerance
2017-09-18 22:16:15 +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
773ab3e109
improve exception message if proximity function fails
2017-06-15 14:28:10 +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
wmayer
e694d7f90d
properly raise exception in TopoShapePy::check
2017-05-29 16:52:44 +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
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
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
Zheng, Lei
a1a8645ea9
Part: exported Part::sort_Edges
...
Fixed export of Part::shape2pyshape
2017-01-20 17:46:47 +08:00
Zheng, Lei
3bf3bd5cee
Part: export Part::shape2pyshape
2017-01-19 23:05:30 +08:00
wmayer
413550d5b1
cleanup work: overload methods instead of using new method names
2017-01-04 15:39:27 +01:00
triplus
ff986b80f1
Add Part BOA multiCut, multiCommon and multiSection methods
2017-01-04 14:06:12 +01:00
wmayer
64f954cbfd
fix build failure for occ version < 7.0
2016-11-12 16:19:51 +01:00
wmayer
446e5e94cc
methods to fix shape tolerances
2016-11-12 16:14:46 +01:00
wmayer
2845b437b5
methods to analyze shape tolerances
2016-11-12 15:31:35 +01:00
wmayer
2af6bb6e49
replace deprecated auto_ptr with unique_ptr
2016-09-22 13:01:20 +02:00
wmayer
7d38edb065
fix -Wextra in Part
2016-09-22 11:49:28 +02:00
DeepSOIC
d4fc0becd7
Part: Py API: add makeOffset2d method to Part.Shape
...
+ write documentation to makeOffsetShape
2016-09-02 16:26:02 +02:00
Wolfgang E. Sanyer
d1d2f1f811
This commit adds getShape and setShape to TopoShape
2016-08-06 23:42:55 +02:00
DeepSOIC
31aeb84075
Part: TopoShapePy: add generalFuse method
2016-07-04 14:57:50 +03:00
wmayer
ec82ea252a
+ add overloaded methods of write() and read() to write and read from streams
2016-06-11 14:47:01 +02:00
wmayer
9bfdfc723e
+ for importBrep() and exportBrep() allow file names or file objects
2016-06-11 12:38:58 +02:00
wmayer
00f20e89c0
+ fix build failure with occ 6.9.1
2015-11-05 19:40:34 +01:00
wmayer
50189747c0
+ (hopefully) fix build failure with occ 6.9.1
2015-11-05 17:06:04 +01:00
Mateusz Skowroński
05f95c0506
Fix files encoding. Go from ISO8859-1 to UTF-8.
2015-09-21 19:50:49 -03:00