File: shaft.geo

package info (click to toggle)
netgen 6.2.2501%2Bdfsg1-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,980 kB
  • sloc: cpp: 165,197; tcl: 6,310; python: 2,804; sh: 522; makefile: 87
file content (65 lines) | stat: -rw-r--r-- 2,287 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#
## Crankshaft
#
algebraic3d
solid p1 = plane (0, 0, 0; -1, 0, 0)
         and plane (10, 0, 0; 1, 0, 0)
         and
         (     plane (35, 0, 28; 0, -1, 3)
           and plane (35, 0, -28; 0, -1, -3)
           and plane (35, 0, 0; 0, 1, 0)
           and plane (35, -30, 0; 0, -1, 0)
           or cylinder (-10, 0, 0; 20, 0, 0; 30)
           or cylinder (-10, -30, 0; 20, -30, 0; 20)
         );
solid p2 = plane (35, 0, 0; -1, 0, 0)
         and plane (45, 0, 0; 1, 0, 0)
         and
         (     plane (35, 0, 28; 0, -1, 3)
           and plane (35, 0, -28; 0, -1, -3)
           and plane (35, 0, 0; 0, 1, 0)
           and plane (35, -30, 0; 0, -1, 0)
           or cylinder (30, 0, 0; 50, 0, 0; 30)
           or cylinder (30, -30, 0; 50, -30, 0; 20)
         );
solid p3 = plane (80, 0, 0; -1, 0, 0)
         and plane (90, 0, 0; 1, 0, 0)
         and
         (     plane (0, 0, 28; 0, 1, 3)
           and plane (0, 0, -28; 0, 1, -3)
           and plane (0, 0, 0; 0, -1, 0)
           and plane (0, 30, 0; 0, 1, 0)
           or cylinder (70, 0, 0; 100, 0, 0; 30)
           or cylinder (70, 30, 0; 100, 30, 0; 20)
         );
solid p4 = plane (115, 0, 0; -1, 0, 0)
         and plane (125, 0, 0; 1, 0, 0)
         and
         (     plane (35, 0, 28; 0, 1, 3)
           and plane (35, 0, -28; 0, 1, -3)
           and plane (35, 0, 0; 0, -1, 0)
           and plane (35, 30, 0; 0, 1, 0)
           or cylinder (110, 0, 0; 130, 0, 0; 30)
           or cylinder (110, 30, 0;130, 30, 0; 20)
         );
solid sh1 =   cylinder (-50, 0, 0; 10, 0, 0; 15)
            and plane (-40, 0, 0; -1, 0, 0)
            and plane (5, 0, 0; 1, 0, 0);
solid sh2 =   cylinder (30, 0, 0; 90, 0, 0; 15)
            and plane (40, 0, 0; -1, 0, 0)
            and plane (85, 0, 0; 1, 0, 0);
solid sh3 =   cylinder (110, 0, 0; 170, 0, 0; 15)
            and plane (120, 0, 0; -1, 0, 0)
            and plane (165, 0, 0; 1, 0, 0);

solid pl1 = cylinder (0, -30, 0; 50, -30, 0; 10)
            and plane (5, 0, 0; -1, 0, 0)
            and plane (40, 0, 0; 1, 0, 0);
solid pl2 = cylinder (80, 30, 0; 130, 30, 0; 10)
            and plane (85, 0, 0; -1, 0, 0)
            and plane (120, 0, 0; 1, 0, 0);
#
#
solid main = p1 or p2 or p3 or p4 or sh1 or sh2 or sh3 or pl1 or pl2;

tlo main;