diff options
author | stephen <stephen@FreeBSD.org> | 2013-05-17 11:24:24 +0800 |
---|---|---|
committer | stephen <stephen@FreeBSD.org> | 2013-05-17 11:24:24 +0800 |
commit | afc5551bbb56a8a02602d565e8983af6e04bde74 (patch) | |
tree | 93c1f672e5ffc32b9184e53467908c8a35dbbf9a /cad/netgen/files | |
parent | 2e1f3d3cc73e3bf9dad350593f736258afe3922c (diff) | |
download | freebsd-ports-gnome-afc5551bbb56a8a02602d565e8983af6e04bde74.tar.gz freebsd-ports-gnome-afc5551bbb56a8a02602d565e8983af6e04bde74.tar.zst freebsd-ports-gnome-afc5551bbb56a8a02602d565e8983af6e04bde74.zip |
- Change option OCC (build with opencascade libraries) to default to on.
- Bump portrevision.
PR: ports/178538
Submitted by: thierry@FreeBSD.org
Diffstat (limited to 'cad/netgen/files')
3 files changed, 39 insertions, 0 deletions
diff --git a/cad/netgen/files/patch-libsrc_occ_Partition_Inter3d.cxx b/cad/netgen/files/patch-libsrc_occ_Partition_Inter3d.cxx new file mode 100644 index 000000000000..cf80b3727f2d --- /dev/null +++ b/cad/netgen/files/patch-libsrc_occ_Partition_Inter3d.cxx @@ -0,0 +1,13 @@ +--- libsrc/occ/Partition_Inter3d.cxx.orig 2012-11-09 16:15:02.000000000 +0100 ++++ libsrc/occ/Partition_Inter3d.cxx 2013-05-12 11:31:45.000000000 +0200 +@@ -243,8 +243,8 @@ + Standard_Integer i, nbExt = anExtPS.NbExt(); + Extrema_POnSurf aPOnSurf; + for (i = 1; i <= nbExt; ++i ) +- if (anExtPS.Value( i ) <= TolE) // V6.3 +- // if (anExtPS.SquareDistance( i ) <= TolE) // V6.5 ++ // if (anExtPS.Value( i ) <= TolE) // V6.3 ++ if (anExtPS.SquareDistance( i ) <= TolE) // V6.5 + { + aPOnSurf = anExtPS.Point( i ); + break; diff --git a/cad/netgen/files/patch-libsrc_occ_Partition_Loop2d.cxx b/cad/netgen/files/patch-libsrc_occ_Partition_Loop2d.cxx new file mode 100644 index 000000000000..a94691f34aa8 --- /dev/null +++ b/cad/netgen/files/patch-libsrc_occ_Partition_Loop2d.cxx @@ -0,0 +1,13 @@ +--- libsrc/occ/Partition_Loop2d.cxx.orig 2012-11-09 16:15:02.000000000 +0100 ++++ libsrc/occ/Partition_Loop2d.cxx 2013-05-12 11:41:09.000000000 +0200 +@@ -52,6 +52,10 @@ + #include <gp_Pnt.hxx> + #include <gp_Pnt2d.hxx> + ++#ifndef PI ++#define PI 3.14159265358979323846 ++#endif ++ + //======================================================================= + //function : Partition_Loop2d + //purpose : diff --git a/cad/netgen/files/patch-libsrc_occ_Partition_Spliter.cxx b/cad/netgen/files/patch-libsrc_occ_Partition_Spliter.cxx new file mode 100644 index 000000000000..fae97ad9fb8d --- /dev/null +++ b/cad/netgen/files/patch-libsrc_occ_Partition_Spliter.cxx @@ -0,0 +1,13 @@ +--- libsrc/occ/Partition_Spliter.cxx.orig 2012-11-09 16:15:02.000000000 +0100 ++++ libsrc/occ/Partition_Spliter.cxx 2013-05-12 11:35:38.000000000 +0200 +@@ -1169,8 +1169,8 @@ + for (; j<=nbj && ok; ++j) { + if (Extrema.IsMin(j)) { + hasMin = Standard_True; +- ok = Extrema.Value(j) <= tol; // V6.3 +- // ok = Extrema.SquareDistance(j) <= tol; // V6.5 ++ // ok = Extrema.Value(j) <= tol; // V6.3 ++ ok = Extrema.SquareDistance(j) <= tol; // V6.5 + } + } + } |