From dafe6778ac1b050ad7ee8f2f4088d96b97487331 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 8 Apr 2009 04:09:12 +0000 Subject: since there are lots of conversion possibilities, these need to be more explicity svn path=/trunk/externals/mapping/; revision=10978 --- cartesian.pd | 46 -------------------------------------------- help/cartesian-help.pd | 38 ------------------------------------ help/polar2cartesian-help.pd | 38 ++++++++++++++++++++++++++++++++++++ polar2cartesian.pd | 46 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 84 insertions(+), 84 deletions(-) delete mode 100644 cartesian.pd delete mode 100644 help/cartesian-help.pd create mode 100644 help/polar2cartesian-help.pd create mode 100644 polar2cartesian.pd diff --git a/cartesian.pd b/cartesian.pd deleted file mode 100644 index 9a69df5..0000000 --- a/cartesian.pd +++ /dev/null @@ -1,46 +0,0 @@ -#N canvas 38 370 528 390 10; -#X obj 160 230 zexy/pol2cart; -#X obj 11 36 inlet radius; -#X obj 161 36 inlet angle; -#X text 12 18 input range: 0 to 1; -#X text 161 19 input range: 0 to 1; -#X obj 106 332 outlet x; -#X obj 203 334 outlet y; -#X obj 334 36 inlet z; -#X text 334 19 input range: 0 to 1; -#X obj 300 335 outlet z; -#X obj 128 147 float; -#X obj 205 147 float; -#X obj 315 146 float; -#X obj 128 76 trigger bang float bang; -#X obj 334 76 trigger bang bang float; -#X obj 204 183 mapping2radians; -#X obj 128 183 * 1.41421; -#X obj 204 271 / 2; -#X obj 204 291 + 0.5; -#X obj 106 269 / 2; -#X obj 106 289 + 0.5; -#X text 261 276 TODO: z needs to be properly scaled; -#X text 355 360 released under the GNU GPL; -#X text 8 360 (C) Copyright 2008 Hans-Christoph Steiner -; -#X connect 0 0 19 0; -#X connect 0 1 17 0; -#X connect 1 0 10 0; -#X connect 2 0 13 0; -#X connect 7 0 14 0; -#X connect 10 0 16 0; -#X connect 11 0 15 0; -#X connect 12 0 0 2; -#X connect 13 0 10 0; -#X connect 13 1 11 0; -#X connect 13 2 12 0; -#X connect 14 0 10 0; -#X connect 14 1 11 0; -#X connect 14 2 12 1; -#X connect 15 0 0 1; -#X connect 16 0 0 0; -#X connect 17 0 18 0; -#X connect 18 0 6 0; -#X connect 19 0 20 0; -#X connect 20 0 5 0; diff --git a/help/cartesian-help.pd b/help/cartesian-help.pd deleted file mode 100644 index 0b17fcf..0000000 --- a/help/cartesian-help.pd +++ /dev/null @@ -1,38 +0,0 @@ -#N canvas 161 58 504 451 10; -#X text 61 213 (x \, y \, z); -#X obj 277 122 hsl 128 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144 --1 -1 0 1; -#X obj 218 102 hsl 128 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144 --1 -1 0 1; -#X obj 160 72 hsl 128 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144 --1 -1 0 1; -#X floatatom 164 93 5 0 0 0 - - -; -#X floatatom 221 122 5 0 0 0 - - -; -#X floatatom 282 141 5 0 0 0 - - -; -#X floatatom 214 214 5 0 0 0 - - -; -#X floatatom 157 214 5 0 0 0 - - -; -#X floatatom 274 214 5 0 0 0 - - -; -#X obj 157 181 cartesian; -#X obj 96 356 pddp/pddplink http://en.wikipedia.org/wiki/Cylindrical_coordinate_system -; -#X obj 96 336 pddp/pddplink http://en.wikipedia.org/wiki/Polar_coordinate_system -; -#X obj 96 386 pddp/pddplink http://en.wikipedia.org/wiki/Cartesian_coordinate_system -; -#X text 32 336 2D input:; -#X text 32 356 3D input:; -#X text 44 386 output:; -#X text 51 20 convert polar/cylindrical coordinates to cartesian coordinates -; -#X text 61 158 (r \, phi \, z); -#X obj 5 2 cnv 15 450 20 empty empty cartesian 2 11 1 18 -233017 -66577 -0; -#X connect 1 0 6 0; -#X connect 1 0 10 2; -#X connect 2 0 5 0; -#X connect 2 0 10 1; -#X connect 3 0 4 0; -#X connect 3 0 10 0; -#X connect 10 0 8 0; -#X connect 10 1 7 0; -#X connect 10 2 9 0; diff --git a/help/polar2cartesian-help.pd b/help/polar2cartesian-help.pd new file mode 100644 index 0000000..0b17fcf --- /dev/null +++ b/help/polar2cartesian-help.pd @@ -0,0 +1,38 @@ +#N canvas 161 58 504 451 10; +#X text 61 213 (x \, y \, z); +#X obj 277 122 hsl 128 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144 +-1 -1 0 1; +#X obj 218 102 hsl 128 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144 +-1 -1 0 1; +#X obj 160 72 hsl 128 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144 +-1 -1 0 1; +#X floatatom 164 93 5 0 0 0 - - -; +#X floatatom 221 122 5 0 0 0 - - -; +#X floatatom 282 141 5 0 0 0 - - -; +#X floatatom 214 214 5 0 0 0 - - -; +#X floatatom 157 214 5 0 0 0 - - -; +#X floatatom 274 214 5 0 0 0 - - -; +#X obj 157 181 cartesian; +#X obj 96 356 pddp/pddplink http://en.wikipedia.org/wiki/Cylindrical_coordinate_system +; +#X obj 96 336 pddp/pddplink http://en.wikipedia.org/wiki/Polar_coordinate_system +; +#X obj 96 386 pddp/pddplink http://en.wikipedia.org/wiki/Cartesian_coordinate_system +; +#X text 32 336 2D input:; +#X text 32 356 3D input:; +#X text 44 386 output:; +#X text 51 20 convert polar/cylindrical coordinates to cartesian coordinates +; +#X text 61 158 (r \, phi \, z); +#X obj 5 2 cnv 15 450 20 empty empty cartesian 2 11 1 18 -233017 -66577 +0; +#X connect 1 0 6 0; +#X connect 1 0 10 2; +#X connect 2 0 5 0; +#X connect 2 0 10 1; +#X connect 3 0 4 0; +#X connect 3 0 10 0; +#X connect 10 0 8 0; +#X connect 10 1 7 0; +#X connect 10 2 9 0; diff --git a/polar2cartesian.pd b/polar2cartesian.pd new file mode 100644 index 0000000..9a69df5 --- /dev/null +++ b/polar2cartesian.pd @@ -0,0 +1,46 @@ +#N canvas 38 370 528 390 10; +#X obj 160 230 zexy/pol2cart; +#X obj 11 36 inlet radius; +#X obj 161 36 inlet angle; +#X text 12 18 input range: 0 to 1; +#X text 161 19 input range: 0 to 1; +#X obj 106 332 outlet x; +#X obj 203 334 outlet y; +#X obj 334 36 inlet z; +#X text 334 19 input range: 0 to 1; +#X obj 300 335 outlet z; +#X obj 128 147 float; +#X obj 205 147 float; +#X obj 315 146 float; +#X obj 128 76 trigger bang float bang; +#X obj 334 76 trigger bang bang float; +#X obj 204 183 mapping2radians; +#X obj 128 183 * 1.41421; +#X obj 204 271 / 2; +#X obj 204 291 + 0.5; +#X obj 106 269 / 2; +#X obj 106 289 + 0.5; +#X text 261 276 TODO: z needs to be properly scaled; +#X text 355 360 released under the GNU GPL; +#X text 8 360 (C) Copyright 2008 Hans-Christoph Steiner +; +#X connect 0 0 19 0; +#X connect 0 1 17 0; +#X connect 1 0 10 0; +#X connect 2 0 13 0; +#X connect 7 0 14 0; +#X connect 10 0 16 0; +#X connect 11 0 15 0; +#X connect 12 0 0 2; +#X connect 13 0 10 0; +#X connect 13 1 11 0; +#X connect 13 2 12 0; +#X connect 14 0 10 0; +#X connect 14 1 11 0; +#X connect 14 2 12 1; +#X connect 15 0 0 1; +#X connect 16 0 0 0; +#X connect 17 0 18 0; +#X connect 18 0 6 0; +#X connect 19 0 20 0; +#X connect 20 0 5 0; -- cgit v1.2.1