File: gil_mouseover_polygon4.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 (103 lines) | stat: -rw-r--r-- 2,803 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
#N canvas 326 76 832 567 10;
#X obj 38 136 t l l;
#X obj 38 463 outlet cursor-list;
#X obj 38 105 inlet cursor-list;
#X text 403 68 (c)2011 Marian Weger /part of GIL/;
#X obj 405 12 cnv 15 220 50 empty empty HELP? 20 12 0 14 -261234 -258113
0;
#X text 406 39 for further help: see [gil_example];
#X obj 65 159 s \$0-cursor-list;
#X obj 670 21 loadbang;
#X obj 670 41 float \$1;
#X obj 670 61 sel 0;
#X msg 670 84 1000;
#X obj 697 133 s \$0-test;
#X text 269 431 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 text 31 47 calculates \, if the cursor lies inside a given 4-point
polygon.;
#X obj 75 320 gil_line&line;
#X obj 206 105 inlet BL;
#X obj 206 125 s \$0-BL;
#X obj 266 105 inlet BR;
#X obj 266 125 s \$0-BR;
#X obj 326 105 inlet TR;
#X obj 326 125 s \$0-TR;
#X obj 386 105 inlet TL;
#X obj 386 125 s \$0-TL;
#X obj 186 296 r \$0-test;
#X msg 697 110 \$1 \$1;
#X obj 149 274 r \$0-cursor-list;
#X obj 75 234 r \$0-BL;
#X obj 112 254 r \$0-BR;
#X obj 255 320 gil_line&line;
#X obj 366 296 r \$0-test;
#X obj 329 274 r \$0-cursor-list;
#X obj 435 320 gil_line&line;
#X obj 546 296 r \$0-test;
#X obj 509 274 r \$0-cursor-list;
#X obj 615 320 gil_line&line;
#X obj 726 296 r \$0-test;
#X obj 689 274 r \$0-cursor-list;
#X obj 255 234 r \$0-BR;
#X obj 292 254 r \$0-TR;
#X obj 435 234 r \$0-TR;
#X obj 472 254 r \$0-TL;
#X obj 615 234 r \$0-TL;
#X obj 652 254 r \$0-BL;
#X obj 356 369 +;
#X obj 366 344 t b f;
#X obj 716 369 +;
#X obj 726 344 t b f;
#X obj 705 423 +;
#X obj 716 398 t b f;
#X obj 705 447 mod 2;
#X obj 705 474 outlet mouseover;
#X text 31 17 gil_mouseover_polygon4 <test point position D (optional)>
;
#X text 433 176 D is set to (1000 / 1000) by default \, what should
be always outside the polygon.;
#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 24 0;
#X connect 10 0 24 0;
#X connect 14 2 43 0;
#X connect 15 0 16 0;
#X connect 17 0 18 0;
#X connect 19 0 20 0;
#X connect 21 0 22 0;
#X connect 23 0 14 3;
#X connect 24 0 11 0;
#X connect 25 0 14 2;
#X connect 26 0 14 0;
#X connect 27 0 14 1;
#X connect 28 2 44 0;
#X connect 29 0 28 3;
#X connect 30 0 28 2;
#X connect 31 2 45 0;
#X connect 32 0 31 3;
#X connect 33 0 31 2;
#X connect 34 2 46 0;
#X connect 35 0 34 3;
#X connect 36 0 34 2;
#X connect 37 0 28 0;
#X connect 38 0 28 1;
#X connect 39 0 31 0;
#X connect 40 0 31 1;
#X connect 41 0 34 0;
#X connect 42 0 34 1;
#X connect 43 0 47 0;
#X connect 44 0 43 0;
#X connect 44 1 43 1;
#X connect 45 0 48 0;
#X connect 46 0 45 0;
#X connect 46 1 45 1;
#X connect 47 0 49 0;
#X connect 48 0 47 0;
#X connect 48 1 47 1;
#X connect 49 0 50 0;