vcpkg/ports/netgen/downstream-fixes.patch
Alexander Neumann 763a397e30
[netgen] add new port (#31288)
* [netgen] add new port

* v db

* fix config path for linux

* v db

* add supports

* figure out CI error

* fix the path correctly

* v db

* fix install layout

* v db

* more cleanup

* v db

* fix cmake usage and missing filesystem include

* v db

* disable parallel configure

* v db

* update to latest tag

* v db

* control cmake install loc

* v db

* more install control for mac

* v db

* more mac fixes

* v db

* remove old version

* replace cgns patch

* v db

---------

Co-authored-by: vzhli17 <v-zhli17@microsoft.com>
2024-01-16 15:04:21 -08:00

26 lines
1.0 KiB
Diff

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;