mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-11 21:50:34 +05:00
SetDomainQuadMeshing for 2d geometry
This commit is contained in:
parent
24782ccc04
commit
f6c94035c5
@ -215,6 +215,20 @@ namespace netgen
|
|||||||
if ( quadmeshing.Size() ) return quadmeshing[domnr-1];
|
if ( quadmeshing.Size() ) return quadmeshing[domnr-1];
|
||||||
else return false;
|
else return false;
|
||||||
}
|
}
|
||||||
|
void SetDomainQuadMeshing ( int domnr, bool quad_meshing )
|
||||||
|
{
|
||||||
|
auto oldsize = quadmeshing.Size();
|
||||||
|
|
||||||
|
if ( oldsize<domnr )
|
||||||
|
{
|
||||||
|
quadmeshing.SetSize(domnr);
|
||||||
|
for(auto dom : IntRange(oldsize, domnr-1))
|
||||||
|
quadmeshing[dom] = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
quadmeshing[domnr-1] = quad_meshing;
|
||||||
|
}
|
||||||
|
|
||||||
bool GetDomainTensorMeshing ( int domnr )
|
bool GetDomainTensorMeshing ( int domnr )
|
||||||
{
|
{
|
||||||
if ( tensormeshing.Size()>=domnr ) return tensormeshing[domnr-1];
|
if ( tensormeshing.Size()>=domnr ) return tensormeshing[domnr-1];
|
||||||
|
Loading…
Reference in New Issue
Block a user