From 779b45410e8c76b2984d26823e97310c7601b38f Mon Sep 17 00:00:00 2001 From: Cyrille Henry Date: Fri, 10 Apr 2009 17:52:07 +0000 Subject: initial commit of the puremapping abstraction collection svn path=/trunk/abstractions/nusmuk/; revision=11004 --- puremapping/pmcube_3d.pd | 56 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 puremapping/pmcube_3d.pd (limited to 'puremapping/pmcube_3d.pd') diff --git a/puremapping/pmcube_3d.pd b/puremapping/pmcube_3d.pd new file mode 100644 index 0000000..e2c551b --- /dev/null +++ b/puremapping/pmcube_3d.pd @@ -0,0 +1,56 @@ +#N canvas 146 213 871 573 10; +#X obj 49 58 inlet; +#X obj 79 291 loadbang; +#X obj 39 524 outlet; +#X obj 79 317 pack \$1 \$2; +#X obj 436 59 inlet; +#X msg 436 106 setK lnk \$1; +#X obj 529 60 inlet; +#X msg 529 106 setD lnk \$1; +#X msg 267 296 bang \, get massesPos out \, get massesForces out; +#X obj 39 496 route out; +#X obj 148 525 outlet; +#X obj 148 497 route out; +#X obj 39 472 route massesPosId massesForcesId; +#X obj 159 286 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 +-1 -1; +#X msg 202 257 forceX out \$1 \, forceY out \$2 \, forceZ out \$3; +#X obj 40 450 msd3D; +#X msg 80 343 reset \, mass border 0 1 -1 -1 -1 \, mass border 0 1 +-1 -1 1 \, mass border 0 1 -1 1 -1 \, mass border 0 1 -1 1 1 \, mass +border 0 1 1 -1 -1 \, mass border 0 1 1 -1 1 \, mass border 0 1 1 1 +-1 \, mass border 0 1 1 1 1 \, mass out 1 1 0 0 0 \, link lnk border +out \$1 \$2 \, mass grab 0 1 0 0 0 \, link lgrab out grab 0 0; +#X msg 56 151 posX grab \$1; +#X msg 170 231 setK lgrab \$1; +#X msg 95 175 posY grab \$1; +#X obj 56 94 route grab grab_on force bang; +#X obj 56 127 unpack f f f; +#X msg 136 198 posZ grab \$1; +#X connect 0 0 20 0; +#X connect 1 0 3 0; +#X connect 3 0 16 0; +#X connect 4 0 5 0; +#X connect 5 0 15 0; +#X connect 6 0 7 0; +#X connect 7 0 15 0; +#X connect 8 0 15 0; +#X connect 9 0 2 0; +#X connect 11 0 10 0; +#X connect 12 0 9 0; +#X connect 12 1 11 0; +#X connect 13 0 3 0; +#X connect 14 0 15 0; +#X connect 15 0 12 0; +#X connect 16 0 15 0; +#X connect 17 0 15 0; +#X connect 18 0 15 0; +#X connect 19 0 15 0; +#X connect 20 0 21 0; +#X connect 20 1 18 0; +#X connect 20 2 14 0; +#X connect 20 3 8 0; +#X connect 21 0 17 0; +#X connect 21 1 19 0; +#X connect 21 2 22 0; +#X connect 22 0 15 0; -- cgit v1.2.1