Commit Graph

1363 Commits

Author SHA1 Message Date
Uwe
d215b28eba [Part] remove unnecessary Boolean comparisons 2022-06-19 15:19:13 +02:00
wmayer
b7d8d26c52 Part: do not expect a face to be infinite if meshing it has failed
See https://forum.freecadweb.org/viewtopic.php?p=601240#p601240
2022-06-11 13:01:15 +02:00
wmayer
e486f91f6a Part: in BRepOffsetAPI_MakeOffsetFix::MakeWire also consider the generated edges of the vertexes of the input shape 2022-06-08 13:02:07 +02:00
wmayer
714be34961 Part: expose ChFi2d_ChamferAPI to Python 2022-05-29 12:24:32 +02:00
wmayer
4424105b61 Part: expose ChFi2d_AnaFilletAlgo to Python 2022-05-29 11:31:43 +02:00
wmayer
409ae97fc1 Part: move ChFi2d wrappers to own sub-directory 2022-05-29 11:05:55 +02:00
wmayer
9494b643b7 Part: expose ChFi2d_FilletAPI to Python and move to ChFi2d module 2022-05-28 11:10:45 +02:00
wmayer
3de1624d69 Part: expose ChFi2d_FilletAlgo to Python 2022-05-28 10:37:04 +02:00
wmayer
2303fd808a Part: apply OCC's fix for ElSLib::ConeDN and write a unit test 2022-05-27 14:44:35 +02:00
Zheng, Lei
eb79bb0a51 Part: fix ruled surface transformation problem 2022-05-27 03:52:17 +02:00
mwganson
4f300abf32 Part: Link support -- replace TopoShape.getSubShape() with Part::Feature::getTopoShape(obj, elementname, true).getShape() in order to support use of App::Link sublinks. 2022-05-27 03:52:17 +02:00
wmayer
1f170e3d23 Mod: handle removed headers in PCH files for OCC 7.6 2022-05-21 06:28:07 +02:00
wmayer
9bcac09611 Part: std::unique_ptr is provided by the memory header 2022-05-12 17:52:52 +02:00
wmayer
09fffbb54d Part: reorder headers in PreCompiled.h 2022-05-12 17:50:33 +02:00
wmayer
2a5c875c6f Part: LGTM: Multiplication result may overflow 'int' before it is converted to 'unsigned int'. 2022-05-11 10:03:53 +02:00
wmayer
67e963781b Part: in TopoShape::transformGeometry convert OCC exception into Base exception
The conversion is needed because TopoShape::transformGeometry reimplements ComplexGeoData::transformGeometry and is called in the core system
2022-04-29 15:37:44 +02:00
wmayer
a5d7987ad0 Part: handle exception of makeGTransform in _makeTransform 2022-04-29 15:15:51 +02:00
wmayer
2d5c2f0700 Part: adjust TopoShape::transformGShape() to reduce code duplication of TopoShape::makeGTransform
Revert changes of 4e7efd68d42a68 as otherwise there is no way to handle a failure in client code
2022-04-29 14:57:05 +02:00
wmayer
3e6c6974ca Part: handle OCC exception inside TopoShape::makeGTransform
For more details about the problems an unhandled exception will cause see: https://forum.freecadweb.org/viewtopic.php?f=3&t=61000
2022-04-27 18:39:55 +02:00
Zheng, Lei
8bec44934b Fix mixed line endings 2022-04-26 12:52:55 -05:00
marioalexis
5da2eb947a Part: Add functions to replace indentical code structure in TopoShapePyImp.cpp 2022-04-23 16:40:48 +02:00
marioalexis
fcf9deb2fc Part: Clean up code in TopoShapePyImp.cpp 2022-04-23 16:40:48 +02:00
mwganson
00f6f2db17 Part: ruled surface, address issue with link support where link was transformed 2022-04-16 02:57:07 +02:00
mwganson
7f7e33edc3 Part: reversed -- fix so it works with App::Links and App::Parts 2022-04-16 02:55:29 +02:00
marioalexis
3d434ec4b7 Part: Fix getElement method in Python TopoShape class 2022-04-15 17:38:17 +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
821d071d02 [Part] ExtrusionHelper: polish code after today's fixes 2022-04-09 17:03:58 +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
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
Chris Hennes
2ecc125497 Part: PR6497 move return statement to new line 2022-03-29 12:37:00 -05: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
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
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