mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-27 14:20:34 +05:00
19 lines
407 B
GLSL
19 lines
407 B
GLSL
|
#
|
||
|
## Cube minus Cylinder
|
||
|
#
|
||
|
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 cyl = cylinder (0.5, 0.5, 0; 0.5, 0.5, 1; 0.03);
|
||
|
|
||
|
# cut off small cylinder from cube:
|
||
|
|
||
|
solid main = cube and not cyl;
|
||
|
|
||
|
tlo main;
|