Merge branch 'fix_tutorial_circle_on_cube' into 'master'

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

See merge request jschoeberl/netgen!130
This commit is contained in:
Joachim Schöberl 2019-02-11 15:37:53 +00:00
commit 329c4aecd8

View File

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