Commit Graph

865 Commits

Author SHA1 Message Date
DeepSOIC
5fca7cf3df PartGui: task Extrude: fix remove selection gate on cancel 2016-09-02 15:05:30 +03:00
DeepSOIC
537b2e3ed5 PartGui: fixes to Revolve and Extrude tasks by @f3nix
fixes layout issues on KDE of Part Extrude and Part Revolve task dialogs
2016-09-02 12:03:21 +03:00
wmayer
bbe755b900 fix compiler warnings 2016-09-01 12:01:22 +02:00
DeepSOIC
0b95653b91 PartGui: Extrude: new task dialog
to account for new functionality of extrusion feature.
2016-09-01 11:46:18 +02:00
DeepSOIC
6fb25b9df5 Part: Extrude: improvements
* split Dir into Dir+Length; added second Length
* support for parametric linked direction: to arbitrary edge, and to
normal
* options: reverse, symmetric
* second taper angle
* changed offset join mode for tapered extrusion on OCCT7
2016-09-01 11:46:18 +02:00
DeepSOIC
1072700b0a PartGui: Revolve: solid checkbox automation
Solid checkbox will be checked by default, if the shape being revolved
is closed wires.
2016-09-01 11:46:18 +02:00
DeepSOIC
f70ef9745c [breaking] Part: Revolve: fix forgotten check for reverseness of axis link
I didn't know BRepAdaptor_Curve does not take shape orientation
(reverseness) into account.

The commit can break existing projects. If revolution feature was
created with axis linked to reversed edge, and angle span is not 360,
the revolution direction will now swap. The chances of this situation
are pretty low, and revolution supports axis linkage for not long yet.
So I hope it won't cause any noticeable trouble.

--DeepSOIC
2016-09-01 11:46:18 +02:00
wmayer
4c9b486954 fix crash when saving a document after aborting a pending transaction 2016-08-31 17:58:55 +02:00
wmayer
24333d02d3 fix Coverity issues 2016-08-22 15:33:54 +02:00
wmayer
17de4e2efa fix Coverity issues 2016-08-22 15:02:18 +02:00
wmayer
c2dd2e2b99 fix Coverity issues 2016-08-21 18:46:40 +02:00
wmayer
fcdaf5405c fix Coverity issues 2016-08-20 15:41:33 +02:00
Yorik van Havre
bacb0867dd Do not get transparency from DiffuseColor if not set per face - fixes #2675 2016-08-16 23:45:17 -03:00
wmayer
26865522ea issue #0002666: Error on Save File 2016-08-12 13:33:48 +02:00
wmayer
0d011e2190 fix various compiler warnings 2016-08-09 13:16:26 +02:00
DeepSOIC
d4e1fab28f Part: use the just-added methods to make properties read-only 2016-08-08 21:48:50 +03:00
DeepSOIC
2ed484c508 PartGui: new Revolve task dialog.
Updated to support Axis link, and Symmetric properties. Layout was
completely changed.
2016-08-08 20:53:03 +03:00
DeepSOIC
61f597814d Part: Revolve: add support for axis link and midplane
Changes on the App side only.
Added two properties:
* AxisLink (accepts an edge - line or arc of circle)
* Symmetric (for distributing the revolution symmetrically in both
directions)
2016-08-08 19:34:27 +03:00
wmayer
e41f01b1e7 fix compiler warnings 2016-08-07 13:38:41 +02:00
DeepSOIC
b2fd98e442 Part: make Fusion and Common able to fuse arrays
If Fusion or Common features get only one argument, and the shape is a
compound, the children of the compound are treated as list of arguments.
2016-08-07 12:15:08 +02:00
Wolfgang E. Sanyer
d1d2f1f811 This commit adds getShape and setShape to TopoShape 2016-08-06 23:42:55 +02:00
wmayer
1848b39992 fix TopoShape::getFacesFromSubelement 2016-08-04 15:22:30 +02:00
wmayer
c294c8bdbd + rename methods in Vector3 class
+ add convenience methods Cross and Dot to Vector3 class
+ fix bug in DistanceToLineSegment in Vector3 class
2016-07-30 15:14:47 +02:00
maito78
db7465b215 Add parameter at given distance method for curves 2016-07-29 22:40:19 +02:00
DeepSOIC
01c48219eb Part: add/update GUI commands
* Updated translation contexts for  Gui commands for JoinFeatures.
* Added Gui commands for Split tools: BooleanFragments, Slice, XOR.
Icons.
2016-07-29 14:20:52 +03:00
DeepSOIC
8c908d4106 Part: add BOPTools package as member of Part Py module 2016-07-29 14:18:01 +03:00
DeepSOIC
ca4299230a Part: add BOPTools package
Containing implementation of new JoinConnect, as well as new splitting
tools: BooleanFragments, Slice and XOR.
2016-07-29 14:16:54 +03:00
DeepSOIC
e2c530a485 Part: deprecate old JoinFeatures code
Commented out all the code not essential for recomputing old
JoinFeatures. The rest is left to support opening old projects.
2016-07-29 14:13:12 +03:00
wmayer
6e6904898c fix build failure with occ 6.9.0 2016-07-17 16:18:12 +02:00
wwmayer
4e08302582 Merge pull request #219 from tomate44/tomate44-BezierSurface-fix
fix VDegree
2016-07-15 13:57:52 +02:00
Mateusz Skowroński
634f3af079 Fix some GCC warnings. 2016-07-15 13:05:37 +02:00
tomate44
2281881f06 fix VDegree
fix for getVDegree that was returning UDegree
2016-07-15 11:27:24 +02:00
wmayer
b6670cde01 + GFA is available since OCC 6.9.0, raise an AttributeError otherwise 2016-07-14 15:16:02 +02:00
wmayer
602053d2d4 + expose OCC version number to Python 2016-07-14 14:11:54 +02:00
WandererFan
0319adeec7 wmayer patch for Win & OCC7 compat 2016-07-11 15:32:16 +02:00
Yorik van Havre
407475b513 Part: Enabled per-face transparency 2016-07-07 12:46:25 -03:00
DeepSOIC
7338ea3e85 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
31aeb84075 Part: TopoShapePy: add generalFuse method 2016-07-04 14:57:50 +03:00
DeepSOIC
2206be773b Part: TopoShape: add generalFuse method (GFA)
OCC's Generaal Fuse Algorithm
2016-07-04 14:55:38 +03:00
wmayer
6ce55d47a5 + fix gcc warning 2016-07-02 14:28:59 +02:00
DeepSOIC
a6f2f2ec22 Part: AttachmentEditor: withdraw code to use Show module 2016-06-20 01:19:02 +03:00
DeepSOIC
9e4a10fee8 Part: AttachmentEditor: fix take_selection argument not working 2016-06-15 21:15:14 -03:00
DeepSOIC
053bc5a68e Part: AttachmentEditor: fix for new SubList Py API 2016-06-15 21:15:14 -03:00
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