X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Ftoaster_base.c;h=a444ad57492f2045f504b223905aeab673ad96c3;hp=74771c8cc99a851608a2b7422b3d80b5c3d9ae48;hb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e;hpb=dba664f31aa87285db4d76cf8c5e66335299703a diff --git a/hacks/glx/toaster_base.c b/hacks/glx/toaster_base.c index 74771c8c..a444ad57 100644 --- a/hacks/glx/toaster_base.c +++ b/hacks/glx/toaster_base.c @@ -1,29 +1,34 @@ +/* Generated from "toaster_base.dxf" on Aug-22-2014. + Smoothed vertex normals. Normalized to unit bounding box. + */ + #include "gllist.h" -static const float data[]={ - -0.160224,0.987081,0,-0.242083,0.5,0.052679, - 0.316307,0.948657,0,0.242083,0.5,-0.052679, - -0.160224,0.987081,0,-0.242083,0.5,-0.052679, - 0.316307,0.948657,0,0.242083,0.5,-0.052679, - -0.160224,0.987081,0,-0.242083,0.5,0.052679, - 0.316307,0.948657,0,0.242083,0.5,0.052679, - 0.976722,0.21451,0,0.309535,0.432529,-0.052679, - 1,0,0,0.357619,0,0.052679, - 1,0,0,0.357619,0,-0.052679, - 1,0,0,0.357619,0,0.052679, - 0.976722,0.21451,0,0.309535,0.432529,-0.052679, - 0.707166,0.707048,0,0.309535,0.432529,0.052679, - 0.160224,-0.987081,0,0.242083,-0.5,0.052679, - -0.160224,-0.987081,0,-0.242083,-0.5,-0.052679, - 0.160224,-0.987081,0,0.242083,-0.5,-0.052679, - -0.160224,-0.987081,0,-0.242083,-0.5,-0.052679, - 0.160224,-0.987081,0,0.242083,-0.5,0.052679, - -0.707166,-0.707048,0,-0.242083,-0.5,0.052679, - -0.976722,0.21451,0,-0.309535,0.432529,0.052679, - -1,0,0,-0.357619,0,-0.052679, - -1,0,0,-0.357619,0,0.052679, - -1,0,0,-0.357619,0,-0.052679, - -0.976722,0.21451,0,-0.309535,0.432529,0.052679, - -0.584744,0.811218,0,-0.309535,0.432529,-0.052679, + +static const float toaster_base_data[] = { + -0.10666,0.994296,0,-0.242083,0.5,0.052679, + 0.10666,0.994296,0,0.242083,0.5,-0.052679, + -0.21332,0.976982,0,-0.242083,0.5,-0.052679, + 0.10666,0.994296,0,0.242083,0.5,-0.052679, + -0.10666,0.994296,0,-0.242083,0.5,0.052679, + 0.213319,0.976983,0,0.242083,0.5,0.052679, + 0.983679,0.17993,0,0.309535,0.432529,-0.052679, + 0.999314,0.03703,0,0.357619,0,0.052679, + 0.999314,-0.03703,0,0.357619,0,-0.052679, + 0.999314,0.03703,0,0.357619,0,0.052679, + 0.983679,0.17993,0,0.309535,0.432529,-0.052679, + 0.968549,0.248824,0,0.309535,0.432529,0.052679, + 0.10666,-0.994296,0,0.242083,-0.5,0.052679, + -0.10666,-0.994296,0,-0.242083,-0.5,-0.052679, + 0.213319,-0.976983,0,0.242083,-0.5,-0.052679, + -0.10666,-0.994296,0,-0.242083,-0.5,-0.052679, + 0.10666,-0.994296,0,0.242083,-0.5,0.052679, + -0.21332,-0.976982,0,-0.242083,-0.5,0.052679, + -0.983679,0.17993,0,-0.309535,0.432529,0.052679, + -0.999314,0.03703,0,-0.357619,0,-0.052679, + -0.999314,-0.03703,0,-0.357619,0,0.052679, + -0.999314,0.03703,0,-0.357619,0,-0.052679, + -0.983679,0.17993,0,-0.309535,0.432529,0.052679, + -0.968549,0.248824,0,-0.309535,0.432529,-0.052679, 0,0,-1,-0.309535,0.432529,-0.052679, 0,0,-1,-0.309535,-0.432529,-0.052679, 0,0,-1,-0.357619,0,-0.052679, @@ -32,94 +37,94 @@ static const float data[]={ 0,0,-1,-0.292672,0.483132,-0.052679, 0,0,-1,-0.309535,-0.432529,-0.052679, 0,0,-1,-0.292672,0.483132,-0.052679, - 0,0,0,-0.292672,-0.483132,-0.052679, - 0,0,0,-0.292672,-0.483132,-0.052679, + 0,0,-1,-0.292672,-0.483132,-0.052679, + 0,0,-1,-0.292672,-0.483132,-0.052679, 0,0,-1,-0.292672,0.483132,-0.052679, - 0,0,0,-0.242083,0.5,-0.052679, - 0,0,0,-0.292672,-0.483132,-0.052679, - 0,0,0,-0.242083,0.5,-0.052679, + 0,0,-1,-0.242083,0.5,-0.052679, + 0,0,-1,-0.292672,-0.483132,-0.052679, + 0,0,-1,-0.242083,0.5,-0.052679, 0,0,-1,-0.242083,-0.5,-0.052679, 0,0,-1,-0.242083,-0.5,-0.052679, - 0,0,0,-0.242083,0.5,-0.052679, + 0,0,-1,-0.242083,0.5,-0.052679, 0,0,-1,0.242083,0.5,-0.052679, 0,0,-1,-0.242083,-0.5,-0.052679, 0,0,-1,0.242083,0.5,-0.052679, - 0,0,0,0.242083,-0.5,-0.052679, - 0,0,0,0.242083,-0.5,-0.052679, + 0,0,-1,0.242083,-0.5,-0.052679, + 0,0,-1,0.242083,-0.5,-0.052679, 0,0,-1,0.242083,0.5,-0.052679, 0,0,-1,0.292672,-0.483132,-0.052679, 0,0,-1,0.292672,-0.483132,-0.052679, 0,0,-1,0.242083,0.5,-0.052679, - 0,0,0,0.292672,0.483132,-0.052679, + 0,0,-1,0.292672,0.483132,-0.052679, 0,0,-1,0.292672,-0.483132,-0.052679, - 0,0,0,0.292672,0.483132,-0.052679, - 0,0,0,0.309535,-0.432529,-0.052679, - 0,0,0,0.309535,-0.432529,-0.052679, - 0,0,0,0.292672,0.483132,-0.052679, + 0,0,-1,0.292672,0.483132,-0.052679, + 0,0,-1,0.309535,-0.432529,-0.052679, + 0,0,-1,0.309535,-0.432529,-0.052679, + 0,0,-1,0.292672,0.483132,-0.052679, 0,0,-1,0.309535,0.432529,-0.052679, - 0,0,0,0.309535,-0.432529,-0.052679, + 0,0,-1,0.309535,-0.432529,-0.052679, 0,0,-1,0.309535,0.432529,-0.052679, - 0,0,0,0.357619,0,-0.052679, - 1,0,0,0.357619,0,-0.052679, - 0.994254,-0.107045,0,0.309535,-0.432529,0.052679, - 0.994254,-0.107045,0,0.309535,-0.432529,-0.052679, - 0.994254,-0.107045,0,0.309535,-0.432529,0.052679, - 1,0,0,0.357619,0,-0.052679, - 1,0,0,0.357619,0,0.052679, - -1,0,0,-0.357619,0,0.052679, - -0.994254,-0.107045,0,-0.309535,-0.432529,-0.052679, - -0.994254,-0.107045,0,-0.309535,-0.432529,0.052679, - -0.994254,-0.107045,0,-0.309535,-0.432529,-0.052679, - -1,0,0,-0.357619,0,0.052679, - -1,0,0,-0.357619,0,-0.052679, - -0.994254,-0.107045,0,-0.309535,-0.432529,0.052679, - -0.707166,-0.707048,0,-0.292672,-0.483132,-0.052679, - -0.707166,-0.707048,0,-0.292672,-0.483132,0.052679, - -0.707166,-0.707048,0,-0.292672,-0.483132,-0.052679, - -0.994254,-0.107045,0,-0.309535,-0.432529,0.052679, - -0.994254,-0.107045,0,-0.309535,-0.432529,-0.052679, - -0.707166,-0.707048,0,-0.242083,-0.5,0.052679, - -0.707166,-0.707048,0,-0.292672,-0.483132,-0.052679, - -0.160224,-0.987081,0,-0.242083,-0.5,-0.052679, - -0.707166,-0.707048,0,-0.292672,-0.483132,-0.052679, - -0.707166,-0.707048,0,-0.242083,-0.5,0.052679, - -0.707166,-0.707048,0,-0.292672,-0.483132,0.052679, - 0.994254,-0.107045,0,0.292672,-0.483132,0.052679, - 0.160224,-0.987081,0,0.242083,-0.5,-0.052679, - 0.707166,-0.707048,0,0.292672,-0.483132,-0.052679, - 0.160224,-0.987081,0,0.242083,-0.5,-0.052679, - 0.994254,-0.107045,0,0.292672,-0.483132,0.052679, - 0.160224,-0.987081,0,0.242083,-0.5,0.052679, - 0.994254,-0.107045,0,0.309535,-0.432529,-0.052679, - 0.994254,-0.107045,0,0.292672,-0.483132,0.052679, - 0.707166,-0.707048,0,0.292672,-0.483132,-0.052679, - 0.994254,-0.107045,0,0.292672,-0.483132,0.052679, - 0.994254,-0.107045,0,0.309535,-0.432529,-0.052679, - 0.994254,-0.107045,0,0.309535,-0.432529,0.052679, - 0.316307,0.948657,0,0.242083,0.5,0.052679, - 0.707166,0.707048,0,0.292672,0.483132,-0.052679, - 0.316307,0.948657,0,0.242083,0.5,-0.052679, - 0.707166,0.707048,0,0.292672,0.483132,-0.052679, - 0.316307,0.948657,0,0.242083,0.5,0.052679, - 0.707166,0.707048,0,0.292672,0.483132,0.052679, - 0.707166,0.707048,0,0.292672,0.483132,-0.052679, - 0.707166,0.707048,0,0.309535,0.432529,0.052679, - 0.976722,0.21451,0,0.309535,0.432529,-0.052679, - 0.707166,0.707048,0,0.309535,0.432529,0.052679, - 0.707166,0.707048,0,0.292672,0.483132,-0.052679, - 0.707166,0.707048,0,0.292672,0.483132,0.052679, - -0.160224,0.987081,0,-0.292672,0.483132,0.052679, - -0.584744,0.811218,0,-0.309535,0.432529,-0.052679, - -0.976722,0.21451,0,-0.309535,0.432529,0.052679, - -0.584744,0.811218,0,-0.309535,0.432529,-0.052679, - -0.160224,0.987081,0,-0.292672,0.483132,0.052679, - -0.487642,0.873044,0,-0.292672,0.483132,-0.052679, - -0.160224,0.987081,0,-0.292672,0.483132,0.052679, - -0.160224,0.987081,0,-0.242083,0.5,-0.052679, - -0.487642,0.873044,0,-0.292672,0.483132,-0.052679, - -0.160224,0.987081,0,-0.242083,0.5,-0.052679, - -0.160224,0.987081,0,-0.292672,0.483132,0.052679, - -0.160224,0.987081,0,-0.242083,0.5,0.052679 + 0,0,-1,0.357619,0,-0.052679, + 0.999314,-0.03703,0,0.357619,0,-0.052679, + 0.983679,-0.17993,0,0.309535,-0.432529,0.052679, + 0.968549,-0.248824,0,0.309535,-0.432529,-0.052679, + 0.983679,-0.17993,0,0.309535,-0.432529,0.052679, + 0.999314,-0.03703,0,0.357619,0,-0.052679, + 0.999314,0.03703,0,0.357619,0,0.052679, + -0.999314,-0.03703,0,-0.357619,0,0.052679, + -0.983679,-0.17993,0,-0.309535,-0.432529,-0.052679, + -0.968549,-0.248824,0,-0.309535,-0.432529,0.052679, + -0.983679,-0.17993,0,-0.309535,-0.432529,-0.052679, + -0.999314,-0.03703,0,-0.357619,0,0.052679, + -0.999314,0.03703,0,-0.357619,0,-0.052679, + -0.968549,-0.248824,0,-0.309535,-0.432529,0.052679, + -0.948709,-0.316149,0,-0.292672,-0.483132,-0.052679, + -0.948709,-0.316149,0,-0.292672,-0.483132,0.052679, + -0.948709,-0.316149,0,-0.292672,-0.483132,-0.052679, + -0.968549,-0.248824,0,-0.309535,-0.432529,0.052679, + -0.983679,-0.17993,0,-0.309535,-0.432529,-0.052679, + -0.21332,-0.976982,0,-0.242083,-0.5,0.052679, + -0.316307,-0.948657,0,-0.292672,-0.483132,-0.052679, + -0.10666,-0.994296,0,-0.242083,-0.5,-0.052679, + -0.316307,-0.948657,0,-0.292672,-0.483132,-0.052679, + -0.21332,-0.976982,0,-0.242083,-0.5,0.052679, + -0.316307,-0.948657,0,-0.292672,-0.483132,0.052679, + 0.316307,-0.948657,0,0.292672,-0.483132,0.052679, + 0.213319,-0.976983,0,0.242083,-0.5,-0.052679, + 0.316307,-0.948657,0,0.292672,-0.483132,-0.052679, + 0.213319,-0.976983,0,0.242083,-0.5,-0.052679, + 0.316307,-0.948657,0,0.292672,-0.483132,0.052679, + 0.10666,-0.994296,0,0.242083,-0.5,0.052679, + 0.968549,-0.248824,0,0.309535,-0.432529,-0.052679, + 0.948709,-0.316149,0,0.292672,-0.483132,0.052679, + 0.948709,-0.316149,0,0.292672,-0.483132,-0.052679, + 0.948709,-0.316149,0,0.292672,-0.483132,0.052679, + 0.968549,-0.248824,0,0.309535,-0.432529,-0.052679, + 0.983679,-0.17993,0,0.309535,-0.432529,0.052679, + 0.213319,0.976983,0,0.242083,0.5,0.052679, + 0.316307,0.948657,0,0.292672,0.483132,-0.052679, + 0.10666,0.994296,0,0.242083,0.5,-0.052679, + 0.316307,0.948657,0,0.292672,0.483132,-0.052679, + 0.213319,0.976983,0,0.242083,0.5,0.052679, + 0.316307,0.948657,0,0.292672,0.483132,0.052679, + 0.948709,0.316149,0,0.292672,0.483132,-0.052679, + 0.968549,0.248824,0,0.309535,0.432529,0.052679, + 0.983679,0.17993,0,0.309535,0.432529,-0.052679, + 0.968549,0.248824,0,0.309535,0.432529,0.052679, + 0.948709,0.316149,0,0.292672,0.483132,-0.052679, + 0.948709,0.316149,0,0.292672,0.483132,0.052679, + -0.948709,0.316149,0,-0.292672,0.483132,0.052679, + -0.968549,0.248824,0,-0.309535,0.432529,-0.052679, + -0.983679,0.17993,0,-0.309535,0.432529,0.052679, + -0.968549,0.248824,0,-0.309535,0.432529,-0.052679, + -0.948709,0.316149,0,-0.292672,0.483132,0.052679, + -0.948709,0.316149,0,-0.292672,0.483132,-0.052679, + -0.316307,0.948657,0,-0.292672,0.483132,0.052679, + -0.21332,0.976982,0,-0.242083,0.5,-0.052679, + -0.316307,0.948657,0,-0.292672,0.483132,-0.052679, + -0.21332,0.976982,0,-0.242083,0.5,-0.052679, + -0.316307,0.948657,0,-0.292672,0.483132,0.052679, + -0.10666,0.994296,0,-0.242083,0.5,0.052679 }; -static const struct gllist frame={GL_N3F_V3F,GL_TRIANGLES,120,data,NULL}; -const struct gllist *toaster_base=&frame; +static const struct gllist toaster_base_frame = { GL_N3F_V3F, GL_TRIANGLES, 120, toaster_base_data, 0 }; +const struct gllist *toaster_base = &toaster_base_frame;