netgen/tutorials/cubeandring.geo

56 lines
671 B
GLSL
Raw Normal View History

2009-01-13 18:03:21 +05:00
algebraic3d
curve2d testcurve=(8;
-0.5,1;
-0.55,1.5;
2011-05-13 17:56:59 +06:00
# -0.275,1.775;
-0.5,2;
2009-01-13 18:03:21 +05:00
0,2.05;
0.5,2;
0.55,1.5;
0.5,1;
0,0.95;
4;
3,8,1,2;
3,2,3,4;
3,4,5,6;
3,6,7,8);
#curve2d testcurve=(8;
# -0.5,1;
# -0.55,1.5;
# -0.5,2;
# 0,2.05;
# 0.5,2;
# 0.55,1.5;
# 0.5,1;
# 0,0.95;
# 4;
# 3,8,1,2;
# 3,2,3,4;
# 3,4,5,6;
# 3,6,7,8);
curve2d testcurve1=(4;
-0.55,1.5;
0,2.05;
0.55,1.5;
0,0.95;
4;
2,1,2;
2,2,3;
2,3,4;
2,4,1);
solid mytorus = revolution(0,0,0.5;1,0,0.5;testcurve);
#solid mytorus = revolution(0,0,0.5;1,0,0.5;testcurve1);
solid bbb = orthobrick(-4,-4,-4;4,4,0.1);
solid brickandring = mytorus or bbb;
tlo brickandring;
point (-3.8, 3.8, 0.1);