Commit Graph

822 Commits

Author SHA1 Message Date
tomate44
4749733b60 Implements more arguments to BSplineCurve.approximate 2016-06-13 14:18:35 +02: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
01c4212502 + revert regression in commit 92bf46cc affecting Part Thickness tool 2016-06-01 09:13:16 +02:00
wmayer
285a417402 + fix mistake in BSplineCurve.interpolate for Tangents/TangentFlags argument 2016-05-25 14:22:22 +02:00
tomate44
082793c452 Update BSplineCurve interpolate documentation 2016-05-25 11:50:52 +02:00
wmayer
432709330a + support of tangents in BSplineCurve.interpolate 2016-05-24 23:15:17 +02:00
tomate44
1b7d4e3738 Update BSplineCurve interpolate documentation
Update BSplineCurve interpolate() documentation for the new "parameters" argument
2016-05-24 18:50:16 +02:00
wmayer
a55f676134 + issue #0002560: Part BSplineCurve alternate interpolate method 2016-05-23 14:14:50 +02:00
wwmayer
e6dc897dfe Merge pull request #170 from f3nix/gcc-warnings-2
Fix some GCC warnings.
2016-05-20 22:23:36 +02:00
DeepSOIC
66e8aa32ba Part: make primitives attachable 2016-05-20 00:11:16 +03:00
DeepSOIC
fea4899630 Attacher: fix defaulting to 3D of AttachableObject 2016-05-20 00:11:16 +03:00
Mateusz Skowroński
dfed4adeff Fix some GCC warnings. 2016-05-19 22:22:12 +02:00
wmayer
3feaef3d2e + unify method names 2016-05-18 23:43:58 +02:00
DeepSOIC
1cf0e3de02 Attacher: add command to Part workbench menu
+ add an icon to attachment editor
2016-05-18 23:06:04 +02:00
DeepSOIC
7d7cf5c723 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
270f8bfc87 + fix index error using occ matrix class 2016-05-15 16:12:24 +02:00
blobfish
1285e2ad7f Part: Check Geometry: see following
adding parallel mode for bopargcheck. didn't help speed.
    add time to bopalgo check
    entry for stopOnFirstFaulty. didn't help speed.
    adding new bopalgochecks
2016-05-15 00:06:22 +02:00
DeepSOIC
1199a63b2b Attacher: Py: fix crash on FreeCAD startup 2016-05-14 23:10:38 +03:00
wwmayer
28e90ca08c Merge pull request #159 from DeepSOIC/Attacher16
Attacher16 - fixes, and Py interface
2016-05-14 18:23:27 +02:00
wmayer
cb73d010bb + port to OCC 7.0 2016-05-14 16:53:27 +02:00
DeepSOIC
cb62d49d50 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
a43f6361f3 Attacher: Py: fix docu strings 2016-05-14 00:50:30 +03:00
DeepSOIC
d119d810cd 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
37d5773ee5 Attacher: Py: add GUI strings to getModeInfo and getTypeInfo 2016-05-13 19:54:44 +03:00
DeepSOIC
86707b4cb5 Attacher: Py: GUI resources interface
Routines to get UI strings for attacher: mode names, mode tooltips,
ref.type names
2016-05-13 19:54:44 +03:00
DeepSOIC
c2839fdd09 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
bfad1d9339 Attacher: Py: implement Attacher attribute of AttachableObject 2016-05-13 19:54:44 +03:00
DeepSOIC
7e38a59bac Attacher: Py: create AttachEnginePy
Not very useful at the moment, just created the interface.
2016-05-13 19:54:44 +03:00
DeepSOIC
41bae90d28 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
c040ee7333 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
e7b6ebeb01 Attacher: Py: withdraw positionBySupport from Part2DObject
to be reintroduced later in AttachableObjet Py interface
2016-05-13 19:54:44 +03:00
DeepSOIC
13f56f04c2 Attacher: preparations for Py interface of shape type system
+ add getModeByName to AttachEngine
2016-05-13 19:54:44 +03:00
DeepSOIC
2ee73babcf Attacher: fix wrong inertial calculation on solids
was using surface calculation instead of volume...
2016-05-13 19:54:44 +03:00
DeepSOIC
a4b31297d4 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
3b030a08b2 Attacher: change Part2DObject to use Plane attacher by default 2016-05-13 19:54:44 +03:00
DeepSOIC
add1382d03 Attacher: AttachableObject should have virtual destructor 2016-05-13 19:54:44 +03:00
DeepSOIC
4dbbb1a7ed Part: duplicate include cleanup
no functional changes
2016-05-13 19:54:44 +03:00
wmayer
858b9bf3b9 + issue #0002542: Part.Wire.makeoffset() doesn't handle circles correctly. 2016-05-12 19:03:23 +02:00
wmayer
dc12e8b72b + methods to highlight points, edges or faces of a shape 2016-05-09 23:48:30 +02:00
wmayer
5a2d26ac1b + apply f3nix:fix-gcc-warnings-1 2016-05-08 12:00:26 +02:00
wmayer
2868bbd8c5 + move global function to namespace 2016-05-07 12:21:21 +02:00
DeepSOIC
754a56e61b Attacher: fix wrong superPlacement read-onlyness
It reacted to changes to unrelated properties. Fixed.
2016-05-07 11:24:41 +02:00
DeepSOIC
78bed4bb78 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
4d7f802a13 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
39249581eb 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
22480effeb 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
701eba37be Attacher: new mode: center of mass (point attacment) 2016-05-07 11:24:41 +02:00
DeepSOIC
d1d8746518 Attacher: fix typo in tooltip 2016-05-07 11:24:41 +02:00
DeepSOIC
2c5fccaf5f 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