Commit Graph

3011 Commits

Author SHA1 Message Date
marioalexis
3d434ec4b7 Part: Fix getElement method in Python TopoShape class 2022-04-15 17:38:17 +02:00
Yorik van Havre
914069ded4 merged crowdin translations 2022-04-13 13:47:06 +02:00
wmayer
59eabaf9bb Part: [skip ci] fix computing of face normals in TopoShape::getPoints 2022-04-13 12:51:08 +02:00
wmayer
10afc60497 Part: issue #6727: Missing B-Spline in STEP file after Part Offset2D 2022-04-11 14:16:29 +02:00
wmayer
60442c2712 Part: Add function BRepOffsetAPI_MakeOffsetFix::Replace() to replace unwanted curve type with a B-Spline curve 2022-04-11 14:13:36 +02:00
wmayer
ef5d7fa64e Part: fixes #6282: exportStep breaking model 2022-04-11 11:58:57 +02:00
wmayer
cc2f815b4f Part: fixes #6584: Pocket becomes a pad when next object ofter a polar pattern 2022-04-10 23:55:03 +02:00
luz paz
5f9f0357d8 Part: fix typo in App/BRepOffsetAPI_MakeOffsetFix.h [skip ci] 2022-04-10 16:14:48 +02:00
marioalexis
0d6e8eed5a Part: Enable reversed method in Python TopoShape class 2022-04-10 11:59:03 +02:00
Uwe
6a48e68e76 Merge branch 'master' of github.com:FreeCAD/FreeCAD 2022-04-09 17:04:26 +02:00
Uwe
821d071d02 [Part] ExtrusionHelper: polish code after today's fixes 2022-04-09 17:03:58 +02:00
wmayer
0b2c73cf32 Gui: clean-up Selection API
Replace the int of the 'resolve' argument of several functions with a proper enum class.
* This avoids the inconsistencies in client code where often true/false is passed when an int is expected
* This avoids the use of magic numbers like 0, 1, 2 or the undocumented 3
2022-04-09 17:03:43 +02:00
wmayer
2d266a75cd Part: make sure that new wire has same orientation as old wire as otherwise the offset will be negative 2022-04-09 12:46:27 +02:00
wmayer
19144a25dd Part: [skip ci] fix warning: unused parameter 'numEdges' [-Wunused-parameter] 2022-04-09 12:25:51 +02:00
Uwe
ead05ae30e [Part] extend BRepOffsetAPI_MakeOffsetFix and use it for padding
BRepOffsetAPI_MakeOffsetFix provides already a workaround for an OCC bug. To use it for Pad/pocket, only the Init feature has to be added
we take the same implementation like it if for BRepOffsetAPI_MakeOffset
2022-04-09 06:43:46 +02:00
mwganson
929c89f700 Part:Improve support for Links 2022-04-08 17:42:42 +02:00
wmayer
33cdb8c640 Part: implement persistence methods of all geometry classes and raise exception if needed (but no assert(0)) 2022-04-08 11:48:10 +02:00
wmayer
3696d89592 Part: [skip ci] use Py::None() 2022-04-08 10:58:10 +02:00
0penBrain
3c6d6dfea5 [CrashFix] Core: fix crash when dumping content of a Surface 2022-04-08 10:55:31 +02:00
0penBrain
f75f4aaa9c [CrashFix] Core: fix crash when Surface is null 2022-04-08 10:55:31 +02:00
mwganson
483da808a7 Part: CheckGeometry handle non-ascii characters in object names when generating advanced shape content 2022-04-06 05:08:39 +02:00
Syres916
ec2e1115ed [Part] Helix Default Segment Length to 0.0
See https://github.com/FreeCAD/FreeCAD/issues/6559
2022-04-04 00:46:59 +02:00
Yorik van Havre
19feabd072 Merged crowdin translations 2022-03-31 11:41:28 +02:00
Uwe
72248145b8 [Part] repair line endings
for an unknown reason MSVC complained suddenly about the line endings in this file
2022-03-30 23:48:54 +02:00
Chris Hennes
2ecc125497 Part: PR6497 move return statement to new line 2022-03-29 12:37:00 -05:00
Chris Hennes
27c087871e Part: PR4556 Step 3: sort QGridLayout by row-col 2022-03-28 10:43:22 -05:00
Uwe
8a8fe98454 fix some occurrences where size() is misused as Boolean
- as suggested by @wwmayer: 70714eedc9 (r69648152)
2022-03-27 21:38:15 +02:00
wmayer
7dd43210e8 Part: include header with export macros 2022-03-24 21:02:01 +01:00
wmayer
d21a60b294 All: modernize C++11
* replace deprecated headers
2022-03-23 22:44:18 +01:00
wmayer
6d2d45ceb7 Part: modernize C++11
* use nullptr
2022-03-23 19:26:14 +01:00
Yorik van Havre
1563822763 Translations: Merged crowdin strings 2022-03-23 10:37:50 +01:00
Uwe
4c101726a8 [Part] remove unused Xerces 2022-03-20 19:37:20 +01:00
wmayer
585bcb8708 lgtm: [skip ci] FIXME comment
Change FIXME or remove it
2022-03-20 16:51:23 +01:00
Uwe
3e1dbde0cf [Part] remove Python.h from headers
seems not to be necessary anymore
2022-03-20 14:16:55 +01:00
Uwe
d594118855 [Part] fix TaskFaceColors dialog
fixes these issues:
- the actual or chosen color is never displayed in the dialog's color button (it was there but with zero transparency)
- after a color has been set one does not see it (because the changed faces were still highlighted and got the highlight color)
2022-03-20 05:41:34 +01:00
Uwe
12a90b69d3 [Part] TaskFaceColors: remove unused includes
- also some code style fixes by MSVC and sorting
2022-03-19 15:16:09 +01:00
Uwe
2ef424bda8 [Part] Section cut: add missing color handling for the cut faces
- the color was not handled at all and thus was often criticized
2022-03-18 17:05:47 +01:00
Uwe
b6f985c861 [Part] Section Cut: add missing handling of valueChanged
- when the user changed the value without moving the slider (e.g. by clicking), nothing happened
2022-03-18 06:26:12 +01:00
wmayer
40ba077f85 Part: [skip ci] print warning only if eof bit is not set, i.e. ignore it for empty files 2022-03-17 20:24:06 +01:00
wmayer
e4d1ed8366 Base: rename BaseExceptionFreeCADError to PyExc_FC_GeneralError 2022-03-17 14:45:48 +01:00
wmayer
1f12dca2b4 Py: replace BaseExceptionFreeCADError with more suitable exception types 2022-03-17 13:54:23 +01:00
Yorik van Havre
a55ee61840 Merged crowdin translations 2022-03-14 12:21:01 +01:00
wmayer
0f9768fb33 Fix coverity issue:
* CID 332682: Resource leak
* CID 350607: Resource leak
* CID 332677: Resource leak
2022-03-14 11:35:04 +01:00
Uwe
4b3735e4d9 [Part] Section Cut: respect App::Part placement
if object to be cut are within an App::Part container the container placement needs to be respected

- also fix a performance issue
2022-03-14 03:32:09 +01:00
wmayer
15ee1fdd4e Part: Fix several coverity issues:
* CID 350581: Structurally dead code
* CID 350620: Structurally dead code
* CID 350563: Big parameter passed by value
* CID 350552: Uncaught exception
* CID 305193: Uncaught exception
* CID 350556: Uninitialized scalar field
* CID 350579: Uninitialized pointer read
2022-03-13 16:06:40 +01:00
wmayer
5fd93b7d3b Fix several coverity issues:
* CID 350617: Dereference after null check
* CID 350585: Out-of-bounds read
* CID 350624: Resource leak
* CID 332701: Uncaught exception
* CID 350642: Uninitialized scalar field
* CID 350590: Uninitialized scalar field
* CID 350629: Uninitialized scalar variable
* CID 350602: Uninitialized scalar variable
* CID 350564: Uninitialized scalar variable
* CID 350548: Uninitialized scalar variable
2022-03-13 12:12:49 +01:00
Uwe
e4777d16f8 [Part] remove unused variable
MSVC complained about it
2022-03-12 15:44:27 +01:00
mwganson
fc617e1524 Part: 2doffset fix crash by chacking for null shape before adding with builder.Add() 2022-03-12 02:48:22 +01:00
wmayer
ec8353ba99 Part: refactor PropertyPartShape::SaveDocFile and PropertyPartShape::RestoreDocFile
Set exception mask of std::istream::failbit | std::istream::badbit to istream to make sure it raises an exception for corrupted input files.
See: https://forum.freecadweb.org/viewtopic.php?p=536747
2022-03-11 22:06:38 +01:00
marioalexis
7124476d7a Part: Some updates in CompoundFilter.py 2022-03-10 03:07:07 +01:00