mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-14 15:10:34 +05:00
Don't attempt to curve edges if edgenr < 0
This commit is contained in:
parent
82965f63b0
commit
4373def54b
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user