File: gil_mouseover_polygon8.pd

package info (click to toggle)
pd-gil 0.1~20151118-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 200 kB
  • sloc: makefile: 8
file content (175 lines) | stat: -rw-r--r-- 4,519 bytes parent folder | download | duplicates (2)
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
#N canvas 61 24 1083 728 10;
#X obj 48 146 t l l;
#X obj 45 756 outlet cursor-list;
#X obj 48 115 inlet cursor-list;
#X text 413 78 (c)2011 Marian Weger /part of GIL/;
#X obj 415 22 cnv 15 220 50 empty empty HELP? 20 12 0 14 -261234 -258113
0;
#X text 416 49 for further help: see [gil_example];
#X obj 75 169 s \$0-cursor-list;
#X obj 700 31 loadbang;
#X obj 700 51 float \$1;
#X obj 700 71 sel 0;
#X msg 700 94 1000;
#X obj 727 143 s \$0-test;
#X text 246 689 The cursor C is inside a polygon \, if the line segment
CD to a point outside the polygon is crossing an uneven number of sides
of the polygon. This is always true for all kinds of polygons.;
#X obj 165 330 gil_line&line;
#X obj 216 115 inlet BL;
#X obj 216 135 s \$0-BL;
#X obj 276 306 r \$0-test;
#X msg 727 120 \$1 \$1;
#X obj 239 284 r \$0-cursor-list;
#X obj 165 244 r \$0-BL;
#X obj 456 306 r \$0-test;
#X obj 419 284 r \$0-cursor-list;
#X obj 636 306 r \$0-test;
#X obj 599 284 r \$0-cursor-list;
#X obj 816 306 r \$0-test;
#X obj 779 284 r \$0-cursor-list;
#X obj 456 379 +;
#X obj 456 354 t b f;
#X obj 816 379 +;
#X obj 816 354 t b f;
#X obj 816 443 +;
#X obj 816 408 t b f;
#X obj 806 727 mod 2;
#X obj 806 754 outlet mouseover;
#X text 443 186 D is set to (1000 / 1000) by default \, what should
be always outside the polygon.;
#X obj 345 330 gil_line&line;
#X obj 525 330 gil_line&line;
#X obj 705 330 gil_line&line;
#X text 41 27 gil_mouseover_polygon8 <test point position D (optional)>
;
#X text 41 57 calculates \, if the cursor lies inside a given 8-point
polygon.;
#X obj 276 115 inlet BC;
#X obj 276 135 s \$0-BC;
#X obj 336 115 inlet BR;
#X obj 336 135 s \$0-BR;
#X obj 396 115 inlet CR;
#X obj 396 135 s \$0-CR;
#X obj 456 115 inlet TR;
#X obj 456 135 s \$0-TR;
#X obj 516 115 inlet TC;
#X obj 516 135 s \$0-TC;
#X obj 576 115 inlet TL;
#X obj 576 135 s \$0-TL;
#X obj 636 115 inlet CL;
#X obj 636 135 s \$0-CL;
#X obj 95 530 gil_line&line;
#X obj 206 506 r \$0-test;
#X obj 169 484 r \$0-cursor-list;
#X obj 386 506 r \$0-test;
#X obj 349 484 r \$0-cursor-list;
#X obj 566 506 r \$0-test;
#X obj 529 484 r \$0-cursor-list;
#X obj 746 506 r \$0-test;
#X obj 709 484 r \$0-cursor-list;
#X obj 386 579 +;
#X obj 386 554 t b f;
#X obj 736 579 +;
#X obj 746 554 t b f;
#X obj 736 644 +;
#X obj 736 608 t b f;
#X obj 275 530 gil_line&line;
#X obj 455 530 gil_line&line;
#X obj 635 530 gil_line&line;
#X obj 202 264 r \$0-BC;
#X obj 345 244 r \$0-BC;
#X obj 382 264 r \$0-BR;
#X obj 525 244 r \$0-BR;
#X obj 562 264 r \$0-CR;
#X obj 705 244 r \$0-CR;
#X obj 742 264 r \$0-TR;
#X obj 95 444 r \$0-TR;
#X obj 132 464 r \$0-TC;
#X obj 275 444 r \$0-TC;
#X obj 312 464 r \$0-TL;
#X obj 455 444 r \$0-TL;
#X obj 492 464 r \$0-CL;
#X obj 635 444 r \$0-CL;
#X obj 672 464 r \$0-BL;
#X obj 816 664 t b f;
#X obj 806 693 +;
#X connect 0 0 1 0;
#X connect 0 1 6 0;
#X connect 2 0 0 0;
#X connect 7 0 8 0;
#X connect 8 0 9 0;
#X connect 9 0 10 0;
#X connect 9 1 17 0;
#X connect 10 0 17 0;
#X connect 13 2 26 0;
#X connect 14 0 15 0;
#X connect 16 0 13 3;
#X connect 17 0 11 0;
#X connect 18 0 13 2;
#X connect 19 0 13 0;
#X connect 20 0 35 3;
#X connect 21 0 35 2;
#X connect 22 0 36 3;
#X connect 23 0 36 2;
#X connect 24 0 37 3;
#X connect 25 0 37 2;
#X connect 26 0 30 0;
#X connect 27 0 26 0;
#X connect 27 1 26 1;
#X connect 28 0 31 0;
#X connect 29 0 28 0;
#X connect 29 1 28 1;
#X connect 30 0 87 0;
#X connect 31 0 30 0;
#X connect 31 1 30 1;
#X connect 32 0 33 0;
#X connect 35 2 27 0;
#X connect 36 2 28 0;
#X connect 37 2 29 0;
#X connect 40 0 41 0;
#X connect 42 0 43 0;
#X connect 44 0 45 0;
#X connect 46 0 47 0;
#X connect 48 0 49 0;
#X connect 50 0 51 0;
#X connect 52 0 53 0;
#X connect 54 2 63 0;
#X connect 55 0 54 3;
#X connect 56 0 54 2;
#X connect 57 0 69 3;
#X connect 58 0 69 2;
#X connect 59 0 70 3;
#X connect 60 0 70 2;
#X connect 61 0 71 3;
#X connect 62 0 71 2;
#X connect 63 0 67 0;
#X connect 64 0 63 0;
#X connect 64 1 63 1;
#X connect 65 0 68 0;
#X connect 66 0 65 0;
#X connect 66 1 65 1;
#X connect 67 0 88 0;
#X connect 68 0 67 0;
#X connect 68 1 67 1;
#X connect 69 2 64 0;
#X connect 70 2 65 0;
#X connect 71 2 66 0;
#X connect 72 0 13 1;
#X connect 73 0 35 0;
#X connect 74 0 35 1;
#X connect 75 0 36 0;
#X connect 76 0 36 1;
#X connect 77 0 37 0;
#X connect 78 0 37 1;
#X connect 79 0 54 0;
#X connect 80 0 54 1;
#X connect 81 0 69 0;
#X connect 82 0 69 1;
#X connect 83 0 70 0;
#X connect 84 0 70 1;
#X connect 85 0 71 0;
#X connect 86 0 71 1;
#X connect 87 0 88 0;
#X connect 87 1 88 1;
#X connect 88 0 32 0;