mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
only add edge elements if surface is a splinesurface (fixes tutorial
circle on cube)
This commit is contained in:
parent
63398c27cc
commit
bd55e8f7c0
@ -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