From http://www.jwz.org/xscreensaver/xscreensaver-5.30.tar.gz
[xscreensaver] / hacks / glx / toaster_knob.c
index 3c67308488da2fa7f79d450a442fa9d477377157..d48b6bab061168631024b97da232cc38f108c068 100644 (file)
@@ -1,5 +1,10 @@
+/* Generated from "toaster_knob.dxf" on Aug-22-2014.
+   Smoothed vertex normals. Normalized to unit bounding box.
+ */
+
 #include "gllist.h"
-static const float data[]={
+
+static const float toaster_knob_data[] = {
        0.894098,0.012135,-0.447706,0.220972,-0.2059,-0.429683,
        0.894098,0.012135,-0.447706,0.372946,0.214524,-0.114788,
        0.894098,0.012135,-0.447706,0.372946,-0.21412,-0.126406,
@@ -13,9 +18,9 @@ static const float data[]={
        -0.999879,-0.000422,0.015577,-0.367658,0.209613,0.06637,
        -0.999879,-0.000422,0.015577,-0.372946,0.218806,-0.272788,
        0.907621,-0.011374,0.419637,0.372946,-0.21412,-0.126406,
-       0.907621,-0.011374,0.419637,0.2305,0.206179,0.193077,
+       0.911978,-0.115261,0.393715,0.2305,0.206179,0.193077,
        0.907621,-0.011374,0.419637,0.2305,-0.222464,0.181458,
-       0.907621,-0.011374,0.419637,0.2305,0.206179,0.193077,
+       0.911978,-0.115261,0.393715,0.2305,0.206179,0.193077,
        0.907621,-0.011374,0.419637,0.372946,-0.21412,-0.126406,
        0.907621,-0.011374,0.419637,0.372946,0.214524,-0.114788,
        -0.611231,-0.021444,0.791162,-0.099099,-0.22465,0.262081,
@@ -23,19 +28,19 @@ static const float data[]={
        -0.611231,-0.021444,0.791162,-0.367658,-0.21903,0.054752,
        -0.611231,-0.021444,0.791162,-0.367658,0.209613,0.06637,
        -0.611231,-0.021444,0.791162,-0.099099,-0.22465,0.262081,
-       -0.611231,-0.021444,0.791162,-0.099099,0.203994,0.2737,
-       -0,-0.999633,-0.027096,0.220972,-0.2059,-0.429683,
-       -0,-0.999633,-0.027096,-0.372946,-0.209838,-0.284406,
+       -0.655778,-0.184059,0.732173,-0.099099,0.203994,0.2737,
+       -0,-0.999633,-0.027095,0.220972,-0.2059,-0.429683,
+       -0,-0.999633,-0.027095,-0.372946,-0.209838,-0.284406,
        -0,-0.999633,-0.027096,-0.11098,-0.203994,-0.5,
-       0,-0.999633,-0.027094,-0.372946,-0.209838,-0.284406,
-       0,-0.999633,-0.027094,0.220972,-0.2059,-0.429683,
+       -0,-0.999633,-0.027095,-0.372946,-0.209838,-0.284406,
+       -0,-0.999633,-0.027095,0.220972,-0.2059,-0.429683,
        0,-0.999633,-0.027094,0.372946,-0.21412,-0.126406,
-       0,-0.999633,-0.027095,-0.372946,-0.209838,-0.284406,
-       0,-0.999633,-0.027095,0.372946,-0.21412,-0.126406,
+       -0,-0.999633,-0.027095,-0.372946,-0.209838,-0.284406,
+       0,-0.999633,-0.027094,0.372946,-0.21412,-0.126406,
+       0,-0.999633,-0.027095,-0.367658,-0.21903,0.054752,
        0,-0.999633,-0.027095,-0.367658,-0.21903,0.054752,
-       0,-0.999633,-0.027094,-0.367658,-0.21903,0.054752,
        0,-0.999633,-0.027094,0.372946,-0.21412,-0.126406,
-       0,-0.999633,-0.027094,0.2305,-0.222464,0.181458,
+       0,-0.999633,-0.027095,0.2305,-0.222464,0.181458,
        0,-0.999633,-0.027095,-0.367658,-0.21903,0.054752,
        0,-0.999633,-0.027095,0.2305,-0.222464,0.181458,
        0,-0.999633,-0.027095,0.065701,-0.223557,0.22177,
@@ -58,14 +63,14 @@ static const float data[]={
        0.237686,-0.026318,0.970985,-0.099099,0.203994,0.2737,
        0.237686,-0.026318,0.970985,-0.099099,-0.22465,0.262081,
        -0.6794,-0.340802,0.649823,0.116801,0.205086,0.5,
-       -0.6794,-0.340802,0.649823,-0.099099,0.203994,0.2737,
+       -0.655778,-0.184059,0.732173,-0.099099,0.203994,0.2737,
        -0.6794,-0.340802,0.649823,0.065701,-0.223557,0.22177,
        0.237686,-0.026318,0.970985,0.2305,0.206179,0.193077,
        0.237686,-0.026318,0.970985,0.065701,-0.223557,0.22177,
        0.237686,-0.026318,0.970985,0.2305,-0.222464,0.181458,
-       0.88909,-0.319042,0.328226,0.2305,0.206179,0.193077,
+       0.911978,-0.115261,0.393715,0.2305,0.206179,0.193077,
        0.88909,-0.319042,0.328226,0.116801,0.205086,0.5,
        0.88909,-0.319042,0.328226,0.065701,-0.223557,0.22177
 };
-static const struct gllist frame={GL_N3F_V3F,GL_TRIANGLES,66,data,NULL};
-const struct gllist *toaster_knob=&frame;
+static const struct gllist toaster_knob_frame = { GL_N3F_V3F, GL_TRIANGLES, 66, toaster_knob_data, 0 };
+const struct gllist *toaster_knob = &toaster_knob_frame;