vcpkg/ports/netgen/downstream-fixes.patch

26 lines
1.0 KiB
Diff

diff --git a/libsrc/stlgeom/stltopology.hpp b/libsrc/stlgeom/stltopology.hpp
index ac16a28..99117b7 100644
--- a/libsrc/stlgeom/stltopology.hpp
+++ b/libsrc/stlgeom/stltopology.hpp
@@ -351,7 +351,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); }
- int GetPointNum (const Point<3> & p);
+ DLL_HEADER 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 c72e067..c8fe35c 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;