aboutsummaryrefslogtreecommitdiff
path: root/msd3D/01_msd3Dtest.pd
diff options
context:
space:
mode:
Diffstat (limited to 'msd3D/01_msd3Dtest.pd')
-rw-r--r--msd3D/01_msd3Dtest.pd204
1 files changed, 204 insertions, 0 deletions
diff --git a/msd3D/01_msd3Dtest.pd b/msd3D/01_msd3Dtest.pd
new file mode 100644
index 0000000..475f17b
--- /dev/null
+++ b/msd3D/01_msd3Dtest.pd
@@ -0,0 +1,204 @@
+#N canvas 417 69 863 802 10;
+#X obj 32 13 loadbang;
+#X obj 294 522 print msd;
+#X obj 642 647 gemwin;
+#X msg 642 625 0 \, destroy;
+#X obj 532 707 gemhead;
+#X obj 532 730 world_light;
+#X msg 642 562 reset \, create \, lighting 1 \, 1;
+#X obj 102 13 cnv 15 500 270 empty empty empty 20 12 0 14 -262131 -66577
+0;
+#X obj 115 259 t a;
+#X obj 115 18 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262131 -1
+-1;
+#X msg 187 69 reset;
+#X text 153 19 reset;
+#X obj 115 40 t b b b b b;
+#X msg 133 158 50 50;
+#X msg 115 233 link souple \$1 \$2 \$3 \$4 \$5;
+#X obj 30 290 cnv 15 572 80 empty empty empty 20 12 0 14 -261689 -66577
+0;
+#X obj 33 298 gemhead;
+#X obj 33 321 t b;
+#X msg 33 343 bang \, get massesPos \, get linksPos;
+#X text 393 85 CREATION : 3 MASSES \, 2 LINKS;
+#X text 272 311 COMPUTE AND GET ALL MASSES AND LINKS POSITIONS;
+#X obj 30 374 cnv 15 572 110 empty empty empty 20 12 0 14 -262131 -66577
+0;
+#X msg 65 381 setD souple 0.01;
+#X msg 196 382 setK souple 1;
+#X msg 65 401 setD souple 1;
+#X msg 196 402 setK souple 2;
+#X text 331 394 SET RIGIDITY AND VISCOSITY OF LINKS;
+#X text 347 440 ADD FORCE ON ALL MOBILE MASSES;
+#X obj 27 545 cnv 15 400 200 empty empty empty 20 12 0 14 -261689 -66577
+0;
+#N canvas 643 123 605 590 massrender 0;
+#X obj 127 22 inlet;
+#X obj 48 203 translateXYZ;
+#X obj 48 229 sphere 0.1;
+#X obj 127 86 / 12.5;
+#X obj 127 109 - 4;
+#X obj 192 87 / 12.5;
+#X obj 192 110 - 4;
+#X obj 64 114 gemhead;
+#X obj 48 177 separator;
+#X obj 48 153 any;
+#X obj 125 136 t b f;
+#X obj 127 57 unpack f f f;
+#X obj 244 87 / 12.5;
+#X obj 244 110 - 4;
+#X connect 0 0 11 0;
+#X connect 1 0 2 0;
+#X connect 3 0 4 0;
+#X connect 4 0 10 0;
+#X connect 5 0 6 0;
+#X connect 6 0 1 2;
+#X connect 7 0 9 1;
+#X connect 8 0 1 0;
+#X connect 9 0 8 0;
+#X connect 10 0 9 0;
+#X connect 10 1 1 1;
+#X connect 11 0 3 0;
+#X connect 11 1 5 0;
+#X connect 11 2 12 0;
+#X connect 12 0 13 0;
+#X connect 13 0 1 3;
+#X restore 114 589 pd massrender;
+#N canvas 284 227 587 558 linkrender 0;
+#X obj 93 25 inlet;
+#X obj 93 117 / 12.5;
+#X obj 93 140 - 4;
+#X obj 147 118 / 12.5;
+#X obj 147 141 - 4;
+#X obj 35 134 gemhead;
+#X obj 44 222 separator;
+#X obj 44 192 any;
+#X obj 93 164 t b f;
+#X obj 44 265 curve 2;
+#X obj 266 117 / 12.5;
+#X obj 266 140 - 4;
+#X obj 320 118 / 12.5;
+#X obj 320 141 - 4;
+#X obj 93 69 unpack f f f f f f;
+#X obj 197 117 / 12.5;
+#X obj 197 142 - 4;
+#X obj 123 194 pack f f f;
+#X msg 123 217 \$1 \$2 \$3;
+#X obj 371 118 / 12.5;
+#X obj 371 141 - 4;
+#X obj 266 189 pack f f f;
+#X msg 266 212 \$1 \$2 \$3;
+#X connect 0 0 14 0;
+#X connect 1 0 2 0;
+#X connect 2 0 8 0;
+#X connect 3 0 4 0;
+#X connect 4 0 17 1;
+#X connect 5 0 7 1;
+#X connect 6 0 9 0;
+#X connect 7 0 6 0;
+#X connect 8 0 7 0;
+#X connect 8 1 17 0;
+#X connect 10 0 11 0;
+#X connect 11 0 21 0;
+#X connect 12 0 13 0;
+#X connect 13 0 21 1;
+#X connect 14 0 1 0;
+#X connect 14 1 3 0;
+#X connect 14 2 15 0;
+#X connect 14 3 10 0;
+#X connect 14 4 12 0;
+#X connect 14 5 19 0;
+#X connect 15 0 16 0;
+#X connect 16 0 17 2;
+#X connect 17 0 18 0;
+#X connect 18 0 9 1;
+#X connect 19 0 20 0;
+#X connect 20 0 21 2;
+#X connect 21 0 22 0;
+#X connect 22 0 9 2;
+#X restore 33 610 pd linkrender;
+#X obj 33 560 route linksPos massesPos;
+#X text 241 570 DISPLAY MASSES AND LINKS;
+#X text 289 592 WITH GEM;
+#X text 445 561 1 CREATE WINDOW -->;
+#X text 444 624 3 AND DESTROY IT! -->;
+#X text 444 592 2 DRAG THE STRUCTURE WITH THE MOUSE;
+#X msg 115 211 0 1 5 0.5 0.5 \, 1 2 1 0.5 0;
+#N canvas 731 296 450 300 gemmouse 0;
+#X obj 189 77 gemmouse;
+#X obj 189 184 pack f f;
+#X obj 189 218 spigot;
+#X obj 103 244 outlet;
+#X obj 189 131 - 0;
+#X obj 216 131 + 100;
+#X obj 189 108 / 5;
+#X obj 216 108 / -5;
+#X obj 79 51 inlet;
+#X obj 140 75 inlet;
+#X obj 141 120 l;
+#X obj 109 98 t b;
+#X connect 0 0 6 0;
+#X connect 0 1 7 0;
+#X connect 0 2 2 1;
+#X connect 1 0 2 0;
+#X connect 2 0 10 1;
+#X connect 4 0 1 0;
+#X connect 5 0 1 1;
+#X connect 6 0 4 0;
+#X connect 7 0 5 0;
+#X connect 8 0 11 0;
+#X connect 9 0 10 1;
+#X connect 10 0 3 0;
+#X connect 11 0 10 0;
+#X restore 33 672 pd gemmouse;
+#X obj 33 651 gemhead;
+#X msg 33 693 posX fix \$1;
+#X msg 33 714 posY fix \$2;
+#X text 184 675 SET FIXED MASS TO MOUSE POSITION;
+#X obj 33 497 msd3D --------------------------------;
+#X msg 62 440 forceZ mob 200;
+#X msg 188 441 forceZ mob -200;
+#X msg 151 114 100 20 10 0 \, 200 20 25 0;
+#X msg 151 138 mass mob 1 \$1 \$2 \$3 \$4;
+#X msg 133 179 Xmax 100 \, Xmin 0 \, Ymax 100 \, Ymin 0 \, Zmax 70
+\, Zmin 0;
+#X msg 169 89 mass fix 0 100 50 50 50;
+#X connect 0 0 12 0;
+#X connect 3 0 2 0;
+#X connect 4 0 5 0;
+#X connect 6 0 2 0;
+#X connect 8 0 43 0;
+#X connect 9 0 12 0;
+#X connect 10 0 8 0;
+#X connect 12 0 37 0;
+#X connect 12 1 13 0;
+#X connect 12 1 48 0;
+#X connect 12 2 46 0;
+#X connect 12 3 49 0;
+#X connect 12 4 10 0;
+#X connect 13 0 38 1;
+#X connect 14 0 8 0;
+#X connect 16 0 17 0;
+#X connect 17 0 18 0;
+#X connect 18 0 43 0;
+#X connect 22 0 43 0;
+#X connect 23 0 43 0;
+#X connect 24 0 43 0;
+#X connect 25 0 43 0;
+#X connect 31 0 30 0;
+#X connect 31 1 29 0;
+#X connect 37 0 14 0;
+#X connect 38 0 40 0;
+#X connect 38 0 41 0;
+#X connect 39 0 38 0;
+#X connect 40 0 43 0;
+#X connect 41 0 43 0;
+#X connect 43 0 31 0;
+#X connect 43 1 1 0;
+#X connect 44 0 43 0;
+#X connect 45 0 43 0;
+#X connect 46 0 47 0;
+#X connect 47 0 8 0;
+#X connect 48 0 8 0;
+#X connect 49 0 8 0;