mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
fixes for surface element point search
This commit is contained in:
parent
f07a7a95d0
commit
1337786e73
@ -739,9 +739,18 @@ namespace netgen
|
||||
for (int i = 0; i < numind; i++) dummy[i] = indices[i]+1;
|
||||
|
||||
double lam3[3];
|
||||
Point<3> p2d(p[0], p[1], 0);
|
||||
int ind =
|
||||
mesh->GetElementOfPoint(p2d, lam3, &dummy, build_searchtree);
|
||||
int ind;
|
||||
|
||||
if (mesh->GetDimension() == 2)
|
||||
{
|
||||
Point<3> p2d(p[0], p[1], 0);
|
||||
ind = mesh->GetElementOfPoint(p2d, lam3, &dummy, build_searchtree);
|
||||
}
|
||||
else
|
||||
{
|
||||
Point3d p3d(p[0], p[1], p[2]);
|
||||
ind = mesh->GetSurfaceElementOfPoint(p3d, lam3, &dummy, build_searchtree);
|
||||
}
|
||||
|
||||
if (ind > 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user