mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 13:30:34 +05:00
16 lines
426 B
GLSL
16 lines
426 B
GLSL
algebraic3d
|
|
solid cube = plane (0, 0, 0; 0, 0, -1)
|
|
and plane (0, 0, 0; 0, -1, 0)
|
|
and plane (0, 0, 0; -1, 0, 0)
|
|
and plane (1, 1, 1; 0, 0, 1)
|
|
and plane (1, 1, 1; 0, 1, 0)
|
|
and plane (1, 1, 1; 1, 0, 0);
|
|
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] -material=copper;
|
|
tlo left -col=[0,0,1];
|
|
|