mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
Merge branch 'fix_occ_secondorder' into 'master'
fix secondorder mesh generation for closed occ edge See merge request jschoeberl/netgen!118
This commit is contained in:
commit
d113da7739
@ -673,13 +673,14 @@ namespace netgen
|
||||
|
||||
if (surfi > 0)
|
||||
{
|
||||
|
||||
double u = gi1.u+secpoint*(gi2.u-gi1.u);
|
||||
double v = gi1.v+secpoint*(gi2.v-gi1.v);
|
||||
|
||||
if (!geometry.FastProject (surfi, hnewp, u, v))
|
||||
|
||||
auto savept = hnewp;
|
||||
if (!geometry.FastProject (surfi, hnewp, u, v) || Dist(hnewp, savept) > Dist(p1,p2))
|
||||
{
|
||||
// cout << "Fast projection to surface fails! Using OCC projection" << endl;
|
||||
// cout << "Fast projection to surface fails! Using OCC projection" << endl;
|
||||
hnewp = savept;
|
||||
geometry.Project (surfi, hnewp);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user