diff options
author | Andrew Savchenko <bircoph@gmail.com> | 2014-03-04 04:44:45 +0400 |
---|---|---|
committer | Andrew Savchenko <bircoph@gmail.com> | 2014-03-04 04:44:45 +0400 |
commit | 8437758223c0f29cda83a5657c91ad60a31be1de (patch) | |
tree | 13f87e3a71777ff71a141e1a8476101a4eb9c463 /media-gfx/freecad/files/freecad-0.12.5284-occ-6.6.patch | |
parent | nip2: version bump (diff) | |
download | bircoph-8437758223c0f29cda83a5657c91ad60a31be1de.tar.gz bircoph-8437758223c0f29cda83a5657c91ad60a31be1de.tar.bz2 bircoph-8437758223c0f29cda83a5657c91ad60a31be1de.zip |
Add new version of freecad and deps
See bugs 457830, 498592.
Diffstat (limited to 'media-gfx/freecad/files/freecad-0.12.5284-occ-6.6.patch')
-rw-r--r-- | media-gfx/freecad/files/freecad-0.12.5284-occ-6.6.patch | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/media-gfx/freecad/files/freecad-0.12.5284-occ-6.6.patch b/media-gfx/freecad/files/freecad-0.12.5284-occ-6.6.patch new file mode 100644 index 0000000..ef04309 --- /dev/null +++ b/media-gfx/freecad/files/freecad-0.12.5284-occ-6.6.patch @@ -0,0 +1,68 @@ +--- a/src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_RadialPrism_3D.cpp 2014-01-05 10:38:36.000000000 +0100 ++++ b/src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_RadialPrism_3D.cpp 2014-01-05 10:39:33.000000000 +0100 +@@ -42,10 +42,14 @@ + + #include "utilities.h" + ++#include <Standard_Version.hxx> + #include <BRepAdaptor_Curve.hxx> + #include <BRepBuilderAPI_MakeEdge.hxx> + #include <BRepTools.hxx> + #include <BRep_Tool.hxx> ++#if OCC_VERSION_HEX >= 0x060600 ++#include <BRepClass3d.hxx> ++#endif + #include <TopExp_Explorer.hxx> + #include <TopoDS.hxx> + #include <TopoDS_Shell.hxx> +@@ -161,7 +165,11 @@ bool StdMeshers_RadialPrism_3D::Compute( + + // get 2 shells + TopoDS_Solid solid = TopoDS::Solid( aShape ); ++#if OCC_VERSION_HEX >= 0x060600 ++ TopoDS_Shell outerShell = BRepClass3d::OuterShell( solid ); ++#else + TopoDS_Shell outerShell = BRepTools::OuterShell( solid ); ++#endif + TopoDS_Shape innerShell; + int nbShells = 0; + for ( TopoDS_Iterator It (solid); It.More(); It.Next(), ++nbShells ) +@@ -401,7 +409,11 @@ bool StdMeshers_RadialPrism_3D::Evaluate + { + // get 2 shells + TopoDS_Solid solid = TopoDS::Solid( aShape ); ++#if OCC_VERSION_HEX >= 0x060600 ++ TopoDS_Shell outerShell = BRepClass3d::OuterShell( solid ); ++#else + TopoDS_Shell outerShell = BRepTools::OuterShell( solid ); ++#endif + TopoDS_Shape innerShell; + int nbShells = 0; + for ( TopoDS_Iterator It (solid); It.More(); It.Next(), ++nbShells ) +--- a/src/Mod/Part/App/TopoShapeSolidPyImp.cpp 2014-01-05 10:38:49.000000000 +0100 ++++ b/src/Mod/Part/App/TopoShapeSolidPyImp.cpp 2014-01-05 10:39:20.000000000 +0100 +@@ -23,8 +23,12 @@ +
+ #include "PreCompiled.h"
+
++#include <Standard_Version.hxx>
+ #include <BRepGProp.hxx>
+ #include <BRepTools.hxx>
++#if OCC_VERSION_HEX >= 0x060600
++#include <BRepClass3d.hxx>
++#endif
+ #include <GProp_GProps.hxx>
+ #include <BRepBuilderAPI_MakeSolid.hxx>
+ #include <TopExp_Explorer.hxx>
+@@ -104,7 +108,11 @@ Py::Object TopoShapeSolidPy::getOuterShe + TopoDS_Shell shell;
+ const TopoDS_Shape& shape = getTopoShapePtr()->_Shape;
+ if (!shape.IsNull() && shape.ShapeType() == TopAbs_SOLID)
++#if OCC_VERSION_HEX >= 0x060600
++ shell = BRepClass3d::OuterShell(TopoDS::Solid(shape));
++#else
+ shell = BRepTools::OuterShell(TopoDS::Solid(shape));
++#endif
+ return Py::Object(new TopoShapeShellPy(new TopoShape(shell)),true);
+ }
+
|