#N canvas 100 61 710 412 10;
#X declare -lib Gem;
#X text 54 30 Class: geometric object;
#X obj 469 47 cnv 15 235 290 empty empty empty 20 12 0 14 #dce4fc #404040 0;
#X text 475 29 Example:;
#X obj 7 65 cnv 15 450 100 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X obj 8 213 cnv 15 450 180 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X text 11 217 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 521 8 GEM object;
#X text 29 229 Inlet 1: gemlist;
#X text 11 356 Outlets:;
#X text 23 369 Outlet 1: gemlist;
#X obj 472 75 cnv 15 230 195 empty empty empty 20 12 0 14 #14e814 #404040 0;
#X msg 475 88 draw line;
#X msg 475 111 draw fill;
#X obj 543 54 gemhead;
#X floatatom 553 89 5 -5 5 2 size - - 0;
#X text 29 243 Inlet 1: message: draw [line|fill|points];
#X msg 476 132 draw point;
#X text 7 69 Description: Renders a 3d knot;
#X text 34 14 Synopsis: [pqtorusknots];
#X msg 592 88 scale \$1;
#X floatatom 553 110 5 10 256 2 - - - 0;
#X msg 593 109 steps \$1;
#X floatatom 553 130 5 0 20 2 - - - 0;
#X floatatom 553 150 5 0.2 1 2 - - - 0;
#X msg 593 129 facets \$1;
#X msg 593 149 thick \$1;
#X msg 593 171 clump \$1 0.5 1;
#X floatatom 553 173 2 9 20 0 - - - 0;
#X msg 593 225 uvScale 1 1;
#X floatatom 548 199 5 0 0 0 - - - 0;
#X msg 593 197 pq \$1 3;
#X text 15 88 The [pqtorusknot] object renders a 3dimensional knot at the current position with current color.;
#X obj 544 249 pqtorusknots;
#X text 63 186 <none>;
#X text 15 119 You can set various parameters \, like number of facets \, number of clumps \, winding \, ...;
#X text 29 257 Inlet 1: message: steps <f>;
#X text 29 272 Inlet 1: message: facets <f>;
#X text 29 287 Inlet 1: message: thick <f>;
#X text 29 302 Inlet 1: message: clump <#clumps> <clumpOffset> <clumpScale>;
#X text 29 317 Inlet 1: message: pq <xWinding> <yWinding>;
#X text 29 332 Inlet 1: message: ivScale <uScale> <vScale>: for texturing;
#N canvas 484 243 450 300 META 0;
#X obj 10 25 declare -lib Gem;
#X text 10 45 DESCRIPTION Renders a 3d knot;
#X text 10 65 KEYWORDS Gem openGL shape;
#X text 20 85 INLET_0 gemlist draw steps facets thick clump pq ivScale;
#X text 20 105 OUTLET_0 gemlist;
#X text 10 125 AUTHOR IOhannes m zmölnig;
#X text 10 145 LICENSE GPL-2.0-or-later;
#X restore 588 8 pd META;
#X obj 475 277 _gemwin;
#X connect 13 0 34 0;
#X connect 14 0 34 0;
#X connect 15 0 34 0;
#X connect 16 0 21 0;
#X connect 18 0 34 0;
#X connect 21 0 34 0;
#X connect 22 0 23 0;
#X connect 23 0 34 0;
#X connect 24 0 26 0;
#X connect 25 0 27 0;
#X connect 26 0 34 0;
#X connect 27 0 34 0;
#X connect 28 0 34 0;
#X connect 29 0 28 0;
#X connect 30 0 34 0;
#X connect 31 0 32 0;
#X connect 32 0 34 0;
