diff options
author | Niels Horn <niels.horn@gmail.com> | 2011-09-06 16:36:47 -0400 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-09-21 19:48:30 -0300 |
commit | ecea120a481040de40fbe7339bb0b9b53eb74233 (patch) | |
tree | 8079649c70e1dcd7bb8861cab42bfcff93776827 /graphics/FreeCAD/OpenCASCADE65.patch | |
parent | e08da78dca6fd8c68d93bdb7f5caebb6d8f17c0d (diff) | |
download | slackbuilds-ecea120a481040de40fbe7339bb0b9b53eb74233.tar.gz |
graphics/FreeCAD: Updated for version 0.11.3729.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'graphics/FreeCAD/OpenCASCADE65.patch')
-rw-r--r-- | graphics/FreeCAD/OpenCASCADE65.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/graphics/FreeCAD/OpenCASCADE65.patch b/graphics/FreeCAD/OpenCASCADE65.patch new file mode 100644 index 0000000000..8fcc40842e --- /dev/null +++ b/graphics/FreeCAD/OpenCASCADE65.patch @@ -0,0 +1,49 @@ +--- FreeCAD-0.11.3729/src/3rdParty/salomesmesh/src/SMESH/SMESH_MeshEditor.cpp 2010-10-17 05:59:46.000000000 -0200 ++++ FreeCAD-0.11.3729_patched/src/3rdParty/salomesmesh/src/SMESH/SMESH_MeshEditor.cpp 2011-08-10 20:04:59.000000000 -0300 +@@ -2205,8 +2205,8 @@ + if ( projector.IsDone() ) { + double u, v, minVal = DBL_MAX; + for ( int i = projector.NbExt(); i > 0; i-- ) +- if ( projector.Value( i ) < minVal ) { +- minVal = projector.Value( i ); ++ if ( projector.SquareDistance( i ) < minVal ) { ++ minVal = projector.SquareDistance( i ); + projector.Point( i ).Parameter( u, v ); + } + result.SetCoord( u, v ); +--- FreeCAD-0.11.3729/src/3rdParty/salomesmesh/src/SMESH/SMESH_Pattern.cpp 2010-10-17 05:59:46.000000000 -0200 ++++ FreeCAD-0.11.3729_patched/src/3rdParty/salomesmesh/src/SMESH/SMESH_Pattern.cpp 2011-08-10 20:06:21.000000000 -0300 +@@ -436,8 +436,8 @@ + } + double u, v, minVal = DBL_MAX; + for ( int i = theProjectorPS.NbExt(); i > 0; i-- ) +- if ( theProjectorPS.Value( i ) < minVal ) { +- minVal = theProjectorPS.Value( i ); ++ if ( theProjectorPS.SquareDistance( i ) < minVal ) { ++ minVal = theProjectorPS.SquareDistance( i ); + theProjectorPS.Point( i ).Parameter( u, v ); + } + return gp_XY( u, v ); +--- FreeCAD-0.11.3729/src/Mod/Part/App/PrimitiveFeature.cpp 2010-08-27 11:22:14.000000000 -0300 ++++ FreeCAD-0.11.3729_patched/src/Mod/Part/App/PrimitiveFeature.cpp 2011-08-10 20:41:35.000000000 -0300 +@@ -141,9 +141,6 @@ + case BRepBuilderAPI_ParametersOutOfRange:
+ error = "parameters out of range";
+ break;
+- case BRepBuilderAPI_SurfaceNotC2:
+- error = "surface not C2";
+- break;
+ default:
+ error = "unknown error";
+ break;
+--- FreeCAD-0.11.3729/src/Mod/Part/App/TopoShape.cpp 2010-11-14 06:53:08.000000000 -0200 ++++ FreeCAD-0.11.3729_patched/src/Mod/Part/App/TopoShape.cpp 2011-08-10 20:43:03.000000000 -0300 +@@ -139,8 +139,6 @@ + return "Curve projection failed";
+ case BRepBuilderAPI_ParametersOutOfRange:
+ return "Parameters out of range";
+- case BRepBuilderAPI_SurfaceNotC2:
+- return "Surface not C2-continous";
+ default:
+ return "Unknown creation error";
+ }
|