X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Ftoaster_base.c;h=a444ad57492f2045f504b223905aeab673ad96c3;hb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e;hp=8fc0ff58cda2275ef54636283333ab4d0c40fad3;hpb=40eacb5812ef7c0e3374fb139afbb4f5bc8bbfb5;p=xscreensaver diff --git a/hacks/glx/toaster_base.c b/hacks/glx/toaster_base.c index 8fc0ff58..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 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 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 struct gllist frame={GL_N3F_V3F,GL_TRIANGLES,120,data,NULL}; -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;