Commit Graph

57 Commits

Author SHA1 Message Date
tomate44
8b0c58d1b4 Part: Shape.ReflectLines: add 2D/3D, visibility and EdgeType options 2021-04-18 08:26:26 +02:00
flachyjoe
88c27d502e fix some missed lines 2021-03-28 15:36:36 +02:00
flachyjoe
f94b3c3f58 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
c276139f19 Part: [skip ci] add TopoShape::isInfinite 2020-12-19 16:07:00 +01:00
wmayer
da6cdb94a1 Part: add method to return a reversed shape 2020-09-25 15:59:08 +02:00
Zheng, Lei
6da72b9859 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
d3631968ab add method to Python interface to get reflect lines of a shape 2019-02-25 10:50:38 +01:00
wmayer
033fce2685 support face colors when writing in OpenInventor format 2019-01-12 15:06:25 +01: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
tomate44
1f63d6a103 add python binding of OCC defeaturing 2018-07-29 11:50:06 +02:00
Yorik van Havre
c93ff200ca Part: Allow to disable progress bar in brep string reader 2018-07-19 11:57:07 -03:00
tomate44
f3ac51d9b7 add Approximation option to TopoShape section 2018-06-10 20:59:06 +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
tomate44
8461df7ea6 fix some TopoShape documentation 2018-01-21 12:03:53 +01:00
luzpaz
e883cbfdf3 Part: typos 2017-12-25 11:03:11 +01:00
luzpaz
56111a0810 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
2cc09f9493 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
f9bfd77555 add method to get ancestors of a sub-shape 2017-05-11 11:20:21 +02:00
Kunda
99c99006b8 source typo fixes pt4 (only on py3 merged code) 2017-03-02 13:47:21 +01:00
triplus
8ac67eae80 Update BOA common and section documentation 2017-01-05 20:11:18 +01:00
wmayer
dfbd6aa237 cleanup work: overload methods instead of using new method names 2017-01-04 15:39:27 +01:00
triplus
43ad429734 Add Part BOA multiCut, multiCommon and multiSection methods 2017-01-04 14:06:12 +01:00
wmayer
a557836597 methods to fix shape tolerances 2016-11-12 16:14:46 +01:00
wmayer
ad49a96b14 methods to analyze shape tolerances 2016-11-12 15:31:35 +01:00
DeepSOIC
78d32b6405 Part: Py API: add makeOffset2d method to Part.Shape
+ write documentation to makeOffsetShape
2016-09-02 16:26:02 +02:00
DeepSOIC
885fecb1ea Part: TopoShapePy: add generalFuse method 2016-07-04 14:57:50 +03:00
DeepSOIC
61a3997ef2 API: update distToShape built-in docu
It was way too short, and incorrect
2015-11-13 18:13:20 +03:00
wmayer
7f9aa7b4a5 + add method to write/read BREP in binary format 2015-09-07 19:02:56 +02:00
wmayer
13070cbe23 + improve doc string 2015-05-04 15:20:23 +02:00
Sebastian Hoogen
565a875365 add shape.proximity(shape) 2015-03-21 13:29:30 +01:00
Sebastian Hoogen
c2ce8f5eba add TopoShape::multiFuse method
to fuse multiple shapes at once.
2015-02-21 12:35:21 +01:00
Sebastian Hoogen
8ec87dbdf2 rename python classes for shapes and
implememnt __getstate__ and __setstate__ to enable pickling
issue #1948
2015-02-04 17:07:29 +01:00
wmayer
7294271c0c + Allow to get clean copy of a shape from Python 2014-07-30 12:21:22 +02:00
wmayer
f9ff3b250e + fixes #0001544: Python function to retrive direct children of a shape using TopoDS_Iterator 2014-05-14 18:14:06 +02:00
Sebastian Hoogen
3986c887c3 BrepTools::Dump to string 2014-03-02 14:42:41 +01:00
wmayer
5f7ed33c40 + improve doc string (for bug 1257) 2014-03-02 13:12:23 +01:00
Sebastian Hoogen
fe0180d6b3 parse keyword arguments in Part::TopoShapePy::makeOffsetShape 2014-03-02 08:56:08 +01:00
WandererFan
dcc4839968 Add Part.distToShape() 2014-02-17 10:34:13 +01:00
wmayer
ca3b87a719 + Rename methods 2014-01-12 21:42:46 +01:00
wmayer
0f6ccf11bf + Projection of edges and wires 2014-01-12 18:48:55 +01:00
wmayer
3fe1ef1677 0001273: revolve method fails 2013-10-17 16:53:10 +02:00
jriegel
866668ace0 start node index interface 2013-09-12 21:58:11 +02:00
wmayer
1da39d014d 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
wmayer
1ede6a3b93 0001207: Expose Standard_Boolean TopoDS_Shape::IsPartner(const TopoDS_Shape& other) const; to python 2013-08-10 11:36:26 +02:00
wmayer
aee645ee9d Make more consistent method names in TopoShape 2012-11-24 20:45:47 +01:00
wmayer
230ccd7b81 Improve documentation for isInside() 2012-08-27 13:22:45 +02:00
wmayer
013b5f0dce 0000764: Serialize Shape to python String 2012-06-28 18:29:48 +02:00
wmayer
1fb805556b Improve Python doc for makeThickness() 2012-03-17 12:11:29 +01:00