Commit Graph

1691 Commits

Author SHA1 Message Date
wmayer
f5235a8057 cppcoreguidelines-pro-type-union-access
According to https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md using union for type-punning is undefined behaviour.
 Replace it with std::memcpy
2022-06-24 14:29:50 +02:00
Benjamin Alterauge
b7ab1dc895 GeomBSplineCurve: Add interpolate without tangents
Now with description

Periodic selectable
2022-06-24 02:25:55 +02:00
mosfet80
c48a569696 Boost version <=1.60 is never used in freecad 0.20 (#7038)
* Boost version 1.60 is never used in freecad 0.20
2022-06-24 02:20:26 +02:00
marioalexis
eaf01ab0c6 Part: Use PyObject_IsTrue in combination with conditional ternary operator 2022-06-22 19:50:03 -04:00
wmayer
2064658607 Part: add Const attribute to several methods in TopoShapePy 2022-06-22 16:58:56 +02:00
Chris Hennes
abda78ec74 Part: Add ShapeFix.hxx to precompiled header 2022-06-21 12:59:56 -05:00
wmayer
228326d587 Part: expose ShapeFix_FixSmallSolid to Python 2022-06-21 15:47:27 +02:00
wmayer
79ae67e280 Part: expose ShapeFix_FixSmallFace to Python 2022-06-21 15:47:10 +02:00
wmayer
ede51b792a Part: expose ShapeFix_Wireframe to Python 2022-06-21 15:46:51 +02:00
wmayer
4fe95201c5 Part: expose ShapeFix_SplitTool to Python 2022-06-21 15:46:27 +02:00
wmayer
293573ebde Part: expose ShapeFix_WireVertex to Python 2022-06-21 15:46:11 +02:00
wmayer
26bddf2358 Part: expose ShapeFix_FreeBounds to Python 2022-06-21 15:45:55 +02:00
wmayer
7aebfe4551 Part: expose ShapeFix_ShapeTolerance to Python 2022-06-21 15:45:36 +02:00
wmayer
0d85b75893 Part: expose ShapeFix_FaceConnect to Python 2022-06-21 15:45:10 +02:00
wmayer
5338fb4ba1 Part: expose ShapeFix_SplitCommonVertex to Python 2022-06-21 15:44:50 +02:00
wmayer
8157689029 Part: expose ShapeFix_EdgeConnect to Python 2022-06-21 15:44:30 +02:00
wmayer
2463186b80 Part: workaround for missing include in OCC >= 7.5 2022-06-21 15:44:12 +02:00
wmayer
f468c10cb4 Part: fix typos 2022-06-21 15:43:47 +02:00
wmayer
6f521063db Part: expose ShapeFix_Solid to Python 2022-06-21 15:43:31 +02:00
wmayer
75dee7b35c Part: expose ShapeFix_Edge to Python 2022-06-21 15:43:13 +02:00
wmayer
a543bf0783 Part: add convenience function to convert Placement into TopLoc_Location 2022-06-21 15:42:52 +02:00
wmayer
6ce6cfe043 Part: expose ShapeFix_Shape to Python 2022-06-21 15:42:31 +02:00
wmayer
0cd1f118fc Part: expose ShapeFix_Wire to Python 2022-06-21 15:41:44 +02:00
wmayer
2df09ea4ed Part: expose ShapeFix_Shell to Python 2022-06-21 15:39:41 +02:00
wmayer
954b09f793 Part: expose ShapeFix and ShapeFix_Face to Python 2022-06-21 15:39:09 +02:00
wmayer
d04b65056e Part: start to expose ShapeFix framework to Python 2022-06-21 15:34:55 +02:00
Uwe
3060e6197b Revert "remove unused python<3.6 code"
This reverts commit 62d8116bb8af1df8b971bb591611356111a4488c.
2022-06-19 16:23:13 +02:00
andrea
9b640f10cf remove unused python<3.6 code 2022-06-19 15:33:44 +02:00
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