This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

netgen.patch

By: a guest on Jun 23rd, 2011  |  syntax: C++  |  size: 2.03 KB  |  views: 628  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. diff -Naur netgen-4.9.13_orig/libsrc/occ/Partition_Inter3d.cxx netgen-4.9.13/libsrc/occ/Partition_Inter3d.cxx
  2. --- netgen-4.9.13_orig/libsrc/occ/Partition_Inter3d.cxx 2009-08-24 04:12:24.000000000 +0200
  3. +++ netgen-4.9.13/libsrc/occ/Partition_Inter3d.cxx      2011-06-23 12:12:41.974521692 +0200
  4. @@ -243,7 +243,7 @@
  5.        Standard_Integer i, nbExt = anExtPS.NbExt();
  6.        Extrema_POnSurf aPOnSurf;
  7.        for (i = 1; i <= nbExt; ++i )
  8. -        if (anExtPS.Value( i ) <= TolE) {
  9. +        if (anExtPS.SquareDistance( i ) <= TolE) {
  10.            aPOnSurf = anExtPS.Point( i );
  11.            break;
  12.          }
  13. diff -Naur netgen-4.9.13_orig/libsrc/occ/Partition_Loop2d.cxx netgen-4.9.13/libsrc/occ/Partition_Loop2d.cxx
  14. --- netgen-4.9.13_orig/libsrc/occ/Partition_Loop2d.cxx  2009-08-24 04:12:24.000000000 +0200
  15. +++ netgen-4.9.13/libsrc/occ/Partition_Loop2d.cxx       2011-06-21 14:58:56.000000000 +0200
  16. @@ -22,7 +22,7 @@
  17.  #include <BRepAdaptor_Surface.hxx>
  18.  #include <BRepAlgo_AsDes.hxx>
  19.  #include <BRepAlgo_FaceRestrictor.hxx>
  20. -#include <BRepOffset_DataMapOfShapeReal.hxx>
  21. +#include <TopTools_DataMapOfShapeReal.hxx>
  22.  #include <BRepTopAdaptor_FClass2d.hxx>
  23.  #include <BRep_Builder.hxx>
  24.  #include <BRep_Tool.hxx>
  25. @@ -519,7 +519,7 @@
  26.      DC.Initialize( DegEdge, F );
  27.  
  28.    // avoid intersecting twice the same edge
  29. -  BRepOffset_DataMapOfShapeReal EUMap ( EdgesList.Extent() );
  30. +  TopTools_DataMapOfShapeReal EUMap ( EdgesList.Extent() );
  31.  
  32.    Standard_Real U, f, l;
  33.    BRep_Tool::Range (DegEdge, f, l);
  34. diff -Naur netgen-4.9.13_orig/libsrc/occ/Partition_Spliter.cxx netgen-4.9.13/libsrc/occ/Partition_Spliter.cxx
  35. --- netgen-4.9.13_orig/libsrc/occ/Partition_Spliter.cxx 2009-08-24 04:12:24.000000000 +0200
  36. +++ netgen-4.9.13/libsrc/occ/Partition_Spliter.cxx      2011-06-21 15:05:19.000000000 +0200
  37. @@ -1169,7 +1169,7 @@
  38.            for (; j<=nbj && ok; ++j) {
  39.              if (Extrema.IsMin(j)) {
  40.               hasMin = Standard_True;
  41. -              ok = Extrema.Value(j) <= tol;
  42. +              ok = Extrema.SquareDistance(j) <= tol;
  43.             }
  44.            }
  45.          }
clone this paste RAW Paste Data