From 4373def54b177205644ddd95666f5005ce0c4b53 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Tue, 8 Oct 2024 17:35:16 +0200 Subject: [PATCH] Don't attempt to curve edges if edgenr < 0 --- libsrc/meshing/basegeom.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/meshing/basegeom.hpp b/libsrc/meshing/basegeom.hpp index 2eb7a203..2951c72d 100644 --- a/libsrc/meshing/basegeom.hpp +++ b/libsrc/meshing/basegeom.hpp @@ -265,7 +265,7 @@ namespace netgen 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); }