mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-13 14:40:35 +05:00
only iterate over outer chart if inner chart searchtree
This commit is contained in:
parent
94671a176a
commit
bef1172b44
@ -829,9 +829,11 @@ STLTrigId STLChart :: ProjectNormal (Point<3> & p3d) const
|
|||||||
double lamtol = 1e-6;
|
double lamtol = 1e-6;
|
||||||
QuadraticFunction3d quadfun(p3d, GetNormal());
|
QuadraticFunction3d quadfun(p3d, GetNormal());
|
||||||
|
|
||||||
|
int starttrig = 1;
|
||||||
if (inner_searchtree)
|
if (inner_searchtree)
|
||||||
{
|
{
|
||||||
NgArray<STLTrigId> trigs;
|
NgArray<STLTrigId> trigs;
|
||||||
|
starttrig = GetNChartT()+1;
|
||||||
Point<2> p2d = Project2d (p3d);
|
Point<2> p2d = Project2d (p3d);
|
||||||
inner_searchtree->GetIntersecting(p2d, p2d, trigs);
|
inner_searchtree->GetIntersecting(p2d, p2d, trigs);
|
||||||
|
|
||||||
@ -858,7 +860,7 @@ STLTrigId STLChart :: ProjectNormal (Point<3> & p3d) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
for (int j = 1; j <= nt; j++)
|
for (int j = starttrig; j <= nt; j++)
|
||||||
{
|
{
|
||||||
STLTrigId i = GetTrig1(j);
|
STLTrigId i = GetTrig1(j);
|
||||||
auto & trig = geometry->GetTriangle(i);
|
auto & trig = geometry->GetTriangle(i);
|
||||||
|
Loading…
Reference in New Issue
Block a user