mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 04:50:34 +05:00
multidim component check
This commit is contained in:
parent
4f766a4075
commit
e652bae19e
@ -92,8 +92,18 @@ namespace netgen
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
virtual int GetNumMultiDimComponents ()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
void SetMultiDimComponent (int mc)
|
||||
{ multidimcomponent = mc; }
|
||||
{
|
||||
if (mc >= GetNumMultiDimComponents()) mc = GetNumMultiDimComponents()-1;
|
||||
if (mc < 0) mc = 0;
|
||||
multidimcomponent = mc;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -10,6 +10,6 @@ solid cutplane = plane (0.5, 0, 0; -1, 0, 0);
|
||||
solid right = cube and cutplane;
|
||||
solid left = cube and not cutplane;
|
||||
|
||||
tlo right -col=[1,0,0];
|
||||
tlo right -col=[1,0,0] -material=copper;
|
||||
tlo left -col=[0,0,1];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user