Commit Graph

540 Commits

Author SHA1 Message Date
WandererFan
3b96cbbeb6 wmayer patch for Win & OCC7 compat 2016-07-11 15:32:16 +02:00
DeepSOIC
ca0a640aed Part: TopoShapePy: made Solid constructor accept CompSolid
Part.Solid(shape) now accepts compsolid as input, and creates a solid by
joining the compsolid.

Same done to Part.makeSolid().

+ change exception handling to expose the error message.
2016-07-04 14:58:53 +03:00
DeepSOIC
885fecb1ea Part: TopoShapePy: add generalFuse method 2016-07-04 14:57:50 +03:00
DeepSOIC
c8ebc7f9c2 Part: TopoShape: add generalFuse method (GFA)
OCC's Generaal Fuse Algorithm
2016-07-04 14:55:38 +03:00
DeepSOIC
32f5466df4 Part: AttachmentEditor: withdraw code to use Show module 2016-06-20 01:19:02 +03:00
tomate44
f13f57ef3d Implements more arguments to BSplineCurve.approximate 2016-06-13 14:18:35 +02:00
wmayer
10bb9fa5cc + add overloaded methods of write() and read() to write and read from streams 2016-06-11 14:47:01 +02:00
wmayer
9c7bc073e4 + for importBrep() and exportBrep() allow file names or file objects 2016-06-11 12:38:58 +02:00
wmayer
d3b69112de + revert regression in commit c3f35d9f affecting Part Thickness tool 2016-06-01 09:13:16 +02:00
wmayer
33c9b9d0dd + fix mistake in BSplineCurve.interpolate for Tangents/TangentFlags argument 2016-05-25 14:22:22 +02:00
tomate44
f2071dd1b0 Update BSplineCurve interpolate documentation 2016-05-25 11:50:52 +02:00
wmayer
8cfabdb579 + support of tangents in BSplineCurve.interpolate 2016-05-24 23:15:17 +02:00
tomate44
7582f1799c Update BSplineCurve interpolate documentation
Update BSplineCurve interpolate() documentation for the new "parameters" argument
2016-05-24 18:50:16 +02:00
wmayer
23e97bbb2c + issue #0002560: Part BSplineCurve alternate interpolate method 2016-05-23 14:14:50 +02:00
wwmayer
711213d58e Merge pull request #170 from f3nix/gcc-warnings-2
Fix some GCC warnings.
2016-05-20 22:23:36 +02:00
DeepSOIC
b13e6924e4 Part: make primitives attachable 2016-05-20 00:11:16 +03:00
DeepSOIC
b4102fc3da Attacher: fix defaulting to 3D of AttachableObject 2016-05-20 00:11:16 +03:00
Mateusz Skowroński
f1077748fa Fix some GCC warnings. 2016-05-19 22:22:12 +02:00
DeepSOIC
7f5197695d Attacher: add general purpose editor UI (python)
Added as PartGui.AttachmentEditor, and Part_EditAttachment gui command
2016-05-18 23:05:51 +02:00
wmayer
9316a1511a + fix index error using occ matrix class 2016-05-15 16:12:24 +02:00
wwmayer
6eb173a54b Merge pull request #159 from DeepSOIC/Attacher16
Attacher16 - fixes, and Py interface
2016-05-14 18:23:27 +02:00
wmayer
bca7a1866e + port to OCC 7.0 2016-05-14 16:53:27 +02:00
DeepSOIC
71f70eb855 AttachEngine: fix crash when referenced objects get deleted
... by verifying if the pointers equal to objects contained in all open
documents. Not terribly good, but I can't think of a situation where
doing this search might cause trouble.
2016-05-14 02:14:51 +03:00
DeepSOIC
2d8a7614c5 Attacher: Py: fix docu strings 2016-05-14 00:50:30 +03:00
DeepSOIC
98a472b18d Attacher: Py: renames
AttachEngine attributes and methods:
getShapeType -> getRefTypeOfShape
isShapeOfType -> isFittingRefType
downgradeType -> downgradeRefType
getTypeRank -> deleted (rank exposed through getRefTypeInfo )
getTypeInfo -> getRefTypeInfo
suggestMapModes -> suggestModes
2016-05-13 19:54:44 +03:00
DeepSOIC
632cf142fe Attacher: Py: add GUI strings to getModeInfo and getTypeInfo 2016-05-13 19:54:44 +03:00
DeepSOIC
8b4f1210ed Attacher: Py: extend AttachEngine's interface
* add constructor

attributes:
* Mode
* CompleteModeList
* ImplementedModes
* GetModeInfo
* References
* SuperPlacement
* Reverse
* Parameter
* CompleteRefTypeList

methods:
* getShapeType
* isShapeOfType
* downgradeType
* getTypeRank
* copy
* calculateAttachedPlacement
* suggestMapModes
* readParametersFromFeature
* writeParametersToFeature
2016-05-13 19:54:44 +03:00
DeepSOIC
dcc8926236 Attacher: Py: implement Attacher attribute of AttachableObject 2016-05-13 19:54:44 +03:00
DeepSOIC
7000d551b7 Attacher: Py: create AttachEnginePy
Not very useful at the moment, just created the interface.
2016-05-13 19:54:44 +03:00
DeepSOIC
d4f1ef2f7a Attacher: Py: add interface for changing attacher type
Plus a mechanism to remember attacher type of AttachableObject through
save-restore cycle.
2016-05-13 19:54:44 +03:00
DeepSOIC
fe295b701b Attacher: Py: introduce Py interface of AttachableObject
Small - just the introduction.
Support for Py features based on AttachableObject.
Redirect Part2DObjectPython's father to be AttachableObjectPython.
2016-05-13 19:54:44 +03:00
DeepSOIC
897a66cbb7 Attacher: Py: withdraw positionBySupport from Part2DObject
to be reintroduced later in AttachableObjet Py interface
2016-05-13 19:54:44 +03:00
DeepSOIC
162378220d Attacher: preparations for Py interface of shape type system
+ add getModeByName to AttachEngine
2016-05-13 19:54:44 +03:00
DeepSOIC
53bd9b674b Attacher: fix wrong inertial calculation on solids
was using surface calculation instead of volume...
2016-05-13 19:54:44 +03:00
DeepSOIC
6ffa0c9b37 Attacher: initialize member variables
They got garbage values on creation, as was revealed when testing Py
interface.
2016-05-13 19:54:44 +03:00
DeepSOIC
d21995323e Attacher: change Part2DObject to use Plane attacher by default 2016-05-13 19:54:44 +03:00
DeepSOIC
a41c79cd55 Attacher: AttachableObject should have virtual destructor 2016-05-13 19:54:44 +03:00
DeepSOIC
00d8537b66 Part: duplicate include cleanup
no functional changes
2016-05-13 19:54:44 +03:00
wmayer
c21888af6c + issue #0002542: Part.Wire.makeoffset() doesn't handle circles correctly. 2016-05-12 19:03:23 +02:00
wmayer
1ccab846e2 + apply f3nix:fix-gcc-warnings-1 2016-05-08 12:00:26 +02:00
wmayer
d8ad50d11d + move global function to namespace 2016-05-07 12:21:21 +02:00
DeepSOIC
c1f22cbd8d Attacher: fix wrong superPlacement read-onlyness
It reacted to changes to unrelated properties. Fixed.
2016-05-07 11:24:41 +02:00
DeepSOIC
651be3dcd1 Attacher: make positionBySupport return if attached or not
Needed as reliable way of testing if attachment is working or not.
2016-05-07 11:24:41 +02:00
DeepSOIC
b3e9c6b9a9 Attacher: make Placement read-only when attached
Read-onlyness of Placement and superPlacement properties is now
dynamically controlled by MapMode property value.
2016-05-07 11:24:41 +02:00
DeepSOIC
505ec6a26d Attacher: change suggestion routine interface
When another bit of information was needed to be extracted from mode
suggestion routine, it felt like listMapModes had too many arguments.
So, the arguments have been collapsed into a struct. This triggered a
few namespace-related changes, which lead to massive search-and-replace
changes all over FreeCAD.

So the only functional change carried out is the addition of reference
types readout to info returned by suggestor.
2016-05-07 11:24:41 +02:00
DeepSOIC
9d19bf023a Attacher: new modes: Inertia CS, Inertia axes
Modes added:
3D and plane attachment: Inertia CS
Line attachment: Inertia axes
This commit may serve a good example of how to add new attachment modes.
2016-05-07 11:24:41 +02:00
DeepSOIC
d12141d1fb Attacher: new mode: center of mass (point attacment) 2016-05-07 11:24:41 +02:00
DeepSOIC
2b057ef192 Attacher: for reachable modes, display what's to add
For grayed out modes in list, show what's needed to get to the mode.
Like so:
"Normal to edge (add Vertex)"
2016-05-07 11:24:41 +02:00
DeepSOIC
e6911adc50 Attacher: display modes that can be reached
Attachment mode list used to display only the modes that fit current
references. Now, modes that can be reached by adding more references are
listed too, but grayed out.
2016-05-07 11:24:41 +02:00
blobfish
973dda6f88 Part: ModelRefine: adding basis surface to cylinder. 2016-05-07 09:45:39 +02:00