#N canvas 436 84 754 622 10;
#X declare -lib Gem;
#X text 44 383 default = D1 and D2;
#X text 54 27 Class: geometric object;
#X obj 479 47 cnv 15 250 550 empty empty empty 20 12 0 14 #dce4fc #404040 0;
#X text 485 29 Example:;
#X obj 7 47 cnv 15 450 90 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X obj 7 286 cnv 15 450 260 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X text 18 291 Inlets:;
#X text 26 323 Inlet 1: message: draw [line|fill|point];
#X text 552 8 GEM object;
#X text 26 308 Inlet 1: gemlist;
#X text 8 498 Outlets:;
#X text 19 511 Outlet 1: gemlist;
#X obj 484 141 cnv 15 240 380 empty empty empty 20 12 0 14 #14e814 #404040 0;
#X obj 494 54 gemhead;
#X floatatom 543 84 5 0 0 0 - - - 0;
#X obj 7 146 cnv 15 450 130 empty empty empty 20 12 0 14 #bcbcbc #404040 0;
#X obj 494 111 rotateXYZ 135 0 0;
#X msg 519 166 draw line;
#X msg 528 188 draw fill;
#X msg 537 210 width 1;
#X msg 545 232 width 10;
#X floatatom 568 306 5 0 0 1 D1 - - 0;
#X msg 510 144 draw point;
#X floatatom 578 325 5 0 0 1 D2 - - 0;
#X floatatom 588 344 5 0 0 1 H - - 0;
#X floatatom 598 363 5 0 0 1 Tx - - 0;
#X floatatom 606 382 5 0 0 1 Ty - - 0;
#X floatatom 614 401 5 0 0 1 R1x - - 0;
#X floatatom 623 420 5 0 0 1 R1y - - 0;
#X floatatom 632 439 5 0 0 1 R2x - - 0;
#X floatatom 641 458 5 0 0 1 R2y - - 0;
#X obj 494 496 tube 0.5 0.9 2.5 30;
#X text 33 11 Synopsis: [tube];
#X text 7 51 Description: Renders a complex tube;
#X text 17 148 Arguments:;
#X text 63 165 1 : 1st circle diameter;
#X text 63 181 2 : 2nd circle diameter;
#X text 26 373 Inlet 3: 2nd circle diameter;
#X text 27 359 Inlet 2: 1st circle diameter;
#X text 26 387 Inlet 4: height of the tube;
#X text 26 403 Inlet 5: X translation of 1st circle;
#X text 26 418 Inlet 6: Y translation of 1st circle;
#X text 26 433 Inlet 7: X rotation of 1st circle;
#X text 26 448 Inlet 8: Y rotation of 1st circle;
#X text 26 480 Inlet 10: Y rotation of 2nd circle;
#X text 26 465 Inlet 9: X rotation of 2nd circle;
#X floatatom 598 84 5 0 0 0 - - - 0;
#X floatatom 654 84 5 0 0 0 - - - 0;
#X msg 558 278 numslices \$1;
#X floatatom 558 257 5 0 100 1 - - - 0;
#X text 26 338 Inlet 1: message: numslices <#>;
#X text 7 72 The tube object generates a shape defined by 2 circles. These 2 circles can be rotated and translated independently to create different shapes.;
#X text 63 217 4 : number of segments;
#X text 63 199 3 : height of the tube;
#N canvas 484 243 450 300 META 0;
#X obj 10 25 declare -lib Gem;
#X text 10 45 DESCRIPTION Renders a complex tube;
#X text 10 65 KEYWORDS Gem openGL shape;
#X text 20 85 INLET_0 gemlist draw numslices;
#X text 20 105 INLET_1 float;
#X text 20 125 INLET_2 float;
#X text 20 145 INLET_3 height;
#X text 20 165 INLET_4 float;
#X text 20 185 INLET_5 float;
#X text 20 205 INLET_6 float;
#X text 20 225 INLET_7 float;
#X text 20 245 INLET_8 float;
#X text 20 265 OUTLET_0 gemlist;
#X text 10 285 AUTHOR IOhannes m zmölnig;
#X text 10 305 LICENSE GPL-2.0-or-later;
#X restore 628 8 pd META;
#X obj 513 527 _gemwin \; 0 \; 0 \; lighting 1;
#X obj 622 530 gemhead;
#X obj 622 553 world_light;
#X connect 13 0 16 0;
#X connect 14 0 16 1;
#X connect 16 0 31 0;
#X connect 17 0 31 0;
#X connect 18 0 31 0;
#X connect 19 0 31 0;
#X connect 20 0 31 0;
#X connect 21 0 31 1;
#X connect 22 0 31 0;
#X connect 23 0 31 2;
#X connect 24 0 31 3;
#X connect 25 0 31 4;
#X connect 26 0 31 5;
#X connect 27 0 31 6;
#X connect 28 0 31 7;
#X connect 29 0 31 8;
#X connect 30 0 31 9;
#X connect 46 0 16 2;
#X connect 47 0 16 3;
#X connect 48 0 31 0;
#X connect 49 0 48 0;
#X connect 56 0 57 0;
