only add edge elements if surface is a splinesurface (fixes tutorial

circle on cube)
This commit is contained in:
Christopher Lackner 2019-02-11 15:27:17 +01:00
parent 63398c27cc
commit bd55e8f7c0

View File

@ -1186,7 +1186,7 @@ namespace netgen
{
auto othersolid = geometry.GetTopLevelObject(kk)->GetSolid();
auto othersurf = geometry.GetTopLevelObject(kk)->GetSurface();
if(!othersurf)
if(!othersurf && dynamic_cast<SplineSurface*>(othersurf))
{
if(othersolid->IsIn(edgepoints[0]) &&
othersolid->IsIn(edgepoints[edgepoints.Size()-1]))