mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
Meshpnt surfacemesh
This commit is contained in:
parent
ca0201b301
commit
c0d9f3d95b
@ -4864,6 +4864,20 @@ namespace netgen
|
|||||||
for (auto pi : surfelements[sei].PNums())
|
for (auto pi : surfelements[sei].PNums())
|
||||||
box.Add (points[pi]);
|
box.Add (points[pi]);
|
||||||
|
|
||||||
|
auto & el = surfelements[sei];
|
||||||
|
if(el.IsCurved() && curvedelems->IsSurfaceElementCurved(sei))
|
||||||
|
{
|
||||||
|
netgen::Point<2> lami [4] = {netgen::Point<2>(0.5,0), netgen::Point<2>(0,0.5), netgen::Point<2>(0.5,0.5), netgen::Point<2>(1./3,1./3)};
|
||||||
|
for (auto lam : lami)
|
||||||
|
{
|
||||||
|
netgen::Point<3> x;
|
||||||
|
Mat<3,2> Jac;
|
||||||
|
|
||||||
|
curvedelems->CalcSurfaceTransformation(lam,sei,x,Jac);
|
||||||
|
box.Add (x);
|
||||||
|
}
|
||||||
|
box.Scale(1.2);
|
||||||
|
}
|
||||||
elementsearchtree -> Insert (box, sei+1);
|
elementsearchtree -> Insert (box, sei+1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user