Don't attempt to curve edges if edgenr < 0

This commit is contained in:
Matthias Hochsteger 2024-10-08 17:35:16 +02:00
parent 82965f63b0
commit 4373def54b

View File

@ -265,7 +265,7 @@ namespace netgen
virtual void ProjectPointEdge (int surfind, int surfind2, Point<3> & p, EdgePointGeomInfo* gi = nullptr) const virtual void ProjectPointEdge (int surfind, int surfind2, Point<3> & p, EdgePointGeomInfo* gi = nullptr) const
{ {
if(gi && gi->edgenr < edges.Size()) if(gi && gi->edgenr < edges.Size() && gi->edgenr >= 0)
edges[gi->edgenr]->ProjectPoint(p, gi); edges[gi->edgenr]->ProjectPoint(p, gi);
} }