-
Notifications
You must be signed in to change notification settings - Fork 2
/
of.cylinder-help.pd
67 lines (67 loc) · 1.93 KB
/
of.cylinder-help.pd
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
66
67
#N canvas 422 126 626 472 12;
#X declare -lib ofelia;
#X obj 9 10 cnv 15 600 60 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 27 89 of.draw;
#X msg 75 160 draw fill;
#X floatatom 75 344 5 0 0 2 radius - -;
#X floatatom 123 345 5 0 0 2 height - -;
#X text 419 184 Single parameter;
#X msg 403 136 100 400 200 5 10 2 line 3;
#X floatatom 172 345 5 0 0 2 rres - -;
#X floatatom 220 345 5 0 0 2 hres - -;
#X floatatom 269 345 5 0 0 2 cres - -;
#X obj 462 45 declare -lib ofelia;
#X msg 180 138 orientation 45 0 0;
#X msg 180 116 position 0 100 -100;
#X msg 180 160 scale 1 2 2;
#X obj 27 371 of.cylinder 100 100 10 10 10 line 1;
#X obj 403 310 of.cylinder;
#X msg 423 210 radius 50;
#X text 88 95 style;
#X msg 180 182 lookat 180 120 60;
#X msg 75 138 draw point;
#X msg 75 116 draw line;
#X msg 75 182 draw normal;
#X msg 76 204 stroke 4;
#X msg 76 226 normalsize 40;
#X msg 434 269 debug \$1;
#X obj 434 248 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X text 454 246 Show center axis;
#X text 25 20 Draw a cylinder, f 45;
#X text 179 94 local transformation;
#X msg 81 300 texturemap 0 0 1 1;
#X msg 81 275 texture \$1;
#X obj 81 258 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 518 19 of.window 1;
#X obj 497 21 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X text 24 40 Args: radius \, height \, radiusRes \, heightRes \, capRes
\, drawmode \, strokeweight, f 49;
#X text 402 109 list of all parameters once;
#X connect 1 0 14 0;
#X connect 2 0 14 0;
#X connect 3 0 14 1;
#X connect 4 0 14 2;
#X connect 6 0 15 0;
#X connect 7 0 14 3;
#X connect 8 0 14 4;
#X connect 9 0 14 5;
#X connect 11 0 14 0;
#X connect 12 0 14 0;
#X connect 13 0 14 0;
#X connect 16 0 15 0;
#X connect 18 0 14 0;
#X connect 19 0 14 0;
#X connect 20 0 14 0;
#X connect 21 0 14 0;
#X connect 22 0 14 0;
#X connect 23 0 14 0;
#X connect 24 0 15 0;
#X connect 25 0 24 0;
#X connect 29 0 14 0;
#X connect 30 0 14 0;
#X connect 31 0 30 0;
#X connect 33 0 32 0;