Commit Graph

1755 Commits

Author SHA1 Message Date
wmayer
f91eb34355 Part: link TKStepAttr, TKStepBase and TKStep209 2020-10-08 17:24:13 +02:00
wmayer
fd9cdb9de9 Part/Import: [skip ci] disable use of Message_ProgressIndicator for OCC >= 7.5 due to major API changes 2020-10-08 14:48:35 +02:00
wmayer
6badcaced6 Part: [skip ci] work around OCCT bug
For certain OCCT versions in the file ShapeUpgrade_UnifyDomain a method of the class Precision is used but Precision.hxx is not included which can lead to a build failure.
2020-10-06 08:48:53 +02:00
wmayer
9c20ce05ed Part: [skip ci] expose ShapeUpgrade_UnifySameDomain to Python 2020-10-05 16:57:16 +02:00
Yorik van Havre
089ed768cc Merged crowdin translations 2020-09-30 14:37:02 +02:00
Yorik van Havre
2a92a7b5a7 Updated ts files 2020-09-30 13:06:53 +02:00
wmayer
312a4652f6 Part: [skip ci] expose BRepOffsetAPI_MakeFilling to Python 2020-09-30 01:19:30 +02:00
wmayer
39cd29c0d7 Part: [skip ci] include OCC hesder to PCHs, fix compiler warning when trying to delete void pointer 2020-09-28 20:23:33 +02:00
wmayer
00e0e7745c Part: expose GeomPlate algorithm to Python 2020-09-28 18:46:35 +02:00
wmayer
14fa8dafb3 Part: [skip ci] add functions makeFromTrimmedCurve2d and makeFromCurveAdaptor2d 2020-09-28 17:24:48 +02:00
wmayer
218d61768a Part: converter from Adaptor3d_Curve to GeomCurve 2020-09-28 14:53:42 +02:00
wmayer
af8ff5c491 Part: [skip ci] add missing methods to RectangularTrimmedSurface 2020-09-28 13:18:47 +02:00
wmayer
a6c55acdb1 Part: improve Python interface
+ rename getCurve2dFromGeom2d to makeFromCurve2d
+ add function makeFromCurve and makeFromTrimmedCurve like makeFromSurface
+ implement OffsetCurve.BasisCurve
+ fix memory leak in BRepOffsetAPI_MakePipeShellPy
2020-09-27 23:34:45 +02:00
vocx-fc
53e2d35ee9 Part: change command name Part_MakeTube to Part_Tube
This follows the style of the other Part commands which don't
have the word `Make` just the name of the noun, `Box`, `Cylinder`,
`Sphere`, etc.
2020-09-27 13:01:16 +02:00
wmayer
3a8a6aae1b Surface: add command to create surface from sections 2020-09-26 16:32:42 +02:00
wmayer
7616153b3c Part: add method to add a wire (e.g. to create a hole) to a face 2020-09-25 16:00:01 +02:00
wmayer
da6cdb94a1 Part: add method to return a reversed shape 2020-09-25 15:59:08 +02:00
wmayer
92fe662d65 Part: implement BSplineSurface.buildFromNSections based on GeomFill_NSections 2020-09-25 15:07:47 +02:00
wmayer
b44d20dbd8 Part: [skip ci] fix shape builder to create filled face from vertexes 2020-09-25 13:42:39 +02:00
vejmarie
81af54e410 Big update to remove deprecation warning from Qt 5.15.0
That is need on MacOS build as travis log is bigger than 50k lines
which breaks travis rules
And by the way deprecations are real
All file contains the same modification replace 0 to Qt::WindowFlags() when needed
as the class needs to be instantiated

Signed-off-by: vejmarie <jmverdun3@gmail.com>
2020-09-24 12:56:43 +02:00
wmayer
ffa1da617f Python: [skip ci] expose Python types in their corresponding modules 2020-09-21 15:04:26 +02:00
tomate44
43604f284b Part: remove uIso and vIso methods from RectangularTrimmedSurface 2020-09-20 18:25:39 +02:00
tomate44
48bf133ea6 convert Geom_TrimmedCurve to subclass 2020-09-20 18:25:39 +02:00
tomate44
053c918e60 Part: remove uIso and vIso methods. Methods from base class GeomSurface will be used instead 2020-09-20 18:25:39 +02:00
wmayer
be22fb0bc5 Part: do not use local event loop in sweep and thickness panel 2020-09-16 12:14:04 +02:00
donovaly
5abb45f7cf [PD] fix wording for skew prisms
the UI and the property is not consistent. In the dialog we use the term angle upon user feedback while the property still has the name "skew" in it.
I simply forgot this change in my PR that implemented skew prisms.

This is now corrected by this PR.
2020-09-15 22:13:26 +02:00
wmayer
7459f87c88 Part: [skip ci] Coverity: Uninitialized scalar field 2020-09-14 19:30:21 +02:00
bitacovir
1a7fd88bc3 Add SVG icon for Part Reverse Shape command
Part Reverse Shape command does not have icon for the FreeCAD UI (Part WB).

This commit adds SVG file with icon for this command. Also, it makes the necessary changes on Command.cpp and Part.qrc files.

The new SVG icon follows the FreeCAD Artwork Guidelines and were saved as Plain SVG format.

The icon designs keep the style of the existing icons in the Part Workbench:
https://wiki.freecadweb.org/Part_Module

The discussion with the request can be found in the UX/UI Design FreeCAD Forum:
https://forum.freecadweb.org/viewtopic.php?f=34&t=44278&hilit=bitacovir
2020-09-13 10:01:50 +02:00
donovaly
d4519d5aec [PD and Part] add possibility to create skew prisms 2020-09-12 13:28:00 +02:00
Zheng, Lei
18c0d8ab12 Part: fix dangerous static_cast usage in view provider
Because Gui::ViewProviderLink can be used to override the view provider
of any object, it is not safe to assume view provider type without
explicit checking.
2020-09-09 13:16:46 +02:00
tomate44
c493d42bfe SurfaceOfExtrusion: use uIso and vIso methods of parent class 2020-09-09 11:06:21 +02:00
wmayer
fc8eecb8eb Part: [skip ci] make Tube command behave like all other solid creation commands 2020-09-04 12:21:40 +02:00
wmayer
d91508fece Part: [skip ci] set proper icons for Tube feature 2020-09-03 19:18:30 +02:00
wmayer
06d6cc579f Part: [skip ci] add MapMode support to Tube feature, raise an error if inner > outer radius, set icon to command and tree view (use cylinder icons for the time being) 2020-09-03 17:47:25 +02:00
mwganson
df0204466e [CheckGeometry] fix segfault, reformat output with lower case, use try/except to check for runtime python errors and fall back on OCCT method if script failed. 2020-09-03 12:09:38 +02:00
mwganson
a4e38baeb3 [CheckGeometry] add new shapecontent builder instead of OCCT's to correct some errors in OCCT's values and to add for some more advanced information, e.g. volume or area, add new method to Base::Interpreter runStringWithKey() -- allows to run a python script and get a string return value 2020-09-03 12:09:38 +02:00
wmayer
a5899f3892 Part: [skip ci] return std::unique_ptr from Part::makeFromSurface() to avoid memory leaks 2020-08-29 23:56:12 +02:00
tomate44
efb403b8f9 Edge.curveOnSurface : add placement to the output tuple 2020-08-29 22:22:43 +02:00
tomate44
7d3ff633b7 Part.EdgePy : get access to stored Pcurves 2020-08-29 22:22:43 +02:00
tomate44
2ea94bee60 Part.Curve2d : adjust parameters 2020-08-24 16:09:54 +02:00
tomate44
f504152917 Part.Curve2d : fix for toShape sometimes generating wrong BSpline curves 2020-08-24 16:09:54 +02:00
tomate44
bba3d2a322 fix long spiral bug similar to #954. Work around OCC bug #23314 2020-08-22 14:29:07 +02:00
carlopav
9b71dd77b6 Part: grouped ViewProviderExt subdivided view properties 2020-08-21 12:36:46 +02:00
vocx-fc
9c20a1f6be Part: rename to uppercase, Part_ProjectionOnSurface
For consistency with all other commands that start with capital letter.
2020-08-17 16:32:28 +02:00
luz paz
71cf0e64f3 Part: fix typos in source function names and variables
Found via `codespell`
2020-08-17 16:32:28 +02:00
wmayer
9c17fe359b Part: [skip ci] fixes #0004117: Crash during extrusion 2020-08-13 14:23:16 +02:00
wmayer
17cd649341 Part: code simplifications and sorting 2020-08-10 12:43:48 +02:00
donovaly
26ebfbf846 code simplifications and sorting 2020-08-10 11:12:47 +02:00
donovaly
3ce634b126 TaskFaceColors.cpp: correctly end box selection if necessary 2020-08-10 11:12:23 +02:00
donovaly
da08611c47 [Part] FaceColors cleanup
- indicate if one is in the Box Selection mode
- get rid on dialog if one really wants to cancel (no other Task dialog does this and it is annoying)
- fix clumsy dialog layout
2020-08-10 11:11:50 +02:00