aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/netgen/downstream-fixes.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/netgen/downstream-fixes.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/netgen/downstream-fixes.patch')
-rw-r--r--vcpkg/ports/netgen/downstream-fixes.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/vcpkg/ports/netgen/downstream-fixes.patch b/vcpkg/ports/netgen/downstream-fixes.patch
new file mode 100644
index 0000000..d570ec8
--- /dev/null
+++ b/vcpkg/ports/netgen/downstream-fixes.patch
@@ -0,0 +1,25 @@
+diff --git a/libsrc/stlgeom/stltopology.hpp b/libsrc/stlgeom/stltopology.hpp
+index 2a3822f70..a14dc5bda 100644
+--- a/libsrc/stlgeom/stltopology.hpp
++++ b/libsrc/stlgeom/stltopology.hpp
+@@ -350,7 +350,7 @@ public:
+ int GetNP() const { return points.Size(); }
+ int AddPoint(const Point<3> & p) { points.Append(p); return points.Size(); }
+ const Point<3> & GetPoint(STLPointId nr) const { return points[nr]; } // .Get(nr); }
++ DLL_HEADER int GetPointNum (const Point<3> & p);
+- int GetPointNum (const Point<3> & p);
+ void SetPoint(STLPointId nr, const Point<3> & p) { points[nr] = p; } // { points.Elem(nr) = p; }
+ auto & GetPoints() const { return points; }
+
+diff --git a/nglib/nglib.cpp b/nglib/nglib.cpp
+index ee25f3814..c8fe35cb2 100644
+--- a/nglib/nglib.cpp
++++ b/nglib/nglib.cpp
+@@ -619,6 +619,7 @@ namespace nglib
+ }
+ */
+ geo->AddEdges(readedges);
++ readedges.SetSize(0);
+ }
+
+ if (geo->GetStatus() == STLTopology::STL_GOOD || geo->GetStatus() == STLTopology::STL_WARNING) return NG_OK;