#N canvas 65 61 682 456 10;
#X declare -lib Gem;
#X text 54 30 Class: geometric object;
#X text 475 39 Example:;
#X obj 7 65 cnv 15 450 100 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X obj 8 216 cnv 15 450 180 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X text 9 221 Inlets:;
#X obj 8 176 cnv 15 450 30 empty empty empty 20 12 0 14 #bcbcbc #404040 0;
#X text 17 175 Arguments:;
#X text 452 8 GEM object;
#X text 27 233 Inlet 1: gemlist;
#X text 9 358 Outlets:;
#X text 21 371 Outlet 1: gemlist;
#X obj 469 58 cnv 15 200 295 empty empty empty 20 12 0 14 #dce4fc #404040 0;
#X obj 474 112 cnv 15 190 200 empty empty empty 20 12 0 14 #50fc50 #404040 0;
#X obj 521 319 cnv 15 100 30 empty empty empty 20 12 0 14 #14e814 #404040 0;
#X text 21 138 Each (additional) inlet will accept an X Y Z point which is where the control point will be.;
#X text 28 323 Inlet 2: list: 3(XYZ) float values;
#X text 28 344 Inlet N: list: 3(XYZ) float values;
#X text 52 330 ...;
#X text 33 14 Synopsis: [curve];
#X text 7 69 Description: Renders a bezier-curve;
#X text 63 187 number of control-points of the curve (mandatory);
#X text 27 247 Inlet 1: message: draw [line|linestrip|fill|point|tri|tristrip|trifan|quad|quadstrip];
#X text 22 88 [curve] creates a bezier curve. The initial argument is the number of control-points of the curve. There is no maximum number of control-points.;
#X text 27 306 Inlet 1: message: res <int> : interpolation-resolution(30);
#X text 27 293 Inlet 1: message: width <int> : line-width(1);
#X obj 596 233 cnv 15 65 75 empty empty empty 20 12 0 14 #14e814 #404040 0;
#X msg 479 163 draw line;
#X msg 479 118 draw fill;
#X msg 479 140 draw point;
#X obj 537 64 gemhead;
#X msg 585 115 1 1 0;
#X msg 593 135 1 -1 0;
#X floatatom 605 196 5 0 0 0 - - - 0;
#X msg 603 175 -2 1 0;
#X msg 599 155 -1 -1 -3;
#X msg 479 183 draw linestrip;
#X msg 479 203 draw tri;
#X msg 479 225 draw tristrip;
#X msg 478 248 draw trifan;
#X msg 478 269 draw quad;
#X msg 478 291 draw quadstrip;
#X obj 537 88 rotateXYZ;
#X floatatom 595 65 5 0 0 0 - - - 0;
#X obj 537 326 curve 5, f 12;
#X obj 608 89 loadbang;
#X floatatom 599 237 5 0 10 0 - - - 0;
#X msg 599 253 width \$1;
#X floatatom 600 274 5 0 100 0 - - - 0;
#X msg 600 291 res \$1;
#X msg 605 213 \$1 \$1 \$1;
#N canvas 484 243 450 300 META 0;
#X obj 10 25 declare -lib Gem;
#X text 10 45 DESCRIPTION Renders a bezier-curve;
#X text 10 65 KEYWORDS Gem openGL shape;
#X text 20 85 INLET_0 gemlist draw width res;
#X text 20 105 INLET_1 list;
#X text 20 125 INLET_N list;
#X text 20 145 OUTLET_0 gemlist;
#X text 10 165 AUTHOR IOhannes m zmölnig;
#X text 10 185 LICENSE GPL-2.0-or-later;
#X restore 569 8 pd META;
#X obj 571 357 _gemwin;
#X connect 26 0 43 0;
#X connect 27 0 43 0;
#X connect 28 0 43 0;
#X connect 29 0 41 0;
#X connect 30 0 43 1;
#X connect 31 0 43 2;
#X connect 32 0 49 0;
#X connect 33 0 43 4;
#X connect 34 0 43 3;
#X connect 35 0 43 0;
#X connect 36 0 43 0;
#X connect 37 0 43 0;
#X connect 38 0 43 0;
#X connect 39 0 43 0;
#X connect 40 0 43 0;
#X connect 41 0 43 0;
#X connect 42 0 41 1;
#X connect 42 0 41 3;
#X connect 44 0 30 0;
#X connect 45 0 46 0;
#X connect 46 0 43 0;
#X connect 47 0 48 0;
#X connect 48 0 43 0;
#X connect 49 0 43 5;
