mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 04:50:34 +05:00
geo vertices as pointelements not locked points
This commit is contained in:
parent
36440970fb
commit
9730a383fd
@ -530,15 +530,11 @@ namespace netgen
|
||||
vert2meshpt[vert->GetHash()] = pi;
|
||||
mesh[pi].Singularity(vert->properties.hpref);
|
||||
mesh[pi].SetType(FIXEDPOINT);
|
||||
mesh.AddLockedPoint(pi);
|
||||
|
||||
if(vert->properties.name)
|
||||
{
|
||||
Element0d el(pi, pi);
|
||||
el.name = vert->properties.GetName();
|
||||
mesh.SetCD3Name(pi, el.name);
|
||||
mesh.pointelements.Append (el);
|
||||
}
|
||||
Element0d el(pi, pi);
|
||||
el.name = vert->properties.GetName();
|
||||
mesh.SetCD3Name(pi, el.name);
|
||||
mesh.pointelements.Append (el);
|
||||
}
|
||||
|
||||
for(auto & vert : vertices)
|
||||
|
@ -2352,6 +2352,8 @@ namespace netgen
|
||||
for (int i = 0; i < lockedpoints.Size(); i++)
|
||||
points[lockedpoints[i]].SetType(FIXEDPOINT);
|
||||
|
||||
for(const auto& pointel : pointelements)
|
||||
points[pointel.pnum].SetType(FIXEDPOINT);
|
||||
|
||||
/*
|
||||
for (i = 0; i < openelements.Size(); i++)
|
||||
|
@ -102,7 +102,7 @@ namespace netgen
|
||||
// mark locked/fixed points for each domain TODO: domain bounding box to add only relevant points?
|
||||
for(auto pi : mesh.LockedPoints())
|
||||
for(auto i : Range(ret))
|
||||
ipmap[i][pi] = 1;
|
||||
ipmap[i][pi] = 2;
|
||||
|
||||
// add used points to domain mesh, build point mapping
|
||||
for(auto i : Range(ret))
|
||||
@ -113,7 +113,10 @@ namespace netgen
|
||||
for(auto pi : Range(ipmap[i]))
|
||||
if(ipmap[i][pi])
|
||||
{
|
||||
auto pi_new = m.AddPoint( mesh[pi] );
|
||||
const auto& mp = mesh[pi];
|
||||
auto pi_new = m.AddPoint( mp, mp.GetLayer(), mp.Type() );
|
||||
if(ipmap[i][pi] == 2)
|
||||
mesh.AddLockedPoint(pi_new);
|
||||
ipmap[i][pi] = pi_new;
|
||||
pmap.Append( pi );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user