Commit Graph

1207 Commits

Author SHA1 Message Date
Markus Lampert
6bbefe94f5 Added optional name parameter to Part.show() 2017-09-28 23:22:11 +02:00
wmayer
73f14d69b6 fix linker error with gcc 2017-09-28 18:43:48 +02:00
wmayer
29f2d818af add missing header file 2017-09-28 18:34:40 +02:00
wmayer
76264ec1c7 expose BRepFeat_SplitShape to Python 2017-09-28 12:55:24 +02:00
wmayer
3c91e14fcd add typedef Py::TopoShape for convenience, move shape2pyshape to own file 2017-09-28 12:54:28 +02:00
wmayer
3ec30796a6 fixes #0002722: Attached cube doesn't follow support 2017-09-25 22:36:02 +02:00
wmayer
276781fb07 0002642: Can't open saved file (undiscovered bug/s from PDN?) 2017-09-24 23:51:09 +02:00
wmayer
a12913b491 fix some compiler warnings using MSVC 2017-09-24 12:50:56 +02:00
wmayer
2611f072b7 allow to attach a sketch to any kind of planar surfaces, not only planes 2017-09-23 22:46:54 +02:00
wmayer
6f2d59540a reverse solid in case refinement flipped it 2017-09-22 22:13:43 +02:00
wmayer
74cf6a8dad improve readability of attachment error messages 2017-09-21 19:40:37 +02:00
Stefan Tröger
de31528dda PartDesign: Make Base Feature compatible with GeoFeatureGroup. fixes #0003080
The Original BaseFeature implementation had some serious issues with scoped links. It failed completely for e.g. sketches on the BaseFeature as it made a local link to refere to a out of body object. The only solution to make this work correctly is to add a proxy object into the body which is alloed to exactly that, to link outside oof the body. Something like shapebinder.
2017-09-21 11:40:14 +02:00
Peter Lama
76474951d2 Attacher UX enhancements
- New editor for MapMode with button to open attacher dialog
- Hide attachment properties when they are not applicable
- Disable super placement ui in attacher dialog when object is not attached
- Always select used mode in mode list
2017-09-20 19:24:35 +02:00
wmayer
be18a46df9 add convenience methods to directly set/get a placement to/from a shape 2017-09-19 15:43:28 +02:00
wmayer
6ed14ed76a for boolean ops also support to pass single shape and tolerance 2017-09-18 22:16:15 +02:00
wmayer
a07226cea1 use constraint to limit minimum and maximum degree 2017-09-18 12:07:00 +02:00
tomate44
f8585e71c1 add MaxDegree setting to Part.Loft 2017-09-18 12:07:00 +02:00
wmayer
7a17a34dbe make computation of the length of an edge consistent to the computation of a (limited) curve 2017-09-15 19:29:44 +02:00
wmayer
770c9ce095 fix various coverity issues 2017-09-15 11:48:38 +02:00
wmayer
5e417af9c1 disable testIssue2985 2017-09-15 01:03:33 +02:00
wmayer
b65d0f140b use code from issue 0002985 for unit test 2017-09-14 16:48:05 +02:00
wmayer
e34a623aeb avoid permanently throwing exception by attach engine 2017-09-13 18:42:33 +02:00
wmayer
98bf3bdb4a don't reverse orientation after converting mesh to shape 2017-09-12 07:59:31 +02:00
DeepSOIC
e70a1678f8 fix warning 2017-09-10 18:32:06 +02:00
DeepSOIC
0f92c3e559 Part: Attacher3D: new modes - align axes
New attachment modes:
"Align O-Z-X"
"Align O-Z-Y"
"Align O-X-Y"
"Align O-X-Z"
"Align O-Y-Z"
"Align O-Y-X"
They allow to attach a sketch by picking origin point and sketch axes
directions.
2017-09-10 18:31:54 +02:00
DeepSOIC
f8feb18a07 Part: Attacher1D: new attachment mode "Normal to face"
addresses #3175
https://freecadweb.org/tracker/view.php?id=3175

Also, renames Datum Line's "Normal" attachment mode to "Normal to edge"
in Gui, for the name to be specific.
2017-09-10 18:31:25 +02:00
DeepSOIC
576294d30f Part: Attacher: fix normal-to-path vertex usage, #3175
Modes affected:
* NormalToEdge ("Z tangent to edge", "Normal to edge"),
* Tangent

In these attachment modes, if vertex is linked first, the origin was
supposed to be placed on the vertex, but it was placed on the edge
instead, due to a bug. This commit fixes the bug.

Projects will be broken, which use above mentioned attachment modes, and
link Vertex as first reference, and the vertex does not lie on the edge.
To repair a project, edit the corresponding attachments, and swap the
order of references.
2017-09-10 18:31:11 +02:00
wmayer
e260f9dabd improve whitespaces 2017-09-09 18:07:46 +02:00
Stefan Tröger
972b89d0a0 Make PartDesign::Boolean work with new Link structure
This is the first feature that used GeoFeatureGroupExtension and required links to the groups inside as well as to things on the same level. Hence a few modifications to link scopes have been nesseccary.
2017-09-09 16:55:55 +02:00
Stefan Tröger
d0954e6e42 Allow interchangable use of link properties and their derivatives 2017-09-09 16:47:07 +02:00
wmayer
03b63d3a40 make ruled surface working when both curves references the same part and a placement is set 2017-09-09 15:59:38 +02:00
wmayer
af82cacf8c extend ruled surface feature to combine edge with wire as input shapes 2017-09-09 14:20:07 +02:00
wmayer
f27617e63e make sure to avoid duplicate child elements in view provider of ruled surface 2017-09-08 14:52:12 +02:00
wmayer
c9957b8a98 Port to occ7.2:
+ use default constructor of BRepOffsetAPI_MakeOffsetShape since overloaded versions are deprecated
+ use default constructor of BRepOffsetAPI_MakeThickSolid since overloaded versions are deprecated
+ fix small bug in MeshVertex
2017-09-02 12:04:07 +02:00
wmayer
fd5e7768dd Port to occ7.2:
+ replace use of StlMesh classes as they have been removed
2017-09-02 00:26:04 +02:00
wmayer
949c86d364 Port to occ7.2:
+ Standard_Failure::Caught() is now marked as deprecated and should be replaced with standard C++ exception handling
2017-09-01 16:27:46 +02:00
wmayer
5a0b0944c0 Port to occ7.2:
+ replace Quantity_Parameter with Standard_Real is it's marked deprecated
+ include NCollection_Vector as it's needed by STEPCAFControl_Writer
+ remove GC_MakeConicalSurface used for cone and distance as this was never implemented in any earlier occ version and has been removed now
2017-09-01 12:01:50 +02:00
Yorik van Havre
fe3f671b81 Updated translation strings (and sent to crowdin) 2017-08-31 10:46:55 -03:00
wmayer
7aec98ffb6 add methods to get normal and curvature information from surfaces 2017-08-14 12:24:42 +02:00
wmayer
d84c2d3544 drag and drop for compound objects 2017-08-11 12:53:35 +02:00
wmayer
24bdf806e2 for fillet&chamfer copy transparency from base object 2017-08-11 11:56:48 +02:00
wmayer
d896d11fa4 always update colors after updating shape to get rid of previously set transparency 2017-08-11 10:26:54 +02:00
wmayer
8203a35a0f select all faces in shape builder if this option is activated 2017-08-10 19:10:07 +02:00
wmayer
c22320abe1 fix possible segfault in modelRefine 2017-07-27 15:13:49 +02:00
wmayer
7cc9876dfb fix possible segfault in modelRefine 2017-07-27 15:08:14 +02:00
wmayer
df9c81252f fix build failure 2017-07-27 11:06:06 +02:00
wmayer
99e3f95fff + add method trim() to Part.Curve 2017-07-26 22:59:39 +02:00
wmayer
6df816170a fix makeGeometryCurvePy to return a LinePy for lines instead of a GeometryCurvePy 2017-07-26 10:08:01 +02:00
Eivind Kvedalen
55e0e6c00d Part::Mirroring: This fixes issue #2671 by changing the type of Base and Normal to PropertyPosition and PropertyDirection. These two classes handles units better. 2017-07-23 22:14:05 +02:00
Eivind Kvedalen
054a3da107 Part::Thickness: This fixes issue #2876 by changing property type for value to include a unit. 2017-07-23 22:14:05 +02:00