#N canvas 67 280 714 379 10;
#X declare -lib Gem;
#X text 54 30 Class: geometric object;
#X obj 479 47 cnv 15 230 280 empty empty empty 20 12 0 14 #dce4fc #404040 0;
#X obj 544 264 cnv 15 100 60 empty empty empty 20 12 0 14 #bcbcbc #404040 0;
#X text 480 31 Example:;
#X obj 7 61 cnv 15 450 120 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X obj 8 226 cnv 15 450 140 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X text 9 226 Inlets:;
#X obj 8 186 cnv 15 450 30 empty empty empty 20 12 0 14 #bcbcbc #404040 0;
#X text 17 185 Arguments:;
#X text 27 252 Inlet 1: message: draw [line|fill|point];
#X text 27 307 Inlet 2: float: size;
#X text 512 8 GEM object;
#X text 27 238 Inlet 1: gemlist;
#X text 9 334 Outlets:;
#X text 21 347 Outlet 1: gemlist;
#X obj 534 135 cnv 15 175 120 empty empty empty 20 12 0 14 #14e814 #404040 0;
#X msg 483 56 draw line;
#X msg 483 76 draw fill;
#X msg 483 95 draw point;
#X obj 553 54 gemhead;
#X floatatom 571 194 5 0 0 1 size - - 0;
#X floatatom 616 231 3 0 0 2 segments - - 0;
#X text 27 318 Inlet 3: int: number of segments;
#X text 33 14 Synopsis: [sphere3d];
#X text 7 65 Description: Renders a sphere3d.;
#X text 14 82 The sphere3d object renders a segmented sphere3d at the current position with current color. The look of the sphere3d can be changed with the draw message \, its size can be changed via the second inlet.;
#X text 63 197 size of the sphere3d;
#X floatatom 488 150 5 0 0 0 - - - 0;
#X floatatom 486 179 5 0 0 0 - - - 0;
#X obj 479 230 r \$0-s3d;
#X obj 483 117 s \$0-s3d;
#X text 27 266 Inlet 1: message: setCartesian <i> <j> <x> <y> <z>;
#X text 27 279 Inlet 1: message: setSpherical <i> <j> <r> <phi> <theta>;
#X msg 535 151 setCartesian 2 3 \$1 1 0;
#X obj 552 114 rotateXYZ;
#X floatatom 578 93 5 0 0 0 - - - 0;
#X text 505 333 see also;
#X obj 575 334 sphere;
#X msg 548 174 setSpherical 2 3 \$1 45 45;
#X obj 481 287 s \$0-s3d;
#X msg 481 266 print;
#X obj 553 229 sphere3d;
#X text 14 139 Unlike [sphere] \, you can modify (dislocate) each point at the sphere via the setCartesian and setSpherical messages (for cartesian and spherical (in deg) coordinates resp.);
#X text 27 292 Inlet 1: message: print;
#N canvas 484 243 450 300 META 0;
#X obj 10 25 declare -lib Gem;
#X text 10 45 DESCRIPTION Renders a sphere3d.;
#X text 10 65 KEYWORDS Gem openGL shape;
#X text 20 85 INLET_0 gemlist draw setCartesian setSpherical print;
#X text 20 105 INLET_1 float;
#X text 20 125 INLET_2 int;
#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 578 8 pd META;
#X obj 550 270 _gemwin;
#X connect 16 0 30 0;
#X connect 17 0 30 0;
#X connect 18 0 30 0;
#X connect 19 0 34 0;
#X connect 20 0 41 1;
#X connect 21 0 41 2;
#X connect 27 0 33 0;
#X connect 28 0 38 0;
#X connect 29 0 41 0;
#X connect 33 0 41 0;
#X connect 34 0 41 0;
#X connect 35 0 34 1;
#X connect 35 0 34 2;
#X connect 35 0 34 3;
#X connect 38 0 41 0;
#X connect 40 0 39 0;
