Commit Graph

1190 Commits

Author SHA1 Message Date
wmayer
f1b9e751c8 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
fde42545ba fix various coverity issues 2017-09-15 11:48:38 +02:00
wmayer
729a6d755b disable testIssue2985 2017-09-15 01:03:33 +02:00
wmayer
80bc518981 use code from issue 0002985 for unit test 2017-09-14 16:48:05 +02:00
wmayer
52ef3a5d19 avoid permanently throwing exception by attach engine 2017-09-13 18:42:33 +02:00
wmayer
b9c2b58bd5 don't reverse orientation after converting mesh to shape 2017-09-12 07:59:31 +02:00
DeepSOIC
8bf409eb74 fix warning 2017-09-10 18:32:06 +02:00
DeepSOIC
a22c1206d1 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
8284e60401 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
4277c83b20 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
3a0c3499e5 improve whitespaces 2017-09-09 18:07:46 +02:00
Stefan Tröger
8841fb0805 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
9cda1b53bc Allow interchangable use of link properties and their derivatives 2017-09-09 16:47:07 +02:00
wmayer
9a682a9c53 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
86c31dbcb3 extend ruled surface feature to combine edge with wire as input shapes 2017-09-09 14:20:07 +02:00
wmayer
bbf9560ea3 make sure to avoid duplicate child elements in view provider of ruled surface 2017-09-08 14:52:12 +02:00
wmayer
5ec3339748 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
5242f47473 Port to occ7.2:
+ replace use of StlMesh classes as they have been removed
2017-09-02 00:26:04 +02:00
wmayer
0d617f97d6 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
473ea474ce 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
b16b17ced2 Updated translation strings (and sent to crowdin) 2017-08-31 10:46:55 -03:00
wmayer
3fee9bad3e add methods to get normal and curvature information from surfaces 2017-08-14 12:24:42 +02:00
wmayer
224842bfdc drag and drop for compound objects 2017-08-11 12:53:35 +02:00
wmayer
2a441f5961 for fillet&chamfer copy transparency from base object 2017-08-11 11:56:48 +02:00
wmayer
35db0df253 always update colors after updating shape to get rid of previously set transparency 2017-08-11 10:26:54 +02:00
wmayer
7806f7b300 select all faces in shape builder if this option is activated 2017-08-10 19:10:07 +02:00
wmayer
8443891abe fix possible segfault in modelRefine 2017-07-27 15:13:49 +02:00
wmayer
728757bc38 fix possible segfault in modelRefine 2017-07-27 15:08:14 +02:00
wmayer
240df25d7a fix build failure 2017-07-27 11:06:06 +02:00
wmayer
ff4d613acb + add method trim() to Part.Curve 2017-07-26 22:59:39 +02:00
wmayer
dd7724624b fix makeGeometryCurvePy to return a LinePy for lines instead of a GeometryCurvePy 2017-07-26 10:08:01 +02:00
Eivind Kvedalen
dce81a6038 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
60b90ec8a3 Part::Thickness: This fixes issue #2876 by changing property type for value to include a unit. 2017-07-23 22:14:05 +02:00
wmayer
05fad5e1f0 add missing header file 2017-07-23 20:57:32 +02:00
wmayer
6fd846ee22 handle exception thrown by BRepBuilderAPI_RefineModel 2017-07-23 15:46:57 +02:00
wmayer
95399a035e handle OCC exception in Feature::getPySubObjects and convert to Python exception 2017-07-15 17:16:44 +02:00
Randy
5c056d6887 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
tomate44
ad2aedbfc2 Part GeomBezierCurve implement Save() and Restore() 2017-06-26 22:08:38 +02:00
WandererFan
5d08c560db fix #3094 ShapeString tracking 2017-06-24 21:12:54 -04:00
wmayer
b989dafafa implement object serialization for BSplineCurve class 2017-06-22 22:42:01 +02:00
looooo
f1bdd58c74 py3: fix some simple incompapilities
issue 0000995
2017-06-21 11:25:30 +02:00
wmayer
00037b4d6c fix -Wsign-compare 2017-06-19 12:50:55 +02:00
Jean-Marie Verdun
b9ba167d92 Accelerate VBO rendering (bareleye model goes from about 18fps to 34fps on a Macbook Pro)
Fix crashes related to VBO buffer expansion by reallocating the buffers when needed
2017-06-19 12:40:04 +02:00
wmayer
2e6f223ea3 add comment to source code 2017-06-18 16:23:29 +02:00
Kurt Kremitzki
5c03420052 Remove redundant matrix scale factor multiplication 2017-06-16 00:15:22 +02:00
Abdullah Tahiri
f14532c93f Fix transformation support, so that support is updated with any previous transformation executed 2017-06-16 00:15:22 +02:00
Abdullah Tahiri
1978673b04 Reverting to checkIntersection via boolean operation
The extrema algorithm fails on touching (the manyfold detection fails to return a face, but several vertex, although a face is clearly touching and if bypassed the boolean succeeds), see
https://www.freecadweb.org/tracker/view.php?id=3065

This commit enables the older boolean based intersection check.
2017-06-16 00:15:22 +02:00
wmayer
773ab3e109 improve exception message if proximity function fails 2017-06-15 14:28:10 +02:00
wmayer
729cfd8155 py3: fox compiler warnings
issue 0000995
2017-06-04 00:17:57 +02:00
wmayer
b8fd36edc5 fixes #0002926: Trying to access Part.Shape.children() before doc.recompute() crashes the whole program 2017-06-03 13:46:05 +02:00