mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-27 06:10:34 +05:00
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:
commit
329c4aecd8
@ -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]))
|
||||||
|
Loading…
Reference in New Issue
Block a user