Commit Graph

62 Commits

Author SHA1 Message Date
wmayer
ef9936a940 App: fixes #10460: App::PropertyPythonObject is not saving data
Since Py3.11 the methods names __setstate__ and __getstate__ conflict with the method names added to the object class.
Thus rename them to 'loads' and 'dumps'
2023-09-24 10:56:35 -05:00
alexneufeld
c78bdb95b8 Explicitly use App.Vector in docstrings 2023-03-27 16:34:28 +02:00
alexneufeld
e567ff7911 fix incorrect docstring for Part.Shape.extrude method 2023-03-27 16:34:28 +02:00
wmayer
2064658607 Part: add Const attribute to several methods in TopoShapePy 2022-06-22 16:58:56 +02:00
marioalexis
0d6e8eed5a Part: Enable reversed method in Python TopoShape class 2022-04-10 11:59:03 +02:00
tomate44
2daf6a03e4 Part: Shape.ReflectLines: add 2D/3D, visibility and EdgeType options 2021-04-18 08:26:26 +02:00
flachyjoe
a9d99cbd3c fix some missed lines 2021-03-28 15:36:36 +02:00
flachyjoe
5389eeccb3 Improve Part.Shape methods documentation
Formats UserDocu to follow the template:
 Description
 method(args) -> return
 --
 More infos
2021-03-28 15:36:36 +02:00
wmayer
51245f3851 Part: [skip ci] add TopoShape::isInfinite 2020-12-19 16:07:00 +01:00
wmayer
31197e5cdc Part: add method to return a reversed shape 2020-09-25 15:59:08 +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
d4c3f9a264 add method to Python interface to get reflect lines of a shape 2019-02-25 10:50:38 +01:00
wmayer
4f10d2fac9 support face colors when writing in OpenInventor format 2019-01-12 15:06:25 +01:00
wmayer
68b57d659a add optional parameters to copy method to copy topology and/or triangulation 2018-09-04 23:17:25 +02:00
Christophe Grellier
56d5305edf add Const to ancestorsOfType 2018-09-03 22:06:46 +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
564b2ea86c fixes #0003493: Python Shape.isClosed() returns false for any solid, including primitive Parts 2018-05-27 15:10:44 +02:00
tomate44
ecce5eea6d fix some TopoShape documentation 2018-01-21 12:03:53 +01:00
luzpaz
5973d8d67e Part: typos 2017-12-25 11:03:11 +01:00
luzpaz
985980648c Typos: user-facing and trivial
Several typos and uniformity fixes.
Note: 
*SCL/SimpleDataTypes.py is a upstream stepcode file whose fiz has been submitted upstream and accepted.
*the header of Tools/generateBase/generateMetaModel_Module.xsd  had redundant data. It has been removed. Please double check it.
2017-12-02 14:00:57 +01: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
wmayer
ce67325616 add method to get ancestors of a sub-shape 2017-05-11 11:20:21 +02:00
Kunda
9410e751e9 source typo fixes pt4 (only on py3 merged code) 2017-03-02 13:47:21 +01:00
triplus
8dc516878f Update BOA common and section documentation 2017-01-05 20:11:18 +01: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
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
DeepSOIC
d4fc0becd7 Part: Py API: add makeOffset2d method to Part.Shape
+ write documentation to makeOffsetShape
2016-09-02 16:26:02 +02:00
DeepSOIC
31aeb84075 Part: TopoShapePy: add generalFuse method 2016-07-04 14:57:50 +03:00
DeepSOIC
f0b3c2ba35 API: update distToShape built-in docu
It was way too short, and incorrect
2015-11-13 18:13:20 +03:00
wmayer
5609b63be3 + add method to write/read BREP in binary format 2015-09-07 19:02:56 +02:00
wmayer
7090587e45 + improve doc string 2015-05-04 15:20:23 +02:00
Sebastian Hoogen
b9bcda349f add shape.proximity(shape) 2015-03-21 13:29:30 +01:00
Sebastian Hoogen
9a758221ee add TopoShape::multiFuse method
to fuse multiple shapes at once.
2015-02-21 12:35:21 +01:00
Sebastian Hoogen
b54dd77a50 rename python classes for shapes and
implememnt __getstate__ and __setstate__ to enable pickling
issue #1948
2015-02-04 17:07:29 +01:00
wmayer
7ac12b111b + Allow to get clean copy of a shape from Python 2014-07-30 12:21:22 +02:00
wmayer
f68760fbae + fixes #0001544: Python function to retrive direct children of a shape using TopoDS_Iterator 2014-05-14 18:14:06 +02:00
Sebastian Hoogen
4a3f1cc33c BrepTools::Dump to string 2014-03-02 14:42:41 +01:00
wmayer
5bfb3ee3e9 + improve doc string (for bug 1257) 2014-03-02 13:12:23 +01:00
Sebastian Hoogen
4749e35e95 parse keyword arguments in Part::TopoShapePy::makeOffsetShape 2014-03-02 08:56:08 +01:00
WandererFan
aa8fecb50e Add Part.distToShape() 2014-02-17 10:34:13 +01:00
wmayer
c04a3251e9 + Rename methods 2014-01-12 21:42:46 +01:00
wmayer
7e9e6bbb51 + Projection of edges and wires 2014-01-12 18:48:55 +01:00
wmayer
bb01ec1605 0001273: revolve method fails 2013-10-17 16:53:10 +02:00
jriegel
cc55ce4008 start node index interface 2013-09-12 21:58:11 +02:00
wmayer
224d17a984 0001221: Add a function that can apply a Placement to a Shape like sh.transformGeometry(sh.Placement.toMatrix()) 2013-08-25 11:32:03 +02:00